You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

socket.io-parser

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.1-rc2 to 4.0.1-rc3

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## [4.0.1-rc3](https://github.com/socketio/socket.io-parser/compare/4.0.1-rc2...4.0.1-rc3) (2020-10-25)
## [4.0.1-rc2](https://github.com/socketio/socket.io-parser/compare/4.0.1-rc1...4.0.1-rc2) (2020-10-15)

@@ -2,0 +6,0 @@

2

dist/index.d.ts

@@ -13,3 +13,3 @@ import Emitter = require("component-emitter");

ACK = 3,
ERROR = 4,
CONNECT_ERROR = 4,
BINARY_EVENT = 5,

@@ -16,0 +16,0 @@ BINARY_ACK = 6

@@ -20,3 +20,3 @@ "use strict";

PacketType[PacketType["ACK"] = 3] = "ACK";
PacketType[PacketType["ERROR"] = 4] = "ERROR";
PacketType[PacketType["CONNECT_ERROR"] = 4] = "CONNECT_ERROR";
PacketType[PacketType["BINARY_EVENT"] = 5] = "BINARY_EVENT";

@@ -214,4 +214,4 @@ PacketType[PacketType["BINARY_ACK"] = 6] = "BINARY_ACK";

return payload === undefined;
case PacketType.ERROR:
return typeof payload === "string";
case PacketType.CONNECT_ERROR:
return typeof payload === "string" || typeof payload === "object";
case PacketType.EVENT:

@@ -218,0 +218,0 @@ case PacketType.BINARY_EVENT:

{
"name": "socket.io-parser",
"version": "4.0.1-rc2",
"version": "4.0.1-rc3",
"description": "socket.io protocol parser",

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

@@ -51,3 +51,3 @@

type: parser.BINARY_EVENT,
data: {i: new Buffer(1234), j: new Blob([new ArrayBuffer(2)])}
data: {i: new Buffer(1234), j: new Blob([new ArrayBuffer(2)])},
id: 15

@@ -54,0 +54,0 @@ };

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc