🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

bn.js

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bn.js - npm Package Compare versions

Comparing version

to
0.4.4

3

lib/bn.js

@@ -331,2 +331,5 @@ function assert(val, msg) {

BN.prototype.neg = function neg() {
if (this.cmpn(0) === 0)
return this.clone();
var r = this.clone();

@@ -333,0 +336,0 @@ r.sign = !this.sign;

2

package.json
{
"name": "bn.js",
"version": "0.4.3",
"version": "0.4.4",
"description": "Big number implementation in pure javascript",

@@ -5,0 +5,0 @@ "main": "lib/bn.js",

@@ -142,2 +142,4 @@ var assert = require('assert');

assert.equal(b.div(n).toString(16), n.toString(16));
assert.equal(new BN('1').div(new BN('-5')).toString(10), '0');
});

@@ -144,0 +146,0 @@