Comparing version 1.3.2 to 1.3.3
@@ -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 @@ ------- |
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
119964
44
2196