From 19caf515d50805e577019077c92fc98f1d9dc524 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 20 Aug 2022 12:49:59 -0400 Subject: [PATCH] *Update dist --- dist/index.d.ts | 2 +- dist/index.d.ts.map | 2 +- dist/index.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index c78e81a..b6a112c 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,7 +1,7 @@ import { ResolverOptions } from "@lumeweb/resolver-common"; export declare function resolve( domain: string, - options: ResolverOptions, + options?: ResolverOptions, bypassCache?: boolean ): Promise; export declare function register(): Promise; diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index 8c813ce..94b87d9 100644 --- a/dist/index.d.ts.map +++ b/dist/index.d.ts.map @@ -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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index eed4ad8..bb2355b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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,