Comparing version 2.2.1 to 2.2.2
@@ -205,3 +205,7 @@ "use strict"; | ||
// Start timeout timer (defaults to 30 seconds) | ||
setTimeout(() => this.onEstablishedTimeout(), this._options.timeout || constants_1.DEFAULT_TIMEOUT).unref(); | ||
const timer = setTimeout(() => this.onEstablishedTimeout(), this._options.timeout || constants_1.DEFAULT_TIMEOUT); | ||
// check whether unref is available as it differs from browser to NodeJS (#33) | ||
if (timer.unref && typeof timer.unref === 'function') { | ||
timer.unref(); | ||
} | ||
// If an existing socket is provided, use it to negotiate SOCKS handshake. Otherwise create a new Socket. | ||
@@ -208,0 +212,0 @@ if (existing_socket) { |
{ | ||
"name": "socks", | ||
"private": false, | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.", | ||
@@ -6,0 +6,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
302236
34
1314