*Update dist
This commit is contained in:
parent
ef787eba13
commit
1c9b882642
|
@ -1,8 +1,13 @@
|
|||
import { DNSResult, ResolverOptions } from "@lumeweb/resolver-common";
|
||||
import { RpcNetwork } from "@lumeweb/kernel-rpc-client";
|
||||
export declare class ResolverRegistry {
|
||||
private _rpcNetwork;
|
||||
constructor(network: RpcNetwork);
|
||||
get rpcNetwork(): RpcNetwork;
|
||||
resolve(
|
||||
domain: string,
|
||||
options?: ResolverOptions,
|
||||
bypassCache?: boolean
|
||||
): Promise<DNSResult>;
|
||||
}
|
||||
export { RpcNetwork };
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
import { DNS_RECORD_TYPE, resolverError, } from "@lumeweb/resolver-common";
|
||||
import { resolve } from "@lumeweb/kernel-dns-client";
|
||||
import { RpcNetwork } from "@lumeweb/kernel-rpc-client";
|
||||
export class ResolverRegistry {
|
||||
_rpcNetwork;
|
||||
constructor(network) {
|
||||
this._rpcNetwork = network;
|
||||
}
|
||||
get rpcNetwork() {
|
||||
return this._rpcNetwork;
|
||||
}
|
||||
async resolve(domain, options = { type: DNS_RECORD_TYPE.DEFAULT }, bypassCache = false) {
|
||||
let result;
|
||||
try {
|
||||
|
@ -12,3 +20,4 @@ export class ResolverRegistry {
|
|||
return result;
|
||||
}
|
||||
}
|
||||
export { RpcNetwork };
|
||||
|
|
Loading…
Reference in New Issue