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

bigjs-adapter

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigjs-adapter - npm Package Compare versions

Comparing version 2.4.0 to 2.4.2

4

package.json
{
"name": "bigjs-adapter",
"version": "2.4.0",
"version": "2.4.2",
"description": "big.js adapter for linear-arbitrary-precision",

@@ -30,3 +30,3 @@ "main": "src/bigjs-adapter.js",

"rimraf": "^2.4.3",
"should": "^7.1.1"
"should": "^8.0.1"
},

@@ -33,0 +33,0 @@ "dependencies": {

@@ -92,9 +92,9 @@ /*jshint node:true, mocha:true */

var decimalThird = new Decimal40('1').div(new Decimal('3'));
var stringified = JSON.stringify([decimalThird]);
var stringified = JSON.stringify(decimalThird);
stringified.should.be.exactly('["0.3333333333333333333333333333333333333333"]');
stringified.should.be.exactly('"0.3333333333333333333333333333333333333333"');
JSON.parse(stringified, Decimal40.JSONReviver)[0].should.eql(decimalThird);
JSON.parse(stringified, Decimal40.reviver).should.eql(decimalThird);
});
});
});
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