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

biggystring

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biggystring - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

lib/src/index.d.ts

14

lib/test/biggystring.test.js

@@ -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 () {

15

package.json
{
"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

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