*Update dist

This commit is contained in:
Derrick Hammer 2022-08-20 12:43:57 -04:00
parent 13eb79ae7e
commit cae357cd98
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

3
dist/index.js vendored
View File

@ -2,6 +2,7 @@ import { addHandler, handleMessage } from "libkmodule";
import { register } from "@lumeweb/kernel-dns-client"; import { register } from "@lumeweb/kernel-dns-client";
import { RpcNetwork } from "@lumeweb/kernel-rpc-client"; import { RpcNetwork } from "@lumeweb/kernel-rpc-client";
import { ResolverRegistry } from "./resolverRegistry.js"; import { ResolverRegistry } from "./resolverRegistry.js";
import { DNS_RECORD_TYPE } from "@lumeweb/resolver-common";
let resolver; let resolver;
export function setup(rm) { export function setup(rm) {
addHandler("resolve", handleResolve); addHandler("resolve", handleResolve);
@ -21,7 +22,7 @@ async function handleResolve(aq) {
} }
let ret; let ret;
try { 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) { catch (e) {
aq.reject(e); aq.reject(e);