nitropack-nightly 2.11.5-20250307-122458.036f3415 → 2.11.5-20250307-123238.231c516e
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
|
@@ -2310,8 +2310,7 @@ class NodeDevWorker {
|
|
|
2310
2310
|
const worker = new Worker(workerEntryPath, {
|
|
2311
2311
|
env: {
|
|
2312
2312
|
...process.env,
|
|
2313
|
-
NITRO_DEV_WORKER_ID: String(this.#id)
|
|
2314
|
-
NITRO_DEV_WORKER_DIR: this.#workerDir
|
|
2313
|
+
NITRO_DEV_WORKER_ID: String(this.#id)
|
|
2315
2314
|
}
|
|
2316
2315
|
});
|
|
2317
2316
|
worker.once("exit", (code) => {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "#nitro-internal-pollyfills";
|
|
2
|
+
import { tmpdir } from "node:os";
|
|
2
3
|
import { useNitroApp } from "nitropack/runtime";
|
|
3
4
|
import { runTask } from "nitropack/runtime";
|
|
4
5
|
import { trapUnhandledNodeErrors } from "nitropack/runtime/internal";
|
|
@@ -19,11 +20,7 @@ import {
|
|
|
19
20
|
if (!globalThis.crypto) {
|
|
20
21
|
globalThis.crypto = nodeCrypto;
|
|
21
22
|
}
|
|
22
|
-
const {
|
|
23
|
-
NITRO_NO_UNIX_SOCKET,
|
|
24
|
-
NITRO_DEV_WORKER_DIR = ".",
|
|
25
|
-
NITRO_DEV_WORKER_ID
|
|
26
|
-
} = process.env;
|
|
23
|
+
const { NITRO_NO_UNIX_SOCKET, NITRO_DEV_WORKER_ID } = process.env;
|
|
27
24
|
trapUnhandledNodeErrors();
|
|
28
25
|
parentPort?.on("message", (msg) => {
|
|
29
26
|
if (msg && msg.event === "shutdown") {
|
|
@@ -102,7 +99,7 @@ function getSocketAddress() {
|
|
|
102
99
|
return `\0${socketName}`;
|
|
103
100
|
}
|
|
104
101
|
}
|
|
105
|
-
return join(
|
|
102
|
+
return join(tmpdir(), socketName);
|
|
106
103
|
}
|
|
107
104
|
async function shutdown() {
|
|
108
105
|
server.closeAllConnections?.();
|
package/package.json
CHANGED