@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.
- package/dist/bindings/zustand.js +10 -0
- package/dist/bindings/zustand.js.map +2 -2
- package/dist/client.d.ts +7 -0
- package/dist/index.js +11 -1
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/bindings/zustand.js
CHANGED
|
@@ -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
|
}
|