*Fix resolve
This commit is contained in:
parent
d2735c5470
commit
27dba64c45
10
src/index.ts
10
src/index.ts
|
@ -1,5 +1,9 @@
|
||||||
import { Client, factory } from "@lumeweb/libkernel-universal";
|
import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||||
import { DNS_RECORD_TYPE, ResolverOptions } from "@lumeweb/libresolver";
|
import {
|
||||||
|
DNS_RECORD_TYPE,
|
||||||
|
DNSResult,
|
||||||
|
ResolverOptions,
|
||||||
|
} from "@lumeweb/libresolver";
|
||||||
|
|
||||||
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
||||||
|
|
||||||
|
@ -20,8 +24,8 @@ export class DnsClient extends Client {
|
||||||
domain: string,
|
domain: string,
|
||||||
options: ResolverOptions = { type: DNS_RECORD_TYPE.CONTENT },
|
options: ResolverOptions = { type: DNS_RECORD_TYPE.CONTENT },
|
||||||
bypassCache: boolean = false
|
bypassCache: boolean = false
|
||||||
): Promise<void> {
|
): Promise<DNSResult> {
|
||||||
return this.callModuleReturn("ready");
|
return this.callModuleReturn("resolve", { domain, options, bypassCache });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue