engine.io-parser
Advanced tools
Comparing version 1.2.0 to 1.2.1
1.2.1 / 2015-01-17 | ||
================== | ||
* pass has-binary result to encodePacket [rase-] | ||
* Fix parse error [rase-] | ||
1.2.0 / 2015-01-11 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -106,3 +106,3 @@ /** | ||
// might be an object with { base64: true, data: dataAsBase64String } | ||
// might be an object with { base64: true, data: dataAsBase64String } | ||
if (data && data.base64) { | ||
@@ -301,3 +301,5 @@ return encodeBase64Object(packet, callback); | ||
if (supportsBinary && hasBinary(packets)) { | ||
var isBinary = hasBinary(packets); | ||
if (supportsBinary && isBinary) { | ||
if (Blob && !dontSendBlobs) { | ||
@@ -319,3 +321,3 @@ return exports.encodePayloadAsBlob(packets, callback); | ||
function encodeOne(packet, doneCallback) { | ||
exports.encodePacket(packet, supportsBinary, true, function(message) { | ||
exports.encodePacket(packet, !isBinary ? false : supportsBinary, true, function(message) { | ||
doneCallback(null, setLengthHeader(message)); | ||
@@ -322,0 +324,0 @@ }); |
@@ -6,3 +6,2 @@ /** | ||
var utf8 = require('utf8'); | ||
var hasBinary = require('has-binary'); | ||
var after = require('after'); | ||
@@ -231,3 +230,3 @@ var keys = require('./keys'); | ||
if (supportsBinary && hasBinary(packets)) { | ||
if (supportsBinary) { | ||
return exports.encodePayloadAsBinary(packets, callback); | ||
@@ -234,0 +233,0 @@ } |
{ | ||
"name": "engine.io-parser", | ||
"description": "Parser for the client for the realtime Engine", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"homepage": "https://github.com/LearnBoost/engine.io-protocol", | ||
@@ -6,0 +6,0 @@ "devDependencies": { |
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
38709