Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bn.js

Package Overview
Dependencies
Maintainers
1
Versions
120
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 0.11.1 to 0.11.2

14

lib/bn.js

@@ -186,2 +186,6 @@ // Utils

this.length--;
return this._normSign();
};
BN.prototype._normSign = function _normSign() {
// -0 = 0

@@ -393,3 +397,3 @@ if (this.length === 1 && this.words[0] === 0)

this.sign = !this.sign;
return this;
return this._normSign();

@@ -401,3 +405,3 @@ // positive + negative

num.sign = true;
return r;
return r._normSign();
}

@@ -468,3 +472,3 @@

num.sign = true;
return r;
return r._normSign();

@@ -476,3 +480,3 @@ // -this - num = -(this + num)

this.sign = true;
return this;
return this._normSign();
}

@@ -999,3 +1003,3 @@

var x2 = new BN(0);
while (a.cmpn(1) !== 0 && b.cmpn(1) !== 0) {
while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {
while (a.isEven()) {

@@ -1002,0 +1006,0 @@ a.ishrn(1);

{
"name": "bn.js",
"version": "0.11.1",
"version": "0.11.2",
"description": "Big number implementation in pure javascript",

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

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