Comparing version 2.0.5 to 2.0.6
@@ -476,5 +476,5 @@ 'use strict'; | ||
var bn = new BN(bcopy.toBuffer()); | ||
var buf = bn.toArrayLike(Buffer, 'le', size); | ||
bn = new BN(buf); | ||
var bn = new BN(bcopy.toHex(), 'hex'); | ||
var buf = bn.toArrayLike(Buffer, 'le', size); // convert to little endian | ||
bn = new BN(buf.toString('hex'), 'hex'); | ||
if (signed) { | ||
@@ -481,0 +481,0 @@ bn = bn.fromTwos(bits); |
{ | ||
"name": "fcbuffer", | ||
"description": "Serialization library geared towards immutable data storage such as blockchains.", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"main": "lib/index.js", | ||
@@ -20,3 +20,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"bn.js": "^4.11.6", | ||
"bn.js": "^4.11.8", | ||
"bytebuffer": "^5.0.1" | ||
@@ -23,0 +23,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
66574
Updatedbn.js@^4.11.8