@revojs/vue 0.2.10 → 0.2.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.
@@ -15,6 +15,8 @@ var get_default = defineRoute({ async fetch(scope) {
15
15
  } catch (error) {
16
16
  throw useError(scope).value ?? error;
17
17
  }
18
+ const captured = useError(scope);
19
+ if (captured.value instanceof Response) throw captured.value;
18
20
  let body = "";
19
21
  let container = "";
20
22
  for (const [target, teleport] of Object.entries(context.teleports ?? {})) if (target.toLowerCase() === "body") body += teleport;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revojs/vue",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",