@bithomp/xrpl-api 3.1.9 → 3.1.10

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/connection.js CHANGED
@@ -59,7 +59,6 @@ class Connection extends events_1.EventEmitter {
59
59
  });
60
60
  await this.removeClient();
61
61
  this.client = new xrpl_1.Client(this.url, (0, common_1.removeUndefined)({ timeout: this.timeout, connectionTimeout: this.connectionTimeout }));
62
- this.client.apiVersion = this.apiVersion;
63
62
  this.setupEmitter();
64
63
  await this.client.connection.connect();
65
64
  await this.updateServerInfo();
@@ -89,7 +88,7 @@ class Connection extends events_1.EventEmitter {
89
88
  return this.updateSubscriptions(request);
90
89
  }
91
90
  const waitTime = (0, utils_1.getTimestamp)() + RECONNECT_TIMEOUT;
92
- while ((!this.client || !this.isConnected())) {
91
+ while (!this.client || !this.isConnected()) {
93
92
  await (0, utils_1.sleep)(100);
94
93
  if (this.shutdown) {
95
94
  return { error: "shutdownConnection", error_message: "Connection is shutdown.", status: "error" };
@@ -43,7 +43,7 @@ function parsePayment(tx) {
43
43
  assert.ok(tx.TransactionType === "Payment");
44
44
  const source = {
45
45
  address: tx.Account,
46
- maxAmount: (0, utils_1.removeGenericCounterparty)((0, amount_1.default)(tx.SendMax || tx.Amount), tx.Account),
46
+ maxAmount: (0, utils_1.removeGenericCounterparty)((0, amount_1.default)(tx.SendMax || tx.DeliverMax || tx.Amount), tx.Account),
47
47
  tag: tx.SourceTag,
48
48
  };
49
49
  const destination = {
@@ -158,6 +158,7 @@ function parseTransaction(tx, includeRawTransaction, nativeCurrency, definitions
158
158
  type: type,
159
159
  address: (0, account_1.parseAccount)(tx.Account),
160
160
  sequence: tx.Sequence,
161
+ ticketSequence: tx.TicketSequence,
161
162
  id: tx.hash,
162
163
  ctid: tx.ctid,
163
164
  specification: (0, common_1.removeUndefined)(specification),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bithomp/xrpl-api",
3
- "version": "3.1.9",
3
+ "version": "3.1.10",
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",
@@ -64,19 +64,19 @@
64
64
  "devDependencies": {
65
65
  "@types/chai": "^4.3.19",
66
66
  "@types/chai-as-promised": "^7.1.8",
67
- "@types/lodash": "^4.17.7",
68
- "@types/mocha": "^10.0.8",
67
+ "@types/lodash": "^4.17.10",
68
+ "@types/mocha": "^10.0.9",
69
69
  "@types/nconf": "^0.10.7",
70
70
  "@types/node": "^20.14.15",
71
- "@typescript-eslint/eslint-plugin": "^8.6.0",
72
- "@typescript-eslint/parser": "^8.6.0",
71
+ "@typescript-eslint/eslint-plugin": "^8.9.0",
72
+ "@typescript-eslint/parser": "^8.9.0",
73
73
  "chai": "^4.5.0",
74
74
  "chai-as-promised": "^7.1.2",
75
75
  "eslint": "^8.57.0",
76
76
  "eslint-config-prettier": "^9.1.0",
77
77
  "eslint-plugin-chai-friendly": "^1.0.1",
78
- "eslint-plugin-import": "^2.30.0",
79
- "eslint-plugin-n": "^17.10.3",
78
+ "eslint-plugin-import": "^2.31.0",
79
+ "eslint-plugin-n": "^17.11.1",
80
80
  "eslint-plugin-promise": "^7.1.0",
81
81
  "mocha": "^10.7.3",
82
82
  "nconf": "^0.12.1",