Skip to content

Commit 49fe7a7

Browse files
authored
Don't break until all pages are paginated, update lock file (#177)
1 parent 278f1b6 commit 49fe7a7

2 files changed

Lines changed: 20 additions & 27 deletions

File tree

packages/stellar_client/lib/src/client.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,13 @@ class Client {
480480
}
481481
}
482482

483-
if (tempList.isEmpty) break;
483+
if (tempList.isEmpty) {
484+
// No matches in this page, continue to next page
485+
final lastPayment = page.records.last;
486+
if (lastPayment is! PaymentOperationResponse) break;
487+
currentCursor = lastPayment.pagingToken;
488+
continue;
489+
}
484490

485491
currentCursor = tempList.last.response.pagingToken;
486492

packages/stellar_client/pubspec.lock

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,18 @@ packages:
55
dependency: transitive
66
description:
77
name: _fe_analyzer_shared
8-
sha256: "03f6da266a27a4538a69295ec142cb5717d7d4e5727b84658b63e1e1509bac9c"
8+
sha256: da0d9209ca76bde579f2da330aeb9df62b6319c834fa7baae052021b0462401f
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "79.0.0"
12-
_macros:
13-
dependency: transitive
14-
description: dart
15-
source: sdk
16-
version: "0.3.3"
11+
version: "85.0.0"
1712
analyzer:
1813
dependency: transitive
1914
description:
2015
name: analyzer
21-
sha256: c9040fc56483c22a5e04a9f6a251313118b1a3c42423770623128fa484115643
16+
sha256: "974859dc0ff5f37bc4313244b3218c791810d03ab3470a579580279ba971a48d"
2217
url: "https://pub.dev"
2318
source: hosted
24-
version: "7.2.0"
19+
version: "7.7.1"
2520
args:
2621
dependency: transitive
2722
description:
@@ -50,10 +45,10 @@ packages:
5045
dependency: transitive
5146
description:
5247
name: characters
53-
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
48+
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
5449
url: "https://pub.dev"
5550
source: hosted
56-
version: "1.3.0"
51+
version: "1.4.0"
5752
clock:
5853
dependency: transitive
5954
description:
@@ -66,10 +61,10 @@ packages:
6661
dependency: transitive
6762
description:
6863
name: collection
69-
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
64+
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
7065
url: "https://pub.dev"
7166
source: hosted
72-
version: "1.19.0"
67+
version: "1.19.1"
7368
convert:
7469
dependency: transitive
7570
description:
@@ -227,14 +222,6 @@ packages:
227222
url: "https://pub.dev"
228223
source: hosted
229224
version: "1.3.0"
230-
macros:
231-
dependency: transitive
232-
description:
233-
name: macros
234-
sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"
235-
url: "https://pub.dev"
236-
source: hosted
237-
version: "0.1.3-main.0"
238225
matcher:
239226
dependency: transitive
240227
description:
@@ -255,10 +242,10 @@ packages:
255242
dependency: transitive
256243
description:
257244
name: meta
258-
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
245+
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
259246
url: "https://pub.dev"
260247
source: hosted
261-
version: "1.15.0"
248+
version: "1.16.0"
262249
mime:
263250
dependency: transitive
264251
description:
@@ -492,10 +479,10 @@ packages:
492479
dependency: transitive
493480
description:
494481
name: vector_math
495-
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
482+
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
496483
url: "https://pub.dev"
497484
source: hosted
498-
version: "2.1.4"
485+
version: "2.2.0"
499486
vm_service:
500487
dependency: transitive
501488
description:
@@ -553,4 +540,4 @@ packages:
553540
source: hosted
554541
version: "3.1.3"
555542
sdks:
556-
dart: ">=3.6.0 <4.0.0"
543+
dart: ">=3.8.0-0 <4.0.0"

0 commit comments

Comments
 (0)