*Update dist
This commit is contained in:
parent
827505438d
commit
cf6435ef1e
|
@ -1,9 +1,10 @@
|
|||
import { Client } from "@lumeweb/libkernel-universal";
|
||||
import { DNSResult, ResolverOptions } from "@lumeweb/libresolver";
|
||||
import { ResolverModule } from "./module.js";
|
||||
export declare class DnsClient extends Client {
|
||||
register(): Promise<void>;
|
||||
clear(): Promise<void>;
|
||||
get resolvers(): Promise<string[]>;
|
||||
get resolvers(): Promise<Set<ResolverModule>>;
|
||||
ready(): Promise<void>;
|
||||
resolve(
|
||||
domain: string,
|
||||
|
@ -12,4 +13,5 @@ export declare class DnsClient extends Client {
|
|||
): Promise<DNSResult>;
|
||||
}
|
||||
export declare const createClient: (...args: any) => DnsClient;
|
||||
export * from "./module.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAEL,SAAS,EACT,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAI9B,qBAAa,SAAU,SAAQ,MAAM;IACtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAGzB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAGnC,IAAI,SAAS,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAEjC;IACY,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAGtB,OAAO,CAClB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,eAAmD,EAC5D,WAAW,GAAE,OAAe,GAC3B,OAAO,CAAC,SAAS,CAAC;CAGtB;AAED,eAAO,MAAM,YAAY,6BAAwC,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAEL,SAAS,EACT,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAI3D,qBAAa,SAAU,SAAQ,MAAM;IACtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAGzB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAGnC,IAAI,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAQ5C;IACY,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAGtB,OAAO,CAClB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,eAAmD,EAC5D,WAAW,GAAE,OAAe,GAC3B,OAAO,CAAC,SAAS,CAAC;CAGtB;AAED,eAAO,MAAM,YAAY,6BAAwC,CAAC;AAClE,cAAc,aAAa,CAAC"}
|
|
@ -1,5 +1,6 @@
|
|||
import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||
import { DNS_RECORD_TYPE, } from "@lumeweb/libresolver";
|
||||
import { createModule } from "./module.js";
|
||||
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
||||
export class DnsClient extends Client {
|
||||
async register() {
|
||||
|
@ -9,7 +10,11 @@ export class DnsClient extends Client {
|
|||
return this.callModuleReturn("clear");
|
||||
}
|
||||
get resolvers() {
|
||||
return this.callModuleReturn("getResolvers");
|
||||
return this.callModuleReturn("getResolvers").then((resolvers) => {
|
||||
return new Set(resolvers.map((resolver) => {
|
||||
return createModule(resolver, this);
|
||||
}));
|
||||
});
|
||||
}
|
||||
async ready() {
|
||||
return this.callModuleReturn("ready");
|
||||
|
@ -19,3 +24,4 @@ export class DnsClient extends Client {
|
|||
}
|
||||
}
|
||||
export const createClient = factory(DnsClient, MODULE);
|
||||
export * from "./module.js";
|
||||
|
|
Loading…
Reference in New Issue