Comparing version 1.3.0 to 1.3.1
@@ -226,3 +226,3 @@ | ||
result = buf.slice(2, 2 + buf.readUInt8(1)) | ||
buf.consume(3 + buf.readUInt8(1)) | ||
buf.consume(2 + buf.readUInt8(1)) | ||
return result | ||
@@ -314,3 +314,2 @@ case 0xc5: | ||
function decodeArray(buf, length) { | ||
@@ -317,0 +316,0 @@ var result = [] |
{ | ||
"name": "msgpack5", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A msgpack v5 implementation for node.js, with extension points", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -73,1 +73,15 @@ | ||
}) | ||
test('encode/decode map with buf, ints and strings', function(t) { | ||
var map = { | ||
topic: 'hello' | ||
, qos: 1 | ||
, payload: new Buffer("world") | ||
, messageId: '42' | ||
, ttl: 1416309270167 | ||
} | ||
, pack = msgpack() | ||
t.deepEqual(pack.decode(pack.encode(map)), map) | ||
t.end() | ||
}) |
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
118258
2142