Comparing version 1.0.0 to 1.0.1
@@ -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" | ||
} | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
6681145
56
162334
1
0
1
1