@tokenoftrust/storefront-runner 7.9.0 → 7.9.1

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.
@@ -333,7 +333,7 @@ export async function evaluateFinalCart(input: FinalCartRequest): Promise<FinalC
333
333
  /** The allocation quantities and balance checks shared by both final-cart entry points. */
334
334
  export function finalCartStockHolds(
335
335
  lines: readonly { sku: string; quantity: number }[],
336
- stockTracked: boolean,
336
+ stockTracked: boolean | undefined = true,
337
337
  authorities: readonly unknown[],
338
338
  catalogAvailable: boolean,
339
339
  ): { ok: true; holds: ReserveHold[] } | { ok: false; finding: string } {
@@ -344,7 +344,7 @@ export function finalCartStockHolds(
344
344
  const holds: ReserveHold[] = [];
345
345
  for (const sku of [...quantities.keys()].sort()) {
346
346
  const quantity = quantities.get(sku)!;
347
- if (!stockTracked) {
347
+ if (stockTracked === false) {
348
348
  holds.push({ sku, locationId: "unspecified", quantity, onHand: 0 });
349
349
  continue;
350
350
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "7.9.0",
3
+ "version": "7.9.1",
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",