*Update dist

This commit is contained in:
Derrick Hammer 2022-08-18 11:01:28 -04:00
parent 3f68971640
commit 32c33748e4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
5 changed files with 37 additions and 29 deletions

View File

@ -1,13 +1,21 @@
import type { DNSResult, ResolverOptions } from "./types.js";
export default interface ResolverModule {
constructor(resolver: any): void;
resolve(domain: string, options: ResolverOptions, bypassCache: boolean): Promise<DNSResult>;
export interface ResolverModule {
constructor(resolver: any): void;
resolve(
domain: string,
options: ResolverOptions,
bypassCache: boolean
): Promise<DNSResult>;
}
export declare abstract class AbstractResolverModule {
protected resolver: any;
constructor(resolver: any);
abstract resolve(input: string, options: ResolverOptions, force: boolean): Promise<DNSResult>;
getSupportedTlds(): string[];
isTldSupported(domain: string): boolean;
protected resolver: any;
constructor(resolver: any);
abstract resolve(
input: string,
options: ResolverOptions,
force: boolean
): Promise<DNSResult>;
getSupportedTlds(): string[];
isTldSupported(domain: string): boolean;
}
//# sourceMappingURL=resolverModule.d.ts.map

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,MAAM,CAAC,OAAO,WAAW,cAAc;IACrC,WAAW,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI,CAAC;IAEjC,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC;CACvB;AAED,8BAAsB,sBAAsB;IAC1C,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC;gBAEZ,QAAQ,EAAE,GAAG;IAIzB,QAAQ,CAAC,OAAO,CACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,OAAO,GACb,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":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7D,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI,CAAC;IAEjC,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC;CACvB;AAED,8BAAsB,sBAAsB;IAC1C,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC;gBAEZ,QAAQ,EAAE,GAAG;IAIzB,QAAQ,CAAC,OAAO,CACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,SAAS,CAAC;IAErB,gBAAgB,IAAI,MAAM,EAAE;IAI5B,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAGxC"}

32
dist/types.d.ts vendored
View File

@ -1,26 +1,26 @@
export interface ResolverOptions {
type: any;
customType?: string;
records: any[];
options: any;
type: any;
customType?: string;
records: any[];
options: any;
}
export interface DNSResult {
records: any[];
error?: Error;
records: any[];
error?: Error;
}
export interface DNSRecord {
type: string;
customType?: string;
value: string;
type: string;
customType?: string;
value: string;
}
declare const DNS_RECORD_TYPE: {
A: string;
CNAME: string;
NS: string;
CONTENT: string;
TEXT: string;
ALL: string;
CUSTOM: string;
A: string;
CNAME: string;
NS: string;
CONTENT: string;
TEXT: string;
ALL: string;
CUSTOM: string;
};
export { DNS_RECORD_TYPE };
//# sourceMappingURL=types.d.ts.map