*Update dist
This commit is contained in:
parent
3f68971640
commit
32c33748e4
|
@ -1,3 +1,3 @@
|
||||||
export * from "./types.js";
|
export * from "./types.js";
|
||||||
export * from "./resolverModule.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";
|
import type { DNSResult, ResolverOptions } from "./types.js";
|
||||||
export default interface ResolverModule {
|
export interface ResolverModule {
|
||||||
constructor(resolver: any): void;
|
constructor(resolver: any): void;
|
||||||
resolve(domain: string, options: ResolverOptions, bypassCache: boolean): Promise<DNSResult>;
|
resolve(
|
||||||
|
domain: string,
|
||||||
|
options: ResolverOptions,
|
||||||
|
bypassCache: boolean
|
||||||
|
): Promise<DNSResult>;
|
||||||
}
|
}
|
||||||
export declare abstract class AbstractResolverModule {
|
export declare abstract class AbstractResolverModule {
|
||||||
protected resolver: any;
|
protected resolver: any;
|
||||||
constructor(resolver: any);
|
constructor(resolver: any);
|
||||||
abstract resolve(input: string, options: ResolverOptions, force: boolean): Promise<DNSResult>;
|
abstract resolve(
|
||||||
getSupportedTlds(): string[];
|
input: string,
|
||||||
isTldSupported(domain: string): boolean;
|
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 {
|
export interface ResolverOptions {
|
||||||
type: any;
|
type: any;
|
||||||
customType?: string;
|
customType?: string;
|
||||||
records: any[];
|
records: any[];
|
||||||
options: any;
|
options: any;
|
||||||
}
|
}
|
||||||
export interface DNSResult {
|
export interface DNSResult {
|
||||||
records: any[];
|
records: any[];
|
||||||
error?: Error;
|
error?: Error;
|
||||||
}
|
}
|
||||||
export interface DNSRecord {
|
export interface DNSRecord {
|
||||||
type: string;
|
type: string;
|
||||||
customType?: string;
|
customType?: string;
|
||||||
value: string;
|
value: string;
|
||||||
}
|
}
|
||||||
declare const DNS_RECORD_TYPE: {
|
declare const DNS_RECORD_TYPE: {
|
||||||
A: string;
|
A: string;
|
||||||
CNAME: string;
|
CNAME: string;
|
||||||
NS: string;
|
NS: string;
|
||||||
CONTENT: string;
|
CONTENT: string;
|
||||||
TEXT: string;
|
TEXT: string;
|
||||||
ALL: string;
|
ALL: string;
|
||||||
CUSTOM: string;
|
CUSTOM: string;
|
||||||
};
|
};
|
||||||
export { DNS_RECORD_TYPE };
|
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 getSld(domain: string): string;
|
||||||
export declare function isIp(ip: string): boolean;
|
export declare function isIp(ip: string): boolean;
|
||||||
export declare function isDomain(domain: string): boolean;
|
export declare function isDomain(domain: string): boolean;
|
||||||
//# sourceMappingURL=util.d.ts.map
|
//# sourceMappingURL=util.d.ts.map
|
||||||
|
|
Loading…
Reference in New Issue