*Update dist
This commit is contained in:
parent
69bb1f7c60
commit
4642c10bf2
|
@ -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";
|
||||
|
|
|
@ -8,6 +8,7 @@ export function setup(rm) {
|
|||
addHandler("getSupportedTlds", handleGetSupportedTlds);
|
||||
onmessage = handleMessage;
|
||||
resolver = rm;
|
||||
// @ts-ignore
|
||||
resolver.resolver = dnsClient;
|
||||
}
|
||||
async function handleRegister(aq) {
|
||||
|
|
Loading…
Reference in New Issue