@nuxt/nitro-server-nightly 5.0.0-2610121449-e69fd4e → 5.0.0-2610132100-9ea13b3
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/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ import { createConsoleReporter, defineDiagnostics } from "nostics";
|
|
|
34
34
|
import { ansiFormatter } from "nostics/formatters/ansi";
|
|
35
35
|
import { colors } from "consola/utils";
|
|
36
36
|
//#region package.json
|
|
37
|
-
var version = "5.0.0-
|
|
37
|
+
var version = "5.0.0-2610132100-9ea13b3";
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/utils.ts
|
|
40
40
|
/**
|
|
@@ -33,6 +33,8 @@ var error_default = async function errorhandler(_error, event, { defaultHandler
|
|
|
33
33
|
const status = error.status || 500;
|
|
34
34
|
const headers = new Headers(error.headers);
|
|
35
35
|
const setCookies = new Set(headers.getSetCookie());
|
|
36
|
+
const responseHeaders = event.context.nuxt?.["~response-headers"];
|
|
37
|
+
if (responseHeaders) mergeHeaders(headers, responseHeaders, setCookies);
|
|
36
38
|
if (!NUXT_INLINE_ERROR_RENDERING) appendVary(headers, "accept, sec-fetch-mode");
|
|
37
39
|
if (import.meta.prerender && "context" in event) applyPrerenderHints(event, headers);
|
|
38
40
|
if (NUXT_INLINE_ERROR_RENDERING || isJsonRequest(event.req, new FastURL(event.req.url).pathname) || status === 404 && defaultRes.status === 302) {
|
|
@@ -49,14 +49,7 @@ var island_default = { async fetch(request) {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
if (!stack?.some((url) => url.startsWith(ISLAND_PATH_PREFIX))) {
|
|
52
|
-
const shared = await inFlightIslands.get(islandPath)
|
|
53
|
-
throw new HTTPError({
|
|
54
|
-
status: error?.status,
|
|
55
|
-
statusText: error?.statusText,
|
|
56
|
-
message: error?.message,
|
|
57
|
-
cause: error
|
|
58
|
-
});
|
|
59
|
-
});
|
|
52
|
+
const shared = await inFlightIslands.get(islandPath);
|
|
60
53
|
if (shared && !("raw" in shared)) return toResponse(event, shared);
|
|
61
54
|
}
|
|
62
55
|
return toResponse(event, await prerenderIsland(event, islandPath));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/nitro-server-nightly",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-2610132100-9ea13b3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ampproject/remapping": "^2.3.0",
|
|
39
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-
|
|
39
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-2610132100-9ea13b3",
|
|
40
40
|
"@unhead/vue": "^3.4.2",
|
|
41
41
|
"consola": "^3.4.2",
|
|
42
42
|
"defu": "^6.1.7",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.25.0 || ^8.0.0",
|
|
75
75
|
"@babel/plugin-syntax-typescript": "^7.25.0 || ^8.0.0",
|
|
76
76
|
"@rollup/plugin-babel": "^6.0.0 || ^7.0.0",
|
|
77
|
-
"nuxt": "npm:nuxt-nightly@5.0.0-
|
|
77
|
+
"nuxt": "npm:nuxt-nightly@5.0.0-2610132100-9ea13b3"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": {
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@babel/plugin-proposal-decorators": "8.0.2",
|
|
92
92
|
"@babel/plugin-syntax-typescript": "8.0.3",
|
|
93
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-
|
|
93
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-2610132100-9ea13b3",
|
|
94
94
|
"@rollup/plugin-babel": "7.1.0",
|
|
95
95
|
"h3": "^2.0.1-rc.32",
|
|
96
96
|
"hookable": "^6.1.2",
|
|
97
|
-
"nuxt": "npm:nuxt-nightly@5.0.0-
|
|
97
|
+
"nuxt": "npm:nuxt-nightly@5.0.0-2610132100-9ea13b3",
|
|
98
98
|
"tsdown": "0.23.0",
|
|
99
99
|
"vitest": "5.0.3"
|
|
100
100
|
},
|