From cae357cd98d4bad826aa0c814ecb1224edbbd559 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 20 Aug 2022 12:43:57 -0400 Subject: [PATCH] *Update dist --- dist/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index fa59d1a..99c06f0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2,6 +2,7 @@ import { addHandler, handleMessage } from "libkmodule"; import { register } from "@lumeweb/kernel-dns-client"; import { RpcNetwork } from "@lumeweb/kernel-rpc-client"; import { ResolverRegistry } from "./resolverRegistry.js"; +import { DNS_RECORD_TYPE } from "@lumeweb/resolver-common"; let resolver; export function setup(rm) { addHandler("resolve", handleResolve); @@ -21,7 +22,7 @@ async function handleResolve(aq) { } let ret; try { - ret = await resolver.resolve(aq.callerInput.domain, aq.callerInput?.options, aq.callerInput?.bypassCache || false); + ret = await resolver.resolve(aq.callerInput.domain, aq.callerInput?.options ?? { type: DNS_RECORD_TYPE.CONTENT }, aq.callerInput?.bypassCache || false); } catch (e) { aq.reject(e);