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.4.3 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 @@

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