@tokenoftrust/storefront-runner 7.0.0 → 7.1.0
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.
|
@@ -365,7 +365,10 @@ export async function sampleCartGet(
|
|
|
365
365
|
if (!signing.enabled) return sampleResponse('{"error":"sample_unavailable"}', 503);
|
|
366
366
|
const payload = await buildVariantCartPayload(product, variant, {
|
|
367
367
|
mode: "signed", secret: signing.secret, tenantId: commerceTenantId(tenant), currency: tenant.currency,
|
|
368
|
-
publicOrigin: tenantPublicOrigin(tenant
|
|
368
|
+
publicOrigin: tenantPublicOrigin(tenant, {
|
|
369
|
+
requestOrigin: url.origin,
|
|
370
|
+
basePath: context.locals.basePath,
|
|
371
|
+
}),
|
|
369
372
|
});
|
|
370
373
|
const result = await enforceCartSubmission({
|
|
371
374
|
entries: [...payload.hidden.map((f): [string, string] => [f.name, f.value]), [payload.quantityName, quantity]],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/storefront-runner",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
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",
|