Comparing version 1.6.1 to 1.6.2
@@ -160,4 +160,3 @@ var varint = require('varint') | ||
var type = getType(value) | ||
if ('function' !== typeof encodingLengthers[type]) | ||
throw new Error('unknown type:' + type + ', ' + JSON.stringify(value)) | ||
if (type === void 0) throw new Error('unknown type: ' + JSON.stringify(value)) | ||
var len = encodingLengthers[type](value) | ||
@@ -187,4 +186,3 @@ return varint.encodingLength(len << TAG_SIZE) + len | ||
var type = getType(value) | ||
if ('function' !== typeof encodingLengthers[type]) | ||
throw new Error('unknown type:' + type + ', ' + JSON.stringify(value)) | ||
if (type === void 0) throw new Error('unknown type: ' + JSON.stringify(value)) | ||
var len = _len === undefined ? encodingLengthers[type](value) : _len | ||
@@ -191,0 +189,0 @@ // if(!buffer) |
{ | ||
"name": "bipf", | ||
"description": "binary in-place format", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"homepage": "https://github.com/ssbc/bipf", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
60389
1256