Socket
Socket
Sign inDemoInstall

msgpack5

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msgpack5 - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

3

index.js

@@ -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()
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc