@nuxt/bridge-edge 3.6.1-29300987.cf4f158 → 3.6.1-29314769.d06c200
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/chunks/module.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import hash from 'hash-sum';
|
|
|
3
3
|
import { resolve } from 'pathe';
|
|
4
4
|
import { genObjectFromRawEntries, genImport } from 'knitwork';
|
|
5
5
|
|
|
6
|
-
const version = "3.6.1-
|
|
6
|
+
const version = "3.6.1-29314769.d06c200";
|
|
7
7
|
|
|
8
8
|
const middlewareTemplate = {
|
|
9
9
|
filename: "middleware.js",
|
|
@@ -2,13 +2,15 @@ import { createError as createH3Error } from "h3";
|
|
|
2
2
|
import { toRef } from "vue";
|
|
3
3
|
import { useNuxtApp } from "../nuxt.mjs";
|
|
4
4
|
export const NUXT_ERROR_SIGNATURE = "__nuxt_error";
|
|
5
|
-
export const useError = () => toRef(useNuxtApp().payload, "error");
|
|
5
|
+
export const useError = /* @__NO_SIDE_EFFECTS__ */ () => toRef(useNuxtApp().payload, "error");
|
|
6
6
|
export const showError = (error) => {
|
|
7
7
|
const nuxtError = createError(error);
|
|
8
8
|
try {
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const error2 = /* @__PURE__ */ useError();
|
|
10
|
+
if (process.client) {
|
|
11
|
+
const nuxtApp = useNuxtApp();
|
|
12
|
+
nuxtApp.callHook("app:error", nuxtError);
|
|
13
|
+
}
|
|
12
14
|
error2.value = error2.value || nuxtError;
|
|
13
15
|
} catch {
|
|
14
16
|
throw nuxtError;
|
|
@@ -18,7 +20,7 @@ export const showError = (error) => {
|
|
|
18
20
|
export const throwError = showError;
|
|
19
21
|
export const clearError = async (options = {}) => {
|
|
20
22
|
const nuxtApp = useNuxtApp();
|
|
21
|
-
const error = useError();
|
|
23
|
+
const error = /* @__PURE__ */ useError();
|
|
22
24
|
nuxtApp.callHook("app:error:cleared", options);
|
|
23
25
|
if (options.redirect) {
|
|
24
26
|
await nuxtApp.$router.replace(options.redirect);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/bridge-edge",
|
|
3
|
-
"version": "3.6.1-
|
|
3
|
+
"version": "3.6.1-29314769.d06c200",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/bridge.git"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
23
23
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
24
24
|
"@babel/plugin-transform-typescript": "^7.28.0",
|
|
25
|
-
"@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.6.1-
|
|
25
|
+
"@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.6.1-29314769.d06c200",
|
|
26
26
|
"@nuxt/devalue": "^2.0.2",
|
|
27
27
|
"@nuxt/kit": "3.19.2",
|
|
28
28
|
"@nuxt/schema": "3.19.2",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"hookable": "5.5.3",
|
|
50
50
|
"klona": "^2.0.6",
|
|
51
51
|
"knitwork": "^1.2.0",
|
|
52
|
-
"magic-string": "^0.30.
|
|
52
|
+
"magic-string": "^0.30.19",
|
|
53
53
|
"mlly": "^1.8.0",
|
|
54
54
|
"mocked-exports": "^0.1.1",
|
|
55
|
-
"nitropack": "^2.12.
|
|
55
|
+
"nitropack": "^2.12.6",
|
|
56
56
|
"node-fetch": "^3.3.2",
|
|
57
|
-
"nypm": "^0.6.
|
|
57
|
+
"nypm": "^0.6.2",
|
|
58
58
|
"ofetch": "^1.4.1",
|
|
59
59
|
"ohash": "^2.0.11",
|
|
60
60
|
"pathe": "^2.0.3",
|
|
@@ -63,24 +63,24 @@
|
|
|
63
63
|
"postcss-import-resolver": "^2.0.0",
|
|
64
64
|
"scule": "^1.3.0",
|
|
65
65
|
"std-env": "^3.9.0",
|
|
66
|
-
"terser": "^5.
|
|
66
|
+
"terser": "^5.44.0",
|
|
67
67
|
"ufo": "^1.6.1",
|
|
68
|
-
"unimport": "^5.
|
|
68
|
+
"unimport": "^5.3.0",
|
|
69
69
|
"unplugin": "^1.16.1",
|
|
70
70
|
"untyped": "^2.0.0",
|
|
71
|
-
"vite": "~7.1.
|
|
71
|
+
"vite": "~7.1.7",
|
|
72
72
|
"vite-node": "^3.2.4",
|
|
73
73
|
"vue-bundle-renderer": "^2.1.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@babel/core": "^7.28.
|
|
76
|
+
"@babel/core": "^7.28.4",
|
|
77
77
|
"@types/estree": "^1.0.8",
|
|
78
78
|
"@types/fs-extra": "^9.0.13",
|
|
79
79
|
"@types/hash-sum": "^1.0.2",
|
|
80
80
|
"@types/webpack": "^4.41.40",
|
|
81
81
|
"@vue/compiler-sfc": "^2.7.16",
|
|
82
|
-
"@vue/reactivity": "^3.5.
|
|
83
|
-
"rollup": "^4.
|
|
82
|
+
"@vue/reactivity": "^3.5.21",
|
|
83
|
+
"rollup": "^4.52.0",
|
|
84
84
|
"unbuild": "3.6.1",
|
|
85
85
|
"vue": "^2.7.16",
|
|
86
86
|
"vue-meta": "^2.4.0",
|