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.3.0 to 0.3.1

11

lib/bn.js

@@ -538,6 +538,6 @@ function assert(val, msg) {

if (s !== 0) {
var prep = [];
for (var i = this.words.length - 1; i >= 0; i--)
this.words[i + s] = this.words[i];
for (var i = 0; i < s; i++)
prep.push(0);
this.words = prep.concat(this.words);
this.words[i] = 0;
this.length = this.words.length;

@@ -565,4 +565,5 @@ }

hint = Math.max(0, hint);
for (var i = 0; i < s; i++)
this.words.shift();
for (var i = s; i <= this.words.length; i++)
this.words[i - s] = this.words[i];
this.words.length = i - s - 1;
this.length = this.words.length;

@@ -569,0 +570,0 @@ }

{
"name": "bn.js",
"version": "0.3.0",
"version": "0.3.1",
"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