*Update dist
This commit is contained in:
parent
3f68971640
commit
32c33748e4
|
@ -1,3 +1,3 @@
|
|||
export * from "./types.js";
|
||||
export * from "./resolverModule.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
|
|
|
@ -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
|
||||
//# sourceMappingURL=resolverModule.d.ts.map
|
||||
|
|
|
@ -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"}
|
|
@ -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
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
|
|
|
@ -2,4 +2,4 @@ export declare function getTld(domain: string): string;
|
|||
export declare function getSld(domain: string): string;
|
||||
export declare function isIp(ip: string): boolean;
|
||||
export declare function isDomain(domain: string): boolean;
|
||||
//# sourceMappingURL=util.d.ts.map
|
||||
//# sourceMappingURL=util.d.ts.map
|
||||
|
|
Loading…
Reference in New Issue