@stacksjs/whois 0.68.2 → 0.69.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -7
- package/dist/index.js +112 -65
- package/package.json +4 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { ProxyData, WhoIsOptions } from './types';
|
|
1
|
+
import type { ProxyData, WhoIsOptions, WhoIsResponse } from './types';
|
|
2
2
|
import type { SocksClientOptions } from 'socks';
|
|
3
3
|
import { SocksClient } from 'socks';
|
|
4
4
|
|
|
5
|
-
export {
|
|
6
|
-
export type { SocksClientOptions } from 'socks';
|
|
5
|
+
export type { SocksClientOptions } from 'socks'
|
|
7
6
|
export declare function findWhoIsServer(tld: string): Promise<string>;
|
|
8
7
|
export declare function getWhoIsServer(tld: keyof typeof SERVERS): string | undefined;
|
|
9
8
|
export declare function getTLD(domain: string): keyof typeof SERVERS;
|
|
@@ -61,9 +60,12 @@ export declare class WhoIsParser {
|
|
|
61
60
|
return outputData
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
|
-
export declare function tcpWhois(domain: string, queryOptions: string, server: string, port: number, encoding: string, proxy: ProxyData | null
|
|
65
|
-
export declare function whois(domain: string, parse
|
|
66
|
-
export declare function lookup(domain: string, options: WhoIsOptions | null
|
|
67
|
-
export declare function batchWhois(domains: string[], parallel
|
|
63
|
+
export declare function tcpWhois(domain: string, queryOptions: string, server: string, port: number, encoding: string, proxy: ProxyData | null): Promise<string>;
|
|
64
|
+
export declare function whois(domain: string, parse, options: WhoIsOptions | null): Promise<WhoIsResponse>;
|
|
65
|
+
export declare function lookup(domain: string, options: WhoIsOptions | null): Promise<WhoIsResponse>;
|
|
66
|
+
export declare function batchWhois(domains: string[], parallel, threads, parse, options: WhoIsOptions | null): Promise<WhoIsResponse[]>;
|
|
67
|
+
|
|
68
|
+
export { SocksClient } from 'socks'
|
|
69
|
+
|
|
68
70
|
export * from './constants'
|
|
69
71
|
export * from './types'
|