@tokenoftrust/storefront-runner 2.4.12 → 2.4.13

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.
@@ -14,7 +14,7 @@ interface UpdatesResponse {
14
14
  ok: boolean;
15
15
  message?: string;
16
16
  updates: Array<{ title: string; acceptedRevisionId: string; latestRevisionId: string }>;
17
- unchecked?: string[];
17
+ unavailable?: Array<{ title: string; message: string }>;
18
18
  request?: Record<string, unknown>;
19
19
  plan: { products: UpdatePlanProduct[] } | null;
20
20
  planFailure?: { message?: string; pinFailures?: Array<{ message: string }> };
@@ -81,8 +81,8 @@ export function initProductsTab(root: HTMLElement): void {
81
81
  return;
82
82
  }
83
83
  const nodes: Node[] = [];
84
- if (body.unchecked?.length) {
85
- nodes.push(el("p", { class: "subtle" }, `${body.unchecked.length} listed package(s) could not be checked against the catalog's latest revision.`));
84
+ if (body.unavailable?.length) {
85
+ nodes.push(el("p", { class: "subtle" }, `Not checked: ${body.unavailable.map((u) => `${u.title} (${u.message})`).join("; ")}.`));
86
86
  }
87
87
  if (body.updates.length === 0) {
88
88
  nodes.push(el("p", {}, "Every listed package is at the catalog's latest revision."));
@@ -124,7 +124,9 @@ export class HttpFoxyOrderClient implements FoxyOrderClient {
124
124
  if (!config.apiKey) throw new FoxyOrderClientError("foxyOrderClient: FOXY_ORDER_API_KEY is not configured");
125
125
  this.baseUrl = config.baseUrl.replace(/\/+$/, "");
126
126
  this.apiKey = config.apiKey;
127
- this.fetchImpl = config.fetchImpl ?? fetch;
127
+ // Called unbound: the Workers runtime refuses fetch invoked with any `this` but the global.
128
+ const doFetch = config.fetchImpl ?? fetch;
129
+ this.fetchImpl = (input, init) => doFetch(input, init);
128
130
  this.timeoutMs = config.timeoutMs ?? DEFAULT_TIMEOUT_MS;
129
131
  }
130
132
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "2.4.12",
3
+ "version": "2.4.13",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",