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.
@@ -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) => {
@@ -1,3 +1,3 @@
1
- const version = "2.11.5-20250307-122458.036f3415";
1
+ const version = "2.11.5-20250307-123238.231c516e";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.5-20250307-122458.036f3415";
1
+ const version = "2.11.5-20250307-123238.231c516e";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.5-20250307-122458.036f3415";
1
+ const version = "2.11.5-20250307-123238.231c516e";
2
2
 
3
3
  export { version };
@@ -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(NITRO_DEV_WORKER_DIR, socketName);
102
+ return join(tmpdir(), socketName);
106
103
  }
107
104
  async function shutdown() {
108
105
  server.closeAllConnections?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.11.5-20250307-122458.036f3415",
3
+ "version": "2.11.5-20250307-123238.231c516e",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",