nitro-nightly 3.1.0-20251029-170606-41dbfa8a → 3.1.0-20251029-221723-5f6da290
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/_build/build2.mjs
CHANGED
|
@@ -304,7 +304,9 @@ const getRollupConfig = (nitro) => {
|
|
|
304
304
|
raw()
|
|
305
305
|
],
|
|
306
306
|
onwarn(warning, rollupWarn) {
|
|
307
|
-
if (!["
|
|
307
|
+
if (!["EVAL", "CIRCULAR_DEPENDENCY", "THIS_IS_UNDEFINED"].includes(
|
|
308
|
+
warning.code || ""
|
|
309
|
+
) && !warning.message.includes("Unsupported source map comment")) {
|
|
308
310
|
rollupWarn(warning);
|
|
309
311
|
}
|
|
310
312
|
},
|
package/dist/_build/prepare.mjs
CHANGED
|
@@ -1284,7 +1284,7 @@ async function createNitro(config = {}, opts = {}) {
|
|
|
1284
1284
|
routing: {},
|
|
1285
1285
|
logger: consola$1.withTag("nitro"),
|
|
1286
1286
|
scannedHandlers: [],
|
|
1287
|
-
close: () => nitro.hooks.callHook("close"),
|
|
1287
|
+
close: () => Promise.resolve(nitro.hooks.callHook("close")),
|
|
1288
1288
|
storage: void 0,
|
|
1289
1289
|
async updateConfig(config2) {
|
|
1290
1290
|
updateNitroConfig(nitro, config2);
|
|
@@ -57,7 +57,7 @@ async function shutdown() {
|
|
|
57
57
|
server.closeAllConnections?.();
|
|
58
58
|
await Promise.all([
|
|
59
59
|
new Promise((resolve) => listener?.close(resolve)),
|
|
60
|
-
nitroHooks.callHook("close")
|
|
61
|
-
]);
|
|
60
|
+
nitroHooks.callHook("close")
|
|
61
|
+
]).catch(console.error);
|
|
62
62
|
parentPort?.postMessage({ event: "exit" });
|
|
63
63
|
}
|
|
@@ -98,9 +98,7 @@ function createNitroApp() {
|
|
|
98
98
|
if (typeof input === "string" && input.charCodeAt(0) === 47) {
|
|
99
99
|
return request(input, init);
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
input = input._request;
|
|
103
|
-
}
|
|
101
|
+
input = input._request || input;
|
|
104
102
|
return nativeFetch(input, init);
|
|
105
103
|
};
|
|
106
104
|
const app = {
|
package/package.json
CHANGED