@bithomp/xrpl-api 3.0.3 → 3.0.5

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.
@@ -142,6 +142,7 @@ async function getTransactionByCTID(ctid, options = {}) {
142
142
  error: "txnNotFound",
143
143
  };
144
144
  }
145
+ ledgerTx.ctid = ctid;
145
146
  const result = (0, transaction_1.ledgerTxToTx)(ledgerTx, ledgerIndex, ledger.close_time);
146
147
  if (formatted === true) {
147
148
  return (0, transaction_1.getTxDetails)(result, options.includeRawTransaction === true, undefined, options.definitions);
@@ -11,6 +11,7 @@ const amount_1 = __importDefault(require("../ledger/amount"));
11
11
  const asset_1 = __importDefault(require("../ledger/asset"));
12
12
  const auth_accounts_1 = __importDefault(require("../ledger/auth-accounts"));
13
13
  const client_1 = require("../../client");
14
+ const models_1 = require("../../models");
14
15
  function parseAmmStatus(node) {
15
16
  if (node.diffType === "CreatedNode") {
16
17
  return "created";
@@ -28,7 +29,7 @@ function parseAuctionSlot(auctionSlot) {
28
29
  account: auctionSlot.Account,
29
30
  authAccounts: (0, auth_accounts_1.default)(auctionSlot.AuthAccounts),
30
31
  discountedFee: auctionSlot.DiscountedFee,
31
- expiration: auctionSlot.Expiration,
32
+ expiration: auctionSlot.Expiration ? (0, models_1.ledgerTimeToUnixTime)(auctionSlot.Expiration) : undefined,
32
33
  price: auctionSlot.Price,
33
34
  timeInterval: auctionSlot.TimeInterval,
34
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bithomp/xrpl-api",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
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",
@@ -63,21 +63,21 @@
63
63
  "@types/lodash": "^4.17.0",
64
64
  "@types/mocha": "^10.0.6",
65
65
  "@types/nconf": "^0.10.6",
66
- "@types/node": "^20.11.30",
67
- "@typescript-eslint/eslint-plugin": "^7.3.1",
68
- "@typescript-eslint/parser": "^7.3.1",
66
+ "@types/node": "^20.12.7",
67
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
68
+ "@typescript-eslint/parser": "^7.7.0",
69
69
  "chai": "^4.4.1",
70
70
  "chai-as-promised": "^7.1.1",
71
71
  "eslint": "^8.57.0",
72
72
  "eslint-config-prettier": "^9.1.0",
73
73
  "eslint-plugin-chai-friendly": "^0.7.4",
74
74
  "eslint-plugin-import": "^2.29.1",
75
- "eslint-plugin-n": "^16.6.2",
75
+ "eslint-plugin-n": "^17.2.1",
76
76
  "eslint-plugin-promise": "^6.1.1",
77
- "mocha": "^10.3.0",
77
+ "mocha": "^10.4.0",
78
78
  "nconf": "^0.12.1",
79
79
  "ts-jest": "^29.1.2",
80
80
  "ts-node": "^10.9.2",
81
- "typescript": "^5.4.3"
81
+ "typescript": "^5.4.5"
82
82
  }
83
83
  }