Comparing version 6.1.3 to 6.1.4
@@ -482,2 +482,3 @@ 'use strict'; | ||
parsedUrl.protocol === 'wss:' || parsedUrl.protocol === 'https:'; | ||
const defaultPort = isSecure ? 443 : 80; | ||
const key = crypto.randomBytes(16).toString('base64'); | ||
@@ -491,3 +492,4 @@ const httpObj = isSecure ? https : http; | ||
options.createConnection = isSecure ? tlsConnect : netConnect; | ||
options.port = parsedUrl.port || (isSecure ? 443 : 80); | ||
options.defaultPort = options.defaultPort || defaultPort; | ||
options.port = parsedUrl.port || defaultPort; | ||
options.host = parsedUrl.hostname.startsWith('[') | ||
@@ -494,0 +496,0 @@ ? parsedUrl.hostname.slice(1, -1) |
{ | ||
"name": "ws", | ||
"version": "6.1.3", | ||
"version": "6.1.4", | ||
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js", | ||
@@ -36,7 +36,7 @@ "keywords": [ | ||
"bufferutil": "~4.0.0", | ||
"eslint": "~5.12.0", | ||
"eslint-config-prettier": "~3.6.0", | ||
"eslint": "~5.14.0", | ||
"eslint-config-prettier": "~4.0.0", | ||
"eslint-plugin-prettier": "~3.0.0", | ||
"mocha": "~5.2.0", | ||
"nyc": "~13.1.0", | ||
"nyc": "~13.3.0", | ||
"prettier": "~1.16.1", | ||
@@ -43,0 +43,0 @@ "prettylint": "~1.0.0", |
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
100922
2789