*Update dist

This commit is contained in:
Derrick Hammer 2023-02-19 21:13:16 -05:00
parent 69bb1f7c60
commit 4642c10bf2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 6 additions and 2 deletions

7
dist/index.d.ts vendored
View File

@ -1,4 +1,7 @@
import type { DNSResult } from "@lumeweb/libresolver";
import type {
DNSResult,
ResolverModule as ResolverModuleBase,
} from "@lumeweb/libresolver";
import { DnsClient } from "@lumeweb/kernel-dns-client";
import { ResolverOptions } from "@lumeweb/libresolver/src/types.js";
export interface ResolverModule {
@ -13,7 +16,7 @@ export interface ResolverModule {
getSupportedTlds(): Promise<string[]>;
getSupportedTlds(): any;
}
export declare function setup(rm: ResolverModule): void;
export declare function setup(rm: ResolverModule | ResolverModuleBase): void;
export * from "@lumeweb/libresolver/dist/util.js";
export * from "@lumeweb/libresolver/dist/types.js";
export { AbstractResolverModule } from "@lumeweb/libresolver/dist/resolverModule.js";

1
dist/index.js vendored
View File

@ -8,6 +8,7 @@ export function setup(rm) {
addHandler("getSupportedTlds", handleGetSupportedTlds);
onmessage = handleMessage;
resolver = rm;
// @ts-ignore
resolver.resolver = dnsClient;
}
async function handleRegister(aq) {