*Update dist

This commit is contained in:
Derrick Hammer 2022-08-20 12:49:59 -04:00
parent 2f0e1fa4b8
commit 19caf515d5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 4 additions and 3 deletions

2
dist/index.d.ts vendored
View File

@ -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>;

2
dist/index.d.ts.map vendored
View File

@ -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"}

3
dist/index.js vendored
View File

@ -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,