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

biginteger

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biginteger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

node-tests/expected/abs.js

27

biginteger.js

@@ -43,22 +43,2 @@ /*

// IE doesn't support Array.prototype.map
if (!Array.prototype.map) {
Array.prototype.map = function(fun /*, thisp*/) {
var len = this.length >>> 0;
if (typeof fun !== "function") {
throw new TypeError();
}
var res = new Array(len);
var thisp = arguments[1];
for (var i = 0; i < len; i++) {
if (i in this) {
res[i] = fun.call(thisp, this[i], i, this);
}
}
return res;
};
}
var CONSTRUCT = {}; // Unique token to call "private" version of constructor

@@ -430,7 +410,2 @@

// Optimize base
if (base === BigInteger_base) {
return new BigInteger(digits.map(Number).reverse(), sign, CONSTRUCT);
}
// Do the conversion

@@ -1646,2 +1621,2 @@ var d = ZERO;

exports.BigInteger = BigInteger;
})(typeof exports !== 'undefined' ? exports : this);
})(typeof exports !== 'undefined' ? exports : this);
{
"name": "biginteger",
"description": "A big integer library for JavaScript",
"description": "An arbitrarily-sized-integer library for JavaScript.",
"version": "1.0.1",
"main": "./biginteger.js",
"author": {
"name": "Silent Matt"
"scripts": {
"test": "node node-tests/test-biginteger.js",
"prepublish": "npm test"
},
"version": "1.0.0",
"repository": {
"type": "git",
"url": "http://github.com/bang590/biginteger"
"url": "https://github.com/silentmatt/javascript-biginteger.git"
},
"bugs": {
"url": "https://github.com/ashnur/biginteger/issues"
},
"keywords": [
"bignum",
"bigint",
"big number",
"big integer"
],
"author": {
"name": "Matthew Crumley",
"url": "http://silentmatt.com/"
},
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/bang590/biginteger/master/LICENSE"
"url": "http://opensource.org/licenses/mit-license.php"
}
]
}
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