nitropack-nightly 2.11.0-20250304-185512.71e338fc → 2.11.1-20250304-210714.6a6ed561

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.
@@ -1,3 +1,3 @@
1
- const version = "2.11.0-20250304-185512.71e338fc";
1
+ const version = "2.11.1-20250304-210714.6a6ed561";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.0-20250304-185512.71e338fc";
1
+ const version = "2.11.1-20250304-210714.6a6ed561";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.0-20250304-185512.71e338fc";
1
+ const version = "2.11.1-20250304-210714.6a6ed561";
2
2
 
3
3
  export { version };
@@ -15,7 +15,11 @@ import {
15
15
  readBody,
16
16
  toNodeListener
17
17
  } from "h3";
18
- const { NITRO_NO_UNIX_SOCKET, NITRO_DEV_WORKER_DIR, NITRO_DEV_WORKER_ID } = process.env;
18
+ const {
19
+ NITRO_NO_UNIX_SOCKET,
20
+ NITRO_DEV_WORKER_DIR = ".",
21
+ NITRO_DEV_WORKER_ID
22
+ } = process.env;
19
23
  const nitroApp = useNitroApp();
20
24
  const server = new Server(toNodeListener(nitroApp.h3App));
21
25
  if (import.meta._websocket) {
@@ -27,15 +31,16 @@ function getAddress() {
27
31
  return 0;
28
32
  }
29
33
  const socketName = `worker-${process.pid}-${threadId}-${NITRO_DEV_WORKER_ID}.sock`;
34
+ const socketPath = join(NITRO_DEV_WORKER_DIR, socketName);
30
35
  switch (process.platform) {
31
36
  case "win32": {
32
- return join(String.raw`\\.\pipe\nitro`, socketName);
37
+ return join(String.raw`\\.\pipe\nitro`, socketPath);
33
38
  }
34
39
  case "linux": {
35
- return `\0${socketName}`;
40
+ return `\0${socketPath}`;
36
41
  }
37
42
  default: {
38
- return join(NITRO_DEV_WORKER_DIR || ".", socketName);
43
+ return socketPath;
39
44
  }
40
45
  }
41
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.11.0-20250304-185512.71e338fc",
3
+ "version": "2.11.1-20250304-210714.6a6ed561",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",