@tokenoftrust/storefront-runner 3.7.0 → 3.7.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/storefront-runner",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.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",
|
|
@@ -61,11 +61,14 @@ function parseConfig(tenantDir) {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
/** The checkout's `.tot/config.json`, or null when absent or
|
|
64
|
+
/** The checkout's `.tot/config.json`, or null when it is absent or malformed. Unreadable throws. */
|
|
65
65
|
function readTotConfig(tenantDir) {
|
|
66
66
|
try {
|
|
67
67
|
return JSON.parse(readFileSync(join(tenantDir, ".tot", "config.json"), "utf8"));
|
|
68
|
-
} catch {
|
|
68
|
+
} catch (error) {
|
|
69
|
+
if (error?.code === "ENOENT" || error instanceof SyntaxError) return null;
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
function allowedNavigation(value, allowlist) {
|