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 3.4.0 to 3.4.1

4

lib/encoder.js

@@ -25,3 +25,5 @@ var bl = require('bl')

buf[0] = 0xa0 | len
buf.write(obj, 1)
if (len > 0) {
buf.write(obj, 1)
}
} else if (len <= 0xff && !compatibilityMode) {

@@ -28,0 +30,0 @@ // str8, but only when not in compatibility mode

{
"name": "msgpack5",
"version": "3.4.0",
"version": "3.4.1",
"description": "A msgpack v5 implementation for node.js and the browser, with extension points",

@@ -40,3 +40,3 @@ "main": "index.js",

"pre-commit": "1.0.10",
"standard": "^6.0.4",
"standard": "^8.0.0",
"tape": "^4.0.0",

@@ -43,0 +43,0 @@ "testling": "^1.7.1",

@@ -12,3 +12,3 @@ 'use strict'

// build base
for (var i = 'a'; i.length < 32; i += 'a') {
for (var i = ''; i.length < 32; i += 'a') {
all.push(i)

@@ -30,3 +30,5 @@ }

buf[0] = 0xa0 | Buffer.byteLength(str)
buf.write(str, 1)
if (str.length > 0) {
buf.write(str, 1)
}
t.equal(encoder.decode(buf), str, 'must decode correctly')

@@ -33,0 +35,0 @@ 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