@tokensoft/conversions
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3983
51
1