@exodus/currency
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,5 @@ | ||
## 1.1.1 / 2021-06-21 | ||
- memoize `toNumberString` method | ||
## 1.1.0 / 2020-12-22 | ||
@@ -2,0 +6,0 @@ |
@@ -55,2 +55,3 @@ "use strict"; | ||
this._number = this._createNumber(num); | ||
this._numberString = null; | ||
} | ||
@@ -384,2 +385,4 @@ | ||
toNumberString() { | ||
if (this._numberString) return this._numberString; | ||
let number = this._number.toString(10); | ||
@@ -419,2 +422,3 @@ | ||
this._numberString = number; | ||
return number; | ||
@@ -421,0 +425,0 @@ } |
{ | ||
"name": "@exodus/currency", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Currency support.", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
21451
528
1