*Update dist

This commit is contained in:
Derrick Hammer 2023-02-19 20:08:08 -05:00
parent f4283e2d8f
commit cc8a889bfc
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 14 additions and 9 deletions

View File

@ -9,10 +9,7 @@ declare class ResolverRegistry {
register(resolver: ResolverModule): void;
clear(): void;
}
export interface ResolverModuleConstructor {
new (resolver: ResolverRegistry): any;
}
export interface ResolverModule extends ResolverModuleConstructor {
export interface ResolverModule {
resolve(
domain: string,
options: ResolverOptions,
@ -23,8 +20,10 @@ export interface ResolverModule extends ResolverModuleConstructor {
getSupportedTlds(): any;
}
export declare abstract class AbstractResolverModule {
protected resolver: ResolverRegistry;
constructor(resolver: ResolverRegistry);
constructor(resolver?: ResolverRegistry);
private _resolver?;
get resolver(): ResolverRegistry;
set resolver(value: ResolverRegistry);
abstract resolve(
domain: string,
options: ResolverOptions,

View File

@ -1 +1 @@
{"version":3,"file":"resolverModule.d.ts","sourceRoot":"","sources":["../src/resolverModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7D,OAAO,OAAO,gBAAgB;IAC5B,IAAI,SAAS,IAAI,GAAG,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;IACpE,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,EACzB,WAAW,CAAC,EAAE,OAAO,GACpB,OAAO,CAAC,SAAS,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IACxC,KAAK,IAAI,IAAI;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,QAAQ,EAAE,gBAAgB,OAAE;CAClC;AAED,MAAM,WAAW,cAAe,SAAQ,yBAAyB;IAC/D,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,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I,MAAM,EAAE,CAAC;IAC7B,gBAAgB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,gBAAgB,IAAI,GAAG,CAAC;CACzB;AAGD,8BAAsB,sBAAsB;gBAC9B,QAAQ,CAAC,EAAE,gBAAgB;IAIvC,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC,IAAI,QAAQ,IAAI,gBAAgB,CAE/B;IAED,IAAI,QAAQ,CAAC,KAAK,EAAE,gBAAgB,EAEnC;IAED,QAAQ,CAAC,OAAO,CACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC;IAErB,gBAAgB,IAAI,MAAM,EAAE;IAC5B,gBAAgB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAKrC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAChD,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAWxC"}

View File

@ -1,9 +1,15 @@
import { getTld, isPromise } from "./util.js";
// ts-ignore
export class AbstractResolverModule {
resolver;
constructor(resolver) {
this.resolver = resolver;
this._resolver = resolver;
}
_resolver;
get resolver() {
return this._resolver;
}
set resolver(value) {
this._resolver = value;
}
getSupportedTlds() {
return [];