biggystring
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -7,3 +7,3 @@ "use strict"; | ||
const chai_1 = require("chai"); | ||
const index_1 = require("../index"); | ||
const index_1 = require("../src/index"); | ||
const bns = { | ||
@@ -53,2 +53,5 @@ add: index_1.add, | ||
}); | ||
it('resolve negative numbers in base 16', function () { | ||
chai_1.assert.equal(bns.add('-60830', '0', 16), '-0xed9e'); | ||
}); | ||
}); | ||
@@ -80,2 +83,5 @@ describe('sub', function () { | ||
}); | ||
it('resolve negative numbers in base 16', function () { | ||
chai_1.assert.equal(bns.sub('-60830', '0', 16), '-0xed9e'); | ||
}); | ||
}); | ||
@@ -92,2 +98,5 @@ describe('mul', function () { | ||
}); | ||
it('resolve negative numbers in base 16', function () { | ||
chai_1.assert.equal(bns.mul('-60830', '1', 16), '-0xed9e'); | ||
}); | ||
}); | ||
@@ -133,2 +142,5 @@ describe('div', function () { | ||
}); | ||
it('resolve negative numbers in base 16', function () { | ||
chai_1.assert.equal(bns.div('-60830', '1', 0, 16), '-0xed9e'); | ||
}); | ||
}); | ||
@@ -135,0 +147,0 @@ describe('less than', function () { |
{ | ||
"name": "biggystring", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Full floating point big number library using regular Javascript string", | ||
@@ -32,6 +32,9 @@ "keywords": [ | ||
"fix": "npm run lint -- --fix", | ||
"precommit": "npm run build && npm test", | ||
"prepare": "npm run build", | ||
"test": "npm run lint && mocha" | ||
"precommit": "lint-staged && npm run build && npm test", | ||
"prepare": "husky install && npm run build", | ||
"test": "mocha" | ||
}, | ||
"lint-staged": { | ||
"*.{js,ts}": "eslint" | ||
}, | ||
"dependencies": { | ||
@@ -53,2 +56,3 @@ "bn.js": "^4.11.7" | ||
"eslint-plugin-import": ">=2.18.0", | ||
"eslint-plugin-json-files": "^1.4.0", | ||
"eslint-plugin-node": ">=9.1.0", | ||
@@ -60,3 +64,4 @@ "eslint-plugin-prettier": ">=3.0.0", | ||
"eslint-plugin-standard": ">=4.0.0", | ||
"husky": "^0.14.3", | ||
"husky": "^8.0.2", | ||
"lint-staged": "^13.1.0", | ||
"mocha": "^10.1.0", | ||
@@ -63,0 +68,0 @@ "prettier": "^2.0.5", |
Sorry, the diff of this file is not supported yet
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
111934
11
1434
0
26