Socket
Socket
Sign inDemoInstall

socket.io-parser

Package Overview
Dependencies
3
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.2 to 4.2.3

build/cjs/binary.d.ts

3

build/cjs/index.js

@@ -247,3 +247,4 @@ "use strict";

case PacketType.BINARY_EVENT:
return Array.isArray(payload) && payload.length > 0;
return (Array.isArray(payload) &&
(typeof payload[0] === "string" || typeof payload[0] === "number"));
case PacketType.ACK:

@@ -250,0 +251,0 @@ case PacketType.BINARY_ACK:

@@ -243,3 +243,4 @@ import { Emitter } from "@socket.io/component-emitter";

case PacketType.BINARY_EVENT:
return Array.isArray(payload) && payload.length > 0;
return (Array.isArray(payload) &&
(typeof payload[0] === "string" || typeof payload[0] === "number"));
case PacketType.ACK:

@@ -246,0 +247,0 @@ case PacketType.BINARY_ACK:

@@ -238,3 +238,4 @@ import { Emitter } from "@socket.io/component-emitter";

case PacketType.BINARY_EVENT:
return Array.isArray(payload) && payload.length > 0;
return (Array.isArray(payload) &&
(typeof payload[0] === "string" || typeof payload[0] === "number"));
case PacketType.ACK:

@@ -241,0 +242,0 @@ case PacketType.BINARY_ACK:

{
"name": "socket.io-parser",
"version": "4.2.2",
"version": "4.2.3",
"description": "socket.io protocol parser",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc