Sign In

socket.io-parser

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io-parser - npm Package Compare versions

Comparing version
3.4.4
to
3.4.5
+1
-6
index.js

@@ -252,7 +252,2 @@

this.reconstructor = new BinaryReconstructor(packet);
// no attachments, labeled binary but no binary data to follow
if (this.reconstructor.reconPack.attachments === 0) {
this.emit('decoded', packet);
}
} else { // non-binary full packet

@@ -305,3 +300,3 @@ this.emit('decoded', packet);

var n = Number(buf);
if (!isInteger(n) || n < 0) {
if (!isInteger(n) || n < 1) {
throw new Error("Illegal attachments");

@@ -308,0 +303,0 @@ } else if (n > maxAttachments) {

+1
-1
{
"name": "socket.io-parser",
"version": "3.4.4",
"version": "3.4.5",
"description": "socket.io protocol parser",

@@ -5,0 +5,0 @@ "repository": {