New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tokensoft/conversions

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tokensoft/conversions - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

index.js

@@ -12,3 +12,4 @@ var assert = require('assert')

decimals !== undefined,
'required "decimals" argument is undefined in call to function ' + functionName
'required "decimals" argument is undefined in call to function ' +
functionName
)

@@ -29,3 +30,4 @@ }

var displayValue = new BigNumber(value)
return displayValue.multipliedBy(baseUnit).toString()
displayValue = displayValue.multipliedBy(baseUnit).toString()
return new BigNumber(displayValue).toFixed()
}

@@ -32,0 +34,0 @@

{
"name": "@tokensoft/conversions",
"version": "1.0.1",
"version": "1.0.2",
"description": "Utils to convert values between on-chain \"base\" and human-readable \"display\" units",

@@ -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