htmx-router 2.2.2 → 2.2.3

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.
Files changed (2) hide show
  1. package/dist/router.js +2 -0
  2. package/package.json +1 -1
package/dist/router.js CHANGED
@@ -106,6 +106,8 @@ export class RouteResolver {
106
106
  return null;
107
107
  }
108
108
  async unwind(e, offset) {
109
+ if (e instanceof Response && e.headers.get("X-Caught") === 'true')
110
+ return e;
109
111
  for (let i = this.stack.length - 1; i >= 0; i--) {
110
112
  const node = this.stack[i];
111
113
  if (!node.module.error)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htmx-router",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "A lightweight SSR framework with server+client islands",
5
5
  "keywords": [ "htmx", "router", "client islands", "ssr", "vite" ],
6
6
  "type": "module",