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.2 to 1.3.3

test/numerictypeasserts.js

4

index.js

@@ -382,3 +382,3 @@

function registerDecoder(type, decode) {
assert(type > 0, 'must have a type > 0')
assert(type >= 0, 'must have a non-negative type')
assert(decode, 'must have a decode function')

@@ -397,3 +397,3 @@

assert(encode, 'must have an encode function')
assert(type > 0, 'must have a type > 0')
assert(type >= 0, 'must have a non-negative type')
assert(decode, 'must have a decode function')

@@ -400,0 +400,0 @@

{
"name": "msgpack5",
"version": "1.3.2",
"version": "1.3.3",
"description": "A msgpack v5 implementation for node.js, with extension points",

@@ -5,0 +5,0 @@ "main": "index.js",

msgpack5  [![Build Status](https://travis-ci.org/mcollina/msgpack5.png)](https://travis-ci.org/mcollina/msgpack5)
========
A msgpack v5 implementation for node.js, with prototype-based extension points.
A msgpack v5 implementation for node.js, with extension point support.
This library was built as the data format for
[JSChan](http://npm.im/jschan).
Install

@@ -21,3 +18,2 @@ -------

var msgpack = require('msgpack5')() // namespace our extensions
, assert = require('assert')
, a = new MyType(2, 'a')

@@ -119,3 +115,3 @@ , encode = msgpack.encode

- `type`, is a positive integer identificating the type once serialized
- `type`, is a greater than zero integer identificating the type once serialized
- `decode`, a function that will be called to decode the object from

@@ -132,3 +128,3 @@ the passed `Buffer`

- `type`, is a positive integer identificating the type once serialized
- `type`, is a greater than zero integer identificating the type once serialized
- `constructor`, the function that will be used to match the objects

@@ -173,2 +169,6 @@ with `instanceof`

This library was originally built as the data format for
[JSChan](http://npm.im/jschan).
License

@@ -175,0 +175,0 @@ -------

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