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

big-rat

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-rat - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

lib/is-bn.js

@@ -10,3 +10,3 @@ 'use strict'

function isBN(x) {
return x && typeof x === 'object' && x.words
return x && typeof x === 'object' && Boolean(x.words)
}

@@ -17,2 +17,6 @@ 'use strict'

}
if(sdenom < 0) {
numer = numer.neg()
denom = denom.neg()
}
var d = numer.gcd(denom)

@@ -19,0 +23,0 @@ if(d.cmpn(1)) {

{
"name": "big-rat",
"version": "1.0.1",
"version": "1.0.2",
"description": "A big integer rational number",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,3 +6,3 @@ 'use strict'

function recip(f) {
return [f[1], f[0]]
return [f[1].clone(), f[0].clone()]
}
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