@bithomp/xrpl-api 3.1.14 → 3.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,13 +30,13 @@ function hexPriceToBigNumber(hex) {
|
|
|
30
30
|
return new bignumber_js_1.default(`0x${hex}`);
|
|
31
31
|
}
|
|
32
32
|
function getOriginalAssetPrice(assetPrice, scale) {
|
|
33
|
-
if (assetPrice === undefined
|
|
33
|
+
if (assetPrice === undefined) {
|
|
34
34
|
return undefined;
|
|
35
35
|
}
|
|
36
36
|
if (assetPrice.isZero()) {
|
|
37
37
|
return assetPrice;
|
|
38
38
|
}
|
|
39
|
-
if (scale === 0) {
|
|
39
|
+
if (scale === 0 || scale === undefined) {
|
|
40
40
|
return assetPrice;
|
|
41
41
|
}
|
|
42
42
|
return assetPrice.dividedBy(new bignumber_js_1.default(10).pow(scale));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bithomp/xrpl-api",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.15",
|
|
4
4
|
"description": "A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"eslint-config-prettier": "^9.1.0",
|
|
77
77
|
"eslint-plugin-chai-friendly": "^1.0.1",
|
|
78
78
|
"eslint-plugin-import": "^2.31.0",
|
|
79
|
-
"eslint-plugin-n": "^17.
|
|
79
|
+
"eslint-plugin-n": "^17.12.0",
|
|
80
80
|
"eslint-plugin-promise": "^7.1.0",
|
|
81
|
-
"mocha": "^10.
|
|
81
|
+
"mocha": "^10.8.2",
|
|
82
82
|
"nconf": "^0.12.1",
|
|
83
83
|
"ts-jest": "^29.2.5",
|
|
84
84
|
"ts-node": "^10.9.2",
|