Comparing version 8.4.1 to 8.4.2
@@ -106,6 +106,6 @@ /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^net|tls$" }] */ | ||
if (data.length >= 65536) { | ||
if (dataLength >= 65536) { | ||
offset += 8; | ||
payloadLength = 127; | ||
} else if (data.length > 125) { | ||
} else if (dataLength > 125) { | ||
offset += 2; | ||
@@ -140,7 +140,7 @@ payloadLength = 126; | ||
if (merge) { | ||
applyMask(data, mask, target, offset, data.length); | ||
applyMask(data, mask, target, offset, dataLength); | ||
return [target]; | ||
} | ||
applyMask(data, mask, data, 0, data.length); | ||
applyMask(data, mask, data, 0, dataLength); | ||
return [target, data]; | ||
@@ -147,0 +147,0 @@ } |
{ | ||
"name": "ws", | ||
"version": "8.4.1", | ||
"version": "8.4.2", | ||
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
129312