@tokenoftrust/storefront-runner 7.11.5 → 7.11.6
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.
|
@@ -135,7 +135,7 @@ function readSnapshot(value: unknown): FinalCartWire | null {
|
|
|
135
135
|
typeof v.tenantId !== "string" || !["preview", "publication"].includes(String(v.stage)) || typeof v.currency !== "string" || !/^[A-Z]{3}$/.test(v.currency) ||
|
|
136
136
|
!Array.isArray(v.lines) || v.lines.length < 1 || v.lines.length > 50) return null;
|
|
137
137
|
if (v.lines.some(line => !line || typeof line !== "object" || skuFromToken(line.sku) === null ||
|
|
138
|
-
!Number.isSafeInteger(line.quantity) || line.quantity < 1 || line.quantity >
|
|
138
|
+
!Number.isSafeInteger(line.quantity) || line.quantity < 1 || line.quantity > 10_000 || !Number.isSafeInteger(line.unitMinor) || line.unitMinor < 0 ||
|
|
139
139
|
Object.keys(line).some(k => !["sku", "quantity", "unitMinor"].includes(k)))) return null;
|
|
140
140
|
const t = v.totals as Record<string, unknown> | undefined;
|
|
141
141
|
const totalKeys = ["subtotalMinor", "shippingMinor", "taxMinor", "totalMinor"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/storefront-runner",
|
|
3
|
-
"version": "7.11.
|
|
3
|
+
"version": "7.11.6",
|
|
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",
|