Comparing version 8.0.4 to 8.0.5
{ | ||
"name": "primus", | ||
"version": "8.0.4", | ||
"version": "8.0.5", | ||
"description": "Primus is a simple abstraction around real-time frameworks. It allows you to easily switch between different frameworks without any code changes.", | ||
@@ -66,3 +66,3 @@ "main": "index.js", | ||
"@babel/core": "~7.14.3", | ||
"@babel/plugin-transform-object-assign": "~7.12.13", | ||
"@babel/plugin-transform-object-assign": "~7.14.5", | ||
"@babel/preset-env": "~7.14.2", | ||
@@ -84,3 +84,3 @@ "babelify": "~10.0.0", | ||
"inherits": "~2.0.3", | ||
"mocha": "~8.4.0", | ||
"mocha": "~9.0.3", | ||
"pre-commit": "~1.2.0", | ||
@@ -100,3 +100,3 @@ "primus-msgpack": "~1.0.2", | ||
"uws": "10.148.1", | ||
"ws": "~7.4.1", | ||
"ws": "~8.0.0", | ||
"yeast": "~0.1.2" | ||
@@ -103,0 +103,0 @@ }, |
@@ -51,3 +51,7 @@ 'use strict'; | ||
socket.on('message', spark.emits('incoming::data')); | ||
socket.on('message', | ||
spark.emits('incoming::data', (next, data, isBinary) => { | ||
next(undefined, isBinary === false ? data.toString() : data); | ||
}) | ||
); | ||
socket.on('error', spark.emits('incoming::error')); | ||
@@ -54,0 +58,0 @@ socket.on('ping', spark.emits('incoming::pong', (next) => { |
Sorry, the diff of this file is too big to display
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
563049
13876