@bithomp/xrpl-api 3.2.1 → 3.2.2
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/ledger/account_tx.js
CHANGED
|
@@ -143,14 +143,14 @@ async function findTransactions(account, options = { limit: DEFAULT_LIMIT, timeo
|
|
|
143
143
|
...loadOptions,
|
|
144
144
|
...{ balanceChanges: false, specification: false, limit: getTransactionsLimit },
|
|
145
145
|
});
|
|
146
|
-
if (
|
|
146
|
+
if (accountTransactions.error) {
|
|
147
147
|
if (accountTransactions.error_message === "Request timeout.") {
|
|
148
148
|
continue;
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
151
151
|
accountTransactionsError = accountTransactions;
|
|
152
|
+
break;
|
|
152
153
|
}
|
|
153
|
-
break;
|
|
154
154
|
}
|
|
155
155
|
let newTransactions = accountTransactions.transactions;
|
|
156
156
|
loadOptions.marker = accountTransactions.marker;
|
|
@@ -189,7 +189,7 @@ async function findTransactions(account, options = { limit: DEFAULT_LIMIT, timeo
|
|
|
189
189
|
}
|
|
190
190
|
if (loadOptions.marker && transactions.length === 0) {
|
|
191
191
|
return {
|
|
192
|
-
status: "
|
|
192
|
+
status: "error",
|
|
193
193
|
error: "searchTimeout",
|
|
194
194
|
marker: loadOptions.marker,
|
|
195
195
|
};
|
|
@@ -408,10 +408,10 @@ async function waitForFinalTransactionOutcome(txHash, lastLedger) {
|
|
|
408
408
|
}
|
|
409
409
|
if (tx && !tx.hasOwnProperty("error") && tx.validated === false) {
|
|
410
410
|
if (tx.hasOwnProperty("LastLedgerSequence")) {
|
|
411
|
-
return { ...tx, status: "
|
|
411
|
+
return { ...tx, status: "error", error: "lastLedgerIndexReached" };
|
|
412
412
|
}
|
|
413
413
|
else {
|
|
414
|
-
return { ...tx, status: "
|
|
414
|
+
return { ...tx, status: "error", error: "waitingForValidation" };
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
return tx;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bithomp/xrpl-api",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
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",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "git+https://github.com/Bithomp/xrpl-api.git"
|
|
12
12
|
},
|
|
13
13
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
14
|
+
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"xrpl",
|
|
@@ -63,24 +63,22 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@eslint/eslintrc": "^3.2.0",
|
|
66
|
-
"@eslint/js": "^9.17.0",
|
|
67
66
|
"@types/chai": "^5.0.1",
|
|
68
67
|
"@types/chai-as-promised": "^8.0.1",
|
|
69
|
-
"@types/lodash": "^4.17.
|
|
68
|
+
"@types/lodash": "^4.17.14",
|
|
70
69
|
"@types/mocha": "^10.0.10",
|
|
71
70
|
"@types/nconf": "^0.10.7",
|
|
72
|
-
"@types/node": "^22.10.
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
74
|
-
"@typescript-eslint/parser": "^8.
|
|
71
|
+
"@types/node": "^22.10.10",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
73
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
75
74
|
"chai": "^4.5.0",
|
|
76
75
|
"chai-as-promised": "^7.1.2",
|
|
77
|
-
"eslint": "^9.
|
|
78
|
-
"eslint-config-prettier": "^
|
|
76
|
+
"eslint": "^9.19.0",
|
|
77
|
+
"eslint-config-prettier": "^10.0.1",
|
|
79
78
|
"eslint-plugin-chai-friendly": "^1.0.1",
|
|
80
79
|
"eslint-plugin-import": "^2.31.0",
|
|
81
80
|
"eslint-plugin-n": "^17.15.1",
|
|
82
81
|
"eslint-plugin-promise": "^7.2.1",
|
|
83
|
-
"globals": "^15.14.0",
|
|
84
82
|
"mocha": "^11.0.1",
|
|
85
83
|
"nconf": "^0.12.1",
|
|
86
84
|
"ts-jest": "^29.2.5",
|