@ornncompute/cli 1.0.173 → 1.0.174

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.173",
3
+ "version": "1.0.174",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -575,8 +575,8 @@ function body(value, idempotencyKey) {
575
575
  function query(params) {
576
576
  const search = new URLSearchParams();
577
577
  for (const [key, value] of Object.entries(params))
578
- if (value)
579
- search.set(key, value);
578
+ if (value != null && value !== "")
579
+ search.set(key, String(value));
580
580
  const text = search.toString();
581
581
  return text ? `?${text}` : "";
582
582
  }
@@ -640,8 +640,11 @@ function acceptOffer(request, offerId) {
640
640
  function cancelOffer(request, offerId) {
641
641
  return request(`${BASE3}/offers/${encodeURIComponent(offerId)}`, { method: "DELETE" });
642
642
  }
643
- function listOffers(request, filter = {}) {
644
- return request(`${BASE3}/offers${query(filter)}`, { method: "GET" });
643
+ function listOffers(request, filter = {}, signal) {
644
+ return request(`${BASE3}/offers${query(filter)}`, {
645
+ method: "GET",
646
+ ...signal ? { signal } : {}
647
+ });
645
648
  }
646
649
 
647
650
  // ../../packages/capabilities/dist/capabilities/admin-capacity-reservations.js