socket.io-parser
Advanced tools
Comparing version 4.0.1-rc2 to 4.0.1-rc3
@@ -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 @@ |
@@ -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 @@ }; |
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
22184