bun-plugin-stx 0.2.899 → 0.2.900
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/dist/serve.js +5 -3
- package/package.json +3 -3
package/dist/serve.js
CHANGED
|
@@ -11724,9 +11724,10 @@ ${output}`;
|
|
|
11724
11724
|
}
|
|
11725
11725
|
if (path === "/index")
|
|
11726
11726
|
path = "/";
|
|
11727
|
+
let content;
|
|
11727
11728
|
if (path === "/") {
|
|
11728
|
-
|
|
11729
|
-
if (!
|
|
11729
|
+
content = await getRoute("/", reqCtx);
|
|
11730
|
+
if (!content) {
|
|
11730
11731
|
const homeContent = await getRoute("/home", reqCtx);
|
|
11731
11732
|
if (homeContent) {
|
|
11732
11733
|
return new Response(null, {
|
|
@@ -11739,7 +11740,8 @@ ${output}`;
|
|
|
11739
11740
|
}
|
|
11740
11741
|
}
|
|
11741
11742
|
}
|
|
11742
|
-
|
|
11743
|
+
if (content === undefined)
|
|
11744
|
+
content = await getRoute(path, reqCtx);
|
|
11743
11745
|
if (reqCtx.actionRedirect) {
|
|
11744
11746
|
const redirectResponse = actionRedirectResponse(reqCtx.actionRedirect, reqCtx.actionCookies, reqCtx.responseHeaders);
|
|
11745
11747
|
for (const [key, value] of Object.entries(corsHeaders))
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bun-plugin-stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.900",
|
|
5
5
|
"description": "A Bun plugin that allows for using Laravel Blade-like syntax.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typecheck": "bun tsc --noEmit"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@stacksjs/stx": "0.2.
|
|
78
|
-
"stx-router": "0.2.
|
|
77
|
+
"@stacksjs/stx": "0.2.900",
|
|
78
|
+
"stx-router": "0.2.900"
|
|
79
79
|
}
|
|
80
80
|
}
|