@tokenoftrust/storefront-runner 2.4.57 → 2.4.58
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.
|
@@ -399,7 +399,6 @@ export function decideFulfillmentAccess(input: {
|
|
|
399
399
|
const stage = commerceStageForEnv(input.customizationEnv);
|
|
400
400
|
if (!stage) return { ok: false, status: 409, code: "stage-unknown" };
|
|
401
401
|
const host = input.hostResource.trim();
|
|
402
|
-
if (!isOpaqueId(host) && host.length === 0) return { ok: false, status: 403, code: "denied" };
|
|
403
402
|
if (!host) return { ok: false, status: 403, code: "denied" };
|
|
404
403
|
if (input.bodyTenantId && input.bodyTenantId !== host) return { ok: false, status: 403, code: "denied" };
|
|
405
404
|
if (!input.subject || !isOpaqueId(input.subject)) return { ok: false, status: 403, code: "denied" };
|
|
@@ -1094,8 +1093,7 @@ export class FulfillmentService {
|
|
|
1094
1093
|
private async write(statements: readonly SqlStatement[]): Promise<number[] | null> {
|
|
1095
1094
|
try {
|
|
1096
1095
|
return await this.db.batch(statements);
|
|
1097
|
-
} catch
|
|
1098
|
-
if (error instanceof Error && error.message === "storage") return null;
|
|
1096
|
+
} catch {
|
|
1099
1097
|
return null;
|
|
1100
1098
|
}
|
|
1101
1099
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/storefront-runner",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.58",
|
|
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",
|