@bithomp/xrpl-api 2.7.6 → 2.7.7

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.
@@ -45,6 +45,7 @@ async function getAccountOffers(account, options = {}) {
45
45
  account,
46
46
  ledger_index: options.ledgerIndex || "validated",
47
47
  limit: options.limit,
48
+ marker: options.marker,
48
49
  });
49
50
  if (!response) {
50
51
  return {
@@ -99,6 +100,9 @@ async function getAccountAllOffers(account, options = {}) {
99
100
  response.limit = accountOffers.length;
100
101
  break;
101
102
  }
103
+ if (response.offers.length === 0) {
104
+ break;
105
+ }
102
106
  if (response.marker) {
103
107
  options.marker = response.marker;
104
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bithomp/xrpl-api",
3
- "version": "2.7.6",
3
+ "version": "2.7.7",
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",