engine.io-parser
Advanced tools
Comparing version 1.2.1 to 1.2.2
1.2.2 / 2015-09-09 | ||
================== | ||
* fixes for iojs/node | ||
1.2.1 / 2015-01-17 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -63,9 +63,5 @@ /** | ||
var data = (packet.data === undefined) | ||
? undefined | ||
: packet.data.buffer || packet.data; | ||
if (Buffer.isBuffer(data)) { | ||
if (Buffer.isBuffer(packet.data)) { | ||
return encodeBuffer(packet, supportsBinary, callback); | ||
} else if (data instanceof ArrayBuffer) { | ||
} else if (packet.data && (packet.data.buffer || packet.data) instanceof ArrayBuffer) { | ||
return encodeArrayBuffer(packet, supportsBinary, callback); | ||
@@ -101,6 +97,5 @@ } | ||
function encodeArrayBuffer(packet, supportsBinary, callback) { | ||
var data = (packet.data === undefined) | ||
? undefined | ||
: packet.data.buffer || packet.data; | ||
var data = packet.data.buffer || packet.data; | ||
if (!supportsBinary) { | ||
@@ -128,7 +123,7 @@ return exports.encodeBase64Packet(packet, callback); | ||
exports.encodeBase64Packet = function(packet, callback){ | ||
var data = packet.data.buffer || packet.data; | ||
if (data instanceof ArrayBuffer) { | ||
var buf = new Buffer(data.byteLength); | ||
if (!Buffer.isBuffer(packet.data)) { | ||
var buf = new Buffer(packet.data.byteLength); | ||
for (var i = 0; i < buf.length; i++) { | ||
buf[i] = data[i]; | ||
buf[i] = packet.data[i]; | ||
} | ||
@@ -135,0 +130,0 @@ packet.data = buf; |
{ | ||
"name": "engine.io-parser", | ||
"description": "Parser for the client for the realtime Engine", | ||
"version": "1.2.1", | ||
"homepage": "https://github.com/LearnBoost/engine.io-protocol", | ||
"version": "1.2.2", | ||
"homepage": "https://github.com/Automattic/engine.io-parser", | ||
"devDependencies": { | ||
"expect.js": "0.3.1", | ||
"mocha": "2.1.0", | ||
"zuul": "1.10.2" | ||
"mocha": "2.2.5", | ||
"zuul": "3.0.0", | ||
"zuul-ngrok": "3.0.0" | ||
}, | ||
@@ -15,5 +16,5 @@ "dependencies": { | ||
"base64-arraybuffer": "0.1.2", | ||
"blob": "0.0.2", | ||
"has-binary": "0.1.5", | ||
"utf8": "2.0.0" | ||
"blob": "0.0.4", | ||
"has-binary": "0.1.6", | ||
"utf8": "2.1.0" | ||
}, | ||
@@ -23,13 +24,7 @@ "scripts": { | ||
}, | ||
"component": { | ||
"scripts": { | ||
"engine.io-parser/index.js": "lib/index.js", | ||
"engine.io-parser/keys.js": "lib/keys.js" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:LearnBoost/engine.io-parser.git" | ||
"url": "git@github.com:Automattic/engine.io-parser.git" | ||
}, | ||
"browser": "./lib/browser.js" | ||
} |
# engine.io-parser | ||
[![Build Status](https://secure.travis-ci.org/Automattic/engine.io-parser.svg)](http://travis-ci.org/Automattic/engine.io-parser) | ||
[![Build Status](https://secure.travis-ci.org/socketio/engine.io-parser.svg)](http://travis-ci.org/socketio/engine.io-parser) | ||
[![NPM version](https://badge.fury.io/js/engine.io-parser.svg)](http://badge.fury.io/js/engine.io-parser) | ||
@@ -9,4 +9,4 @@ | ||
shared by both | ||
[engine.io-client](https://github.com/Automattic/engine.io-client) and | ||
[engine.io](https://github.com/Automattic/engine.io). | ||
[engine.io-client](https://github.com/socketio/engine.io-client) and | ||
[engine.io](https://github.com/socketio/engine.io). | ||
@@ -13,0 +13,0 @@ ## How to use |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38153
4
889
+ Addedblob@0.0.4(transitive)
+ Addedhas-binary@0.1.6(transitive)
+ Addedutf8@2.1.0(transitive)
- Removedblob@0.0.2(transitive)
- Removedhas-binary@0.1.5(transitive)
- Removedutf8@2.0.0(transitive)
Updatedblob@0.0.4
Updatedhas-binary@0.1.6
Updatedutf8@2.1.0