*Update dist

This commit is contained in:
Derrick Hammer 2022-08-19 11:53:39 -04:00
parent 42712a51d7
commit 4cb79067b0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import type { DNSResult, ResolverOptions } from "./types.js"; import type { DNSResult, ResolverOptions } from "./types.js";
import { ResolverRegistry } from "@lumeweb/resolver"; import { ResolverRegistry } from "@lumeweb/resolver";
export interface ResolverModule { export interface ResolverModule {
constructor(resolver: ResolverRegistry): void; new (resolver: ResolverRegistry): any;
resolve( resolve(
domain: string, domain: string,
options: ResolverOptions, options: ResolverOptions,
@ -9,7 +9,7 @@ export interface ResolverModule {
): Promise<DNSResult>; ): Promise<DNSResult>;
getSupportedTlds(): string[]; getSupportedTlds(): string[];
} }
export declare abstract class AbstractResolverModule { export declare abstract class AbstractResolverModule implements ResolverModule {
protected resolver: ResolverRegistry; protected resolver: ResolverRegistry;
constructor(resolver: ResolverRegistry); constructor(resolver: ResolverRegistry);
abstract resolve( abstract resolve(

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;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE9C,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;CAC9B;AAED,8BAAsB,sBAAsB;IAC1C,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEzB,QAAQ,EAAE,gBAAgB;IAItC,QAAQ,CAAC,OAAO,CACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC;IAErB,gBAAgB,IAAI,MAAM,EAAE;IAI5B,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAGxC"} {"version":3,"file":"resolverModule.d.ts","sourceRoot":"","sources":["../src/resolverModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,KAAK,QAAQ,EAAE,gBAAgB,GAAG,GAAG,CAAC;IAEtC,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;CAC9B;AAGD,8BAAsB,sBAAuB,YAAW,cAAc;IACpE,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEzB,QAAQ,EAAE,gBAAgB;IAKtC,QAAQ,CAAC,OAAO,CACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC;IAErB,gBAAgB,IAAI,MAAM,EAAE;IAI5B,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAGxC"}

View File

@ -1,8 +1,10 @@
import { getTld } from "./util.js"; import { getTld } from "./util.js";
// ts-ignore
export class AbstractResolverModule { export class AbstractResolverModule {
resolver; resolver;
constructor(resolver) { constructor(resolver) {
this.resolver = resolver; this.resolver = resolver;
return this;
} }
getSupportedTlds() { getSupportedTlds() {
return []; return [];