*Update dist
This commit is contained in:
parent
13eb79ae7e
commit
cae357cd98
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue