nitropack-nightly 2.11.0-20250304-184554.fd96966f → 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.
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.mjs +1 -1
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +9 -4
- package/dist/presets/cloudflare/wrangler/_utils.d.ts +0 -3
- package/dist/presets/cloudflare/wrangler/environment.d.ts +1 -2
- package/package.json +1 -1
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -15,7 +15,11 @@ import {
|
|
|
15
15
|
readBody,
|
|
16
16
|
toNodeListener
|
|
17
17
|
} from "h3";
|
|
18
|
-
const {
|
|
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`,
|
|
37
|
+
return join(String.raw`\\.\pipe\nitro`, socketPath);
|
|
33
38
|
}
|
|
34
39
|
case "linux": {
|
|
35
|
-
return `\0${
|
|
40
|
+
return `\0${socketPath}`;
|
|
36
41
|
}
|
|
37
42
|
default: {
|
|
38
|
-
return
|
|
43
|
+
return socketPath;
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export type Json = string | number | boolean | {
|
|
2
|
-
[key: string]: Json;
|
|
3
|
-
} | Json[];
|
|
4
1
|
type PascalCase<S extends string> = string extends S ? string : S extends `${infer T}-${infer U}` ? `${Capitalize<T>}${PascalCase<U>}` : Capitalize<S>;
|
|
5
2
|
type CamelCase<S extends string> = string extends S ? string : S extends `${infer T}-${infer U}` ? `${T}${PascalCase<U>}` : S;
|
|
6
3
|
export type CamelCaseKey<K extends PropertyKey> = K extends string ? Exclude<CamelCase<K>, ""> : K;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source: https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/config/environment.ts
|
|
7
7
|
*/
|
|
8
|
-
import type { Json } from "./_utils";
|
|
9
8
|
/**
|
|
10
9
|
* The `Environment` interface declares all the configuration fields that
|
|
11
10
|
* can be specified for an environment.
|
|
@@ -414,7 +413,7 @@ export interface EnvironmentNonInheritable {
|
|
|
414
413
|
* @default {}
|
|
415
414
|
* @nonInheritable
|
|
416
415
|
*/
|
|
417
|
-
vars: Record<string,
|
|
416
|
+
vars: Record<string, unknown>;
|
|
418
417
|
/**
|
|
419
418
|
* A list of durable objects that your Worker should be bound to.
|
|
420
419
|
*
|
package/package.json
CHANGED