*Update dist
This commit is contained in:
parent
32e2edaf6b
commit
109ac99045
|
@ -6,5 +6,6 @@ export declare function resolve(
|
||||||
): Promise<any>;
|
): Promise<any>;
|
||||||
export declare function register(): Promise<void>;
|
export declare function register(): Promise<void>;
|
||||||
export declare function clear(): Promise<void>;
|
export declare function clear(): Promise<void>;
|
||||||
|
export declare function getResolvers(): Promise<any>;
|
||||||
export declare function ready(): Promise<any>;
|
export declare function ready(): Promise<any>;
|
||||||
//# sourceMappingURL=index.d.ts.map
|
//# sourceMappingURL=index.d.ts.map
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAqB3D,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,UAAQ,gBAcpB;AAED,wBAAsB,QAAQ,kBAG7B;AAED,wBAAsB,KAAK,kBAG1B;AAED,wBAAsB,KAAK,iBAS1B"}
|
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAqB3D,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,UAAQ,gBAcpB;AAED,wBAAsB,QAAQ,kBAG7B;AAED,wBAAsB,KAAK,kBAG1B;AAED,wBAAsB,YAAY,iBASjC;AAED,wBAAsB,KAAK,iBAS1B"}
|
|
@ -35,6 +35,14 @@ export async function clear() {
|
||||||
await loadLibs();
|
await loadLibs();
|
||||||
await callModule(DNS_MODULE, "clear");
|
await callModule(DNS_MODULE, "clear");
|
||||||
}
|
}
|
||||||
|
export async function getResolvers() {
|
||||||
|
await loadLibs();
|
||||||
|
const [resp, err] = await callModule(DNS_MODULE, "getResolvers");
|
||||||
|
if (err) {
|
||||||
|
throw new Error(err);
|
||||||
|
}
|
||||||
|
return resp;
|
||||||
|
}
|
||||||
export async function ready() {
|
export async function ready() {
|
||||||
await loadLibs();
|
await loadLibs();
|
||||||
const [resp, err] = await callModule(DNS_MODULE, "ready");
|
const [resp, err] = await callModule(DNS_MODULE, "ready");
|
||||||
|
|
Loading…
Reference in New Issue