@exodus/currency
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,6 @@ | ||
0.1.2 / 2018-11-14 | ||
------------------ | ||
- explicitly support numbers represented as hex strings | ||
0.1.1 / 2018-11-11 | ||
@@ -2,0 +7,0 @@ ------------------ |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _util = require("./util"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -39,2 +41,6 @@ | ||
if (typeof num === 'string' && num.startsWith('0x')) { | ||
num = (0, _util.hexToNum)(num); | ||
} | ||
this._number = (0, _bigRational.default)(num); | ||
@@ -41,0 +47,0 @@ this.unit = unit; |
{ | ||
"name": "@exodus/currency", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Currency support.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14435
10
381