@drakkar.software/starfish-client 3.0.0-alpha.18 → 3.0.0-alpha.19

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.
@@ -421,14 +421,24 @@ var StarfishClient = class {
421
421
  }
422
422
  } else {
423
423
  appendField = opts.appendField ?? APPEND_DEFAULT_FIELD;
424
+ if (opts.full && (opts.since != null || opts.limit != null || opts.last != null)) {
425
+ throw new Error("full cannot be combined with since, limit, or last");
426
+ }
424
427
  if (opts.since != null) {
425
428
  if (opts.since < 0) throw new Error("since must be non-negative");
426
429
  params.set("checkpoint", String(opts.since));
427
430
  }
431
+ if (opts.limit != null) {
432
+ if (opts.limit < 0) throw new Error("limit must be non-negative");
433
+ params.set("limit", String(opts.limit));
434
+ }
428
435
  if (opts.last != null) {
429
436
  if (opts.last < 0) throw new Error("last must be non-negative");
430
437
  params.set("last", String(opts.last));
431
438
  }
439
+ if (opts.full) {
440
+ params.set("full", "true");
441
+ }
432
442
  }
433
443
  if (params.size > 0) pathAndQuery += `?${params.toString()}`;
434
444
  }