@bithomp/xrpl-api 3.0.4 → 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.
@@ -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.4",
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",