*Update dist
This commit is contained in:
parent
2f0e1fa4b8
commit
19caf515d5
|
@ -1,7 +1,7 @@
|
|||
import { ResolverOptions } from "@lumeweb/resolver-common";
|
||||
export declare function resolve(
|
||||
domain: string,
|
||||
options: ResolverOptions,
|
||||
options?: ResolverOptions,
|
||||
bypassCache?: boolean
|
||||
): Promise<any>;
|
||||
export declare function register(): Promise<void>;
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAqB3D,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,UAAQ,gBAcpB;AAED,wBAAsB,QAAQ,kBAG7B;AAED,wBAAsB,KAAK,kBAG1B;AAED,wBAAsB,YAAY,iBASjC;AAED,wBAAsB,KAAK,iBAS1B"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAqB5E,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,eAAmD,EAC5D,WAAW,UAAQ,gBAcpB;AAED,wBAAsB,QAAQ,kBAG7B;AAED,wBAAsB,KAAK,kBAG1B;AAED,wBAAsB,YAAY,iBASjC;AAED,wBAAsB,KAAK,iBAS1B"}
|
|
@ -1,3 +1,4 @@
|
|||
import { DNS_RECORD_TYPE } from "@lumeweb/resolver-common";
|
||||
const DNS_MODULE = "AQBLKpieqOfKVRgMa8k45P4S_ILYgJmswVso4vT1qzoG-A";
|
||||
let callModule, connectModule;
|
||||
async function loadLibs() {
|
||||
|
@ -15,7 +16,7 @@ async function loadLibs() {
|
|||
connectModule = pkg.connectModule;
|
||||
}
|
||||
}
|
||||
export async function resolve(domain, options, bypassCache = false) {
|
||||
export async function resolve(domain, options = { type: DNS_RECORD_TYPE.CONTENT }, bypassCache = false) {
|
||||
await loadLibs();
|
||||
const [resp, err] = await callModule(DNS_MODULE, "resolve", {
|
||||
domain,
|
||||
|
|
Loading…
Reference in New Issue