@bithomp/xrpl-api 3.1.14 → 3.1.16
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.
package/lib/parse/index.d.ts
CHANGED
package/lib/parse/index.js
CHANGED
|
@@ -23,9 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.parseTransaction = exports.parseTransactionType = exports.parseOutcome = exports.Utils = exports.Ledger = void 0;
|
|
26
|
+
exports.parseTransaction = exports.parseTransactionType = exports.parseOutcome = exports.Outcomes = exports.Utils = exports.Ledger = void 0;
|
|
27
27
|
exports.Ledger = __importStar(require("./ledger"));
|
|
28
28
|
exports.Utils = __importStar(require("./utils"));
|
|
29
|
+
exports.Outcomes = __importStar(require("./outcome/index"));
|
|
29
30
|
var outcome_1 = require("./outcome");
|
|
30
31
|
Object.defineProperty(exports, "parseOutcome", { enumerable: true, get: function () { return outcome_1.parseOutcome; } });
|
|
31
32
|
var transaction_1 = require("./transaction");
|
|
@@ -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.16",
|
|
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",
|