@tokenoftrust/storefront-runner 6.12.7 → 6.12.8
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.
|
@@ -213,11 +213,13 @@ function commandOf(value: Record<string, unknown>): CommerceCommandName | null {
|
|
|
213
213
|
|
|
214
214
|
function readTotals(value: unknown): MinorTotals | null {
|
|
215
215
|
if (!isRecord(value)) return null;
|
|
216
|
+
if (value.exciseMinor !== undefined && typeof value.exciseMinor !== "number") return null;
|
|
216
217
|
const totals = {
|
|
217
218
|
subtotalMinor: value.subtotalMinor,
|
|
218
219
|
shippingMinor: value.shippingMinor,
|
|
219
220
|
taxMinor: value.taxMinor,
|
|
220
221
|
totalMinor: value.totalMinor,
|
|
222
|
+
...(typeof value.exciseMinor === "number" ? { exciseMinor: value.exciseMinor } : {}),
|
|
221
223
|
};
|
|
222
224
|
if (
|
|
223
225
|
typeof totals.subtotalMinor !== "number" ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/storefront-runner",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.8",
|
|
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",
|
|
@@ -798,6 +798,7 @@ export function publicCommerceEvent(
|
|
|
798
798
|
shippingMinor: input.totals.shippingMinor,
|
|
799
799
|
taxMinor: input.totals.taxMinor,
|
|
800
800
|
totalMinor: input.totals.totalMinor,
|
|
801
|
+
...(input.totals.exciseMinor === undefined ? {} : { exciseMinor: input.totals.exciseMinor }),
|
|
801
802
|
},
|
|
802
803
|
verificationDetail: {
|
|
803
804
|
verification: input.verificationDetail.verification,
|