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.1.2 to 2.2.0

2

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

@@ -5,0 +5,0 @@ "main": "src/bigjs-adapter.js",

@@ -17,2 +17,3 @@ /*jshint node:true */

pow: pow,
equals: equals,
toString: toString,

@@ -51,4 +52,8 @@ valueOf: toString,

function equals(x, y) {
return x.eq(y);
}
function toString(x) {
return x.toString();
}

@@ -56,2 +56,7 @@ /*jshint node:true, mocha:true */

});
it('should have a pow method with support for ints only', function() {
new Decimal('2').equals(new Decimal('2')).should.be.exactly(true);
new Decimal('2').equals(new Decimal('3')).should.be.exactly(false);
});
});

@@ -58,0 +63,0 @@

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