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

imagine-node

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagine-node - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

10

index.js

@@ -402,2 +402,12 @@ const { PI } = Math;

}
static toString(complex, imaginary) {
const _this = new Complex(complex, imaginary);
if (!_this.i) return String(_this.r);
if (!_this.r) return `${_this.i > 0 ? '' : '-'}${Math.abs(_this.i)}i`;
if (_this.i === 1) return `${_this.r} + i`;
if (_this.i === -1) return `${_this.r} - i`;
return `${_this.r} ${_this.i > 0 ? '+' : '-'} ${Math.abs(_this.i)}i`;
}
};

2

package.json
{
"name": "imagine-node",
"version": "1.0.4",
"version": "1.0.5",
"description": "node module to work with complex numbers",

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

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