Compare commits
No commits in common. "cc8a889bfc3e0506422d49c56382854782940ccb" and "68640a2bb809a2699a617ca18e0f086554d26e5b" have entirely different histories.
cc8a889bfc
...
68640a2bb8
|
@ -9,7 +9,10 @@ declare class ResolverRegistry {
|
||||||
register(resolver: ResolverModule): void;
|
register(resolver: ResolverModule): void;
|
||||||
clear(): void;
|
clear(): void;
|
||||||
}
|
}
|
||||||
export interface ResolverModule {
|
export interface ResolverModuleConstructor {
|
||||||
|
new (resolver: ResolverRegistry): any;
|
||||||
|
}
|
||||||
|
export interface ResolverModule extends ResolverModuleConstructor {
|
||||||
resolve(
|
resolve(
|
||||||
domain: string,
|
domain: string,
|
||||||
options: ResolverOptions,
|
options: ResolverOptions,
|
||||||
|
@ -20,10 +23,8 @@ export interface ResolverModule {
|
||||||
getSupportedTlds(): any;
|
getSupportedTlds(): any;
|
||||||
}
|
}
|
||||||
export declare abstract class AbstractResolverModule {
|
export declare abstract class AbstractResolverModule {
|
||||||
constructor(resolver?: ResolverRegistry);
|
protected resolver: ResolverRegistry;
|
||||||
private _resolver?;
|
constructor(resolver: ResolverRegistry);
|
||||||
get resolver(): ResolverRegistry;
|
|
||||||
set resolver(value: ResolverRegistry);
|
|
||||||
abstract resolve(
|
abstract resolve(
|
||||||
domain: string,
|
domain: string,
|
||||||
options: ResolverOptions,
|
options: ResolverOptions,
|
||||||
|
|
|
@ -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,GAC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AE,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,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtB,gBAAgB,IAAI,MAAM,EAAE,CAAC;IAC7B,gBAAgB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,gBAAgB,IAAI,GAAG,CAAC;CACzB;AAGD,8BAAsB,sBAAsB;IAC1C,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEzB,QAAQ,EAAE,gBAAgB;IAItC,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"}
|
|
@ -1,15 +1,9 @@
|
||||||
import { getTld, isPromise } from "./util.js";
|
import { getTld, isPromise } from "./util.js";
|
||||||
// ts-ignore
|
// ts-ignore
|
||||||
export class AbstractResolverModule {
|
export class AbstractResolverModule {
|
||||||
|
resolver;
|
||||||
constructor(resolver) {
|
constructor(resolver) {
|
||||||
this._resolver = resolver;
|
this.resolver = resolver;
|
||||||
}
|
|
||||||
_resolver;
|
|
||||||
get resolver() {
|
|
||||||
return this._resolver;
|
|
||||||
}
|
|
||||||
set resolver(value) {
|
|
||||||
this._resolver = value;
|
|
||||||
}
|
}
|
||||||
getSupportedTlds() {
|
getSupportedTlds() {
|
||||||
return [];
|
return [];
|
||||||
|
|
|
@ -12,7 +12,11 @@ declare class ResolverRegistry {
|
||||||
clear(): void;
|
clear(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ResolverModule {
|
export interface ResolverModuleConstructor {
|
||||||
|
new (resolver: ResolverRegistry);
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ResolverModule extends ResolverModuleConstructor {
|
||||||
resolve(
|
resolve(
|
||||||
domain: string,
|
domain: string,
|
||||||
options: ResolverOptions,
|
options: ResolverOptions,
|
||||||
|
@ -26,18 +30,10 @@ export interface ResolverModule {
|
||||||
|
|
||||||
// ts-ignore
|
// ts-ignore
|
||||||
export abstract class AbstractResolverModule {
|
export abstract class AbstractResolverModule {
|
||||||
constructor(resolver?: ResolverRegistry) {
|
protected resolver: ResolverRegistry;
|
||||||
this._resolver = resolver;
|
|
||||||
}
|
|
||||||
|
|
||||||
private _resolver?: ResolverRegistry;
|
constructor(resolver: ResolverRegistry) {
|
||||||
|
this.resolver = resolver;
|
||||||
get resolver(): ResolverRegistry {
|
|
||||||
return this._resolver as ResolverRegistry;
|
|
||||||
}
|
|
||||||
|
|
||||||
set resolver(value: ResolverRegistry) {
|
|
||||||
this._resolver = value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract resolve(
|
abstract resolve(
|
||||||
|
|
Loading…
Reference in New Issue