nitropack-nightly 2.11.2-20250305-141434.67c396ba → 2.11.2-20250305-192721.72225800
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/core/index.mjs
CHANGED
|
@@ -798,7 +798,7 @@ async function _loadUserConfig(configOverrides = {}, opts = {}) {
|
|
|
798
798
|
preset: presetOverride
|
|
799
799
|
},
|
|
800
800
|
async defaultConfig({ configs }) {
|
|
801
|
-
const getConf = (key) => configs.main?.[key] ?? configs.rc?.[key] ?? configs.packageJson?.[key];
|
|
801
|
+
const getConf = (key) => configOverrides[key] ?? configs.main?.[key] ?? configs.rc?.[key] ?? configs.packageJson?.[key];
|
|
802
802
|
if (!compatibilityDate) {
|
|
803
803
|
compatibilityDate = getConf("compatibilityDate");
|
|
804
804
|
}
|
|
@@ -2360,7 +2360,7 @@ class NodeDevWorker {
|
|
|
2360
2360
|
return;
|
|
2361
2361
|
}
|
|
2362
2362
|
this.#worker.postMessage({ event: "shutdown" });
|
|
2363
|
-
if (!this.#worker._exitCode) {
|
|
2363
|
+
if (!this.#worker._exitCode && !isTest && !isCI) {
|
|
2364
2364
|
await new Promise((resolve) => {
|
|
2365
2365
|
const gracefulShutdownTimeoutSec = Number.parseInt(process.env.NITRO_SHUTDOWN_TIMEOUT || "", 10) || 5;
|
|
2366
2366
|
const timeout = setTimeout(() => {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -79,8 +79,12 @@ nitroApp.router.use(
|
|
|
79
79
|
})
|
|
80
80
|
);
|
|
81
81
|
trapUnhandledNodeErrors();
|
|
82
|
-
async function onShutdown(
|
|
83
|
-
|
|
82
|
+
async function onShutdown() {
|
|
83
|
+
server.closeAllConnections?.();
|
|
84
|
+
await Promise.all([
|
|
85
|
+
new Promise((resolve) => listener.close(resolve)),
|
|
86
|
+
nitroApp.hooks.callHook("close").catch(console.error)
|
|
87
|
+
]);
|
|
84
88
|
}
|
|
85
89
|
parentPort?.on("message", async (msg) => {
|
|
86
90
|
if (msg && msg.event === "shutdown") {
|
package/package.json
CHANGED