@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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. 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 === ProxyType.SOCKS5 ? 5 : 4
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
- (function(ProxyType2) {
540
+ ((ProxyType2) => {
541
541
  ProxyType2[ProxyType2["SOCKS4"] = 0] = "SOCKS4";
542
542
  ProxyType2[ProxyType2["SOCKS5"] = 1] = "SOCKS5";
543
- })(ProxyType || (ProxyType = {}));
543
+ })(ProxyType ||= {});
544
544
 
545
545
  class WhoIsParser {
546
546
  static iterParse(rawData, outputData) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/whois",
3
3
  "type": "module",
4
- "version": "0.61.23",
4
+ "version": "0.62.0",
5
5
  "description": "Easily get whois info.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",