@nuxt/bridge-edge 3.0.1-28484957.e38efda → 3.0.1-28489944.83ccddb
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 { genImport, genObjectFromRawEntries } from 'knitwork';
|
|
5
5
|
|
|
6
|
-
const version = "3.0.1-
|
|
6
|
+
const version = "3.0.1-28489944.83ccddb";
|
|
7
7
|
|
|
8
8
|
const middlewareTemplate = {
|
|
9
9
|
filename: "middleware.js",
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { H3Error } from 'h3';
|
|
2
2
|
export declare const useError: () => import("vue").Ref<any>;
|
|
3
|
-
export interface NuxtError extends H3Error {
|
|
3
|
+
export interface NuxtError<DataT = unknown> extends H3Error<DataT> {
|
|
4
4
|
}
|
|
5
|
-
export declare const showError: (_err: string | Error | Partial<NuxtError
|
|
5
|
+
export declare const showError: <DataT = unknown>(_err: string | Error | (Partial<NuxtError<DataT>> & {
|
|
6
|
+
status?: number | undefined;
|
|
7
|
+
statusText?: string | undefined;
|
|
8
|
+
})) => NuxtError<unknown>;
|
|
6
9
|
/** @deprecated Use `throw createError()` or `showError` */
|
|
7
|
-
export declare const throwError: (_err: string | Error | Partial<NuxtError
|
|
10
|
+
export declare const throwError: <DataT = unknown>(_err: string | Error | (Partial<NuxtError<DataT>> & {
|
|
11
|
+
status?: number | undefined;
|
|
12
|
+
statusText?: string | undefined;
|
|
13
|
+
})) => NuxtError<unknown>;
|
|
8
14
|
export declare const clearError: (options?: {
|
|
9
15
|
redirect?: string;
|
|
10
16
|
}) => Promise<void>;
|
|
11
|
-
export declare const isNuxtError: (err?: string | object) => err is NuxtError
|
|
12
|
-
export declare const createError: (err: string | Partial<NuxtError
|
|
17
|
+
export declare const isNuxtError: (err?: string | object) => err is NuxtError<unknown>;
|
|
18
|
+
export declare const createError: <DataT = unknown>(err: string | Error | (Partial<NuxtError<DataT>> & {
|
|
19
|
+
status?: number | undefined;
|
|
20
|
+
statusText?: string | undefined;
|
|
21
|
+
})) => NuxtError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/bridge-edge",
|
|
3
|
-
"version": "3.0.1-
|
|
3
|
+
"version": "3.0.1-28489944.83ccddb",
|
|
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.23.6",
|
|
25
|
-
"@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.0.1-
|
|
25
|
+
"@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.0.1-28489944.83ccddb",
|
|
26
26
|
"@nuxt/devalue": "^2.0.2",
|
|
27
27
|
"@nuxt/kit": "3.10.3",
|
|
28
28
|
"@nuxt/postcss8": "^1.1.3",
|