nitropack-nightly 2.11.4-20250306-223021.f52d522e → 2.11.4-20250307-005815.a4569493
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/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -9,6 +9,7 @@ import { join } from "node:path";
|
|
|
9
9
|
import nodeCrypto from "node:crypto";
|
|
10
10
|
import { parentPort, threadId } from "node:worker_threads";
|
|
11
11
|
import wsAdapter from "crossws/adapters/node";
|
|
12
|
+
import { isCI } from "std-env";
|
|
12
13
|
import {
|
|
13
14
|
defineEventHandler,
|
|
14
15
|
getQuery,
|
|
@@ -94,17 +95,13 @@ function listen(useRandomPort = Boolean(
|
|
|
94
95
|
function getSocketAddress() {
|
|
95
96
|
const socketName = `worker-${process.pid}-${threadId}-${Math.round(Math.random() * 1e4)}-${NITRO_DEV_WORKER_ID}.sock`;
|
|
96
97
|
const socketPath = join(NITRO_DEV_WORKER_DIR, socketName);
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return `\0${socketPath}`;
|
|
103
|
-
}
|
|
104
|
-
default: {
|
|
105
|
-
return socketPath;
|
|
106
|
-
}
|
|
98
|
+
if (process.platform === "win32") {
|
|
99
|
+
return join(String.raw`\\.\pipe\nitro`, socketPath);
|
|
100
|
+
}
|
|
101
|
+
if (process.platform === "linux" && !isCI) {
|
|
102
|
+
return `\0${socketPath}`;
|
|
107
103
|
}
|
|
104
|
+
return socketPath;
|
|
108
105
|
}
|
|
109
106
|
async function shutdown() {
|
|
110
107
|
server.closeAllConnections?.();
|
package/package.json
CHANGED