htmx-router 1.0.10 → 1.0.12
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 +2 -2
- package/router.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "htmx-router",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "A lightweight SSR framework with server+client islands",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"htmx",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"homepage": "https://htmx-router.ajanibilby.com/",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"es-module-lexer": "^1.5.4",
|
|
32
|
-
"vite": "^6.
|
|
32
|
+
"vite": "^6.2.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^20.4.5",
|
package/router.js
CHANGED
|
@@ -221,6 +221,8 @@ class RouteLeaf {
|
|
|
221
221
|
throw new Response("Method not Allowed", MakeStatus("Method Not Allowed", ctx.headers));
|
|
222
222
|
}
|
|
223
223
|
catch (e) {
|
|
224
|
+
if (e instanceof Response && e.headers.has("X-Caught"))
|
|
225
|
+
return e;
|
|
224
226
|
return await this.error(ctx, e);
|
|
225
227
|
}
|
|
226
228
|
return null;
|