@stacksjs/whois 0.61.23 → 0.62.0
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.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -415,7 +415,7 @@ async function tcpWhois(domain, queryOptions, server, port, encoding, proxy) {
|
|
|
415
415
|
proxy: {
|
|
416
416
|
host: proxy.ip,
|
|
417
417
|
port: proxy.port,
|
|
418
|
-
type: proxy.type ===
|
|
418
|
+
type: proxy.type === 1 /* SOCKS5 */ ? 5 : 4
|
|
419
419
|
},
|
|
420
420
|
command: "connect",
|
|
421
421
|
destination: {
|
|
@@ -537,10 +537,10 @@ async function batchWhois(domains, parallel = false, threads = 1, parse = false,
|
|
|
537
537
|
}
|
|
538
538
|
var IANA_CHK_URL = "https://www.iana.org/whois?q=";
|
|
539
539
|
var ProxyType;
|
|
540
|
-
(
|
|
540
|
+
((ProxyType2) => {
|
|
541
541
|
ProxyType2[ProxyType2["SOCKS4"] = 0] = "SOCKS4";
|
|
542
542
|
ProxyType2[ProxyType2["SOCKS5"] = 1] = "SOCKS5";
|
|
543
|
-
})(ProxyType
|
|
543
|
+
})(ProxyType ||= {});
|
|
544
544
|
|
|
545
545
|
class WhoIsParser {
|
|
546
546
|
static iterParse(rawData, outputData) {
|