eddev 2.1.4 → 2.1.6
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/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/bin/eddev.js +1 -1
- package/dist/app/lib/devtools/hooks/useTailwind.d.ts +1 -5227
- package/dist/app/lib/devtools/hooks/useTailwind.d.ts.map +1 -1
- package/dist/app/lib/devtools/tailwind.config.d.ts +1 -22
- package/dist/app/lib/devtools/tailwind.config.d.ts.map +1 -1
- package/dist/app/lib/legacy-stitches/createStitches.d.ts +9 -9
- package/dist/app/lib/legacy-stitches/createStitches.d.ts.map +1 -1
- package/dist/app/server/server-context.d.ts +1 -1
- package/dist/app/server/utils/replace-host.d.ts.map +1 -1
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/project/config.d.ts +58 -279
- package/dist/node/project/config.d.ts.map +1 -1
- package/dist/node/project/config.js +9 -8
- package/dist/node/project/env.d.ts +8 -20
- package/dist/node/project/env.d.ts.map +1 -1
- package/dist/node/types/block-type.d.ts +21 -95
- package/dist/node/types/block-type.d.ts.map +1 -1
- package/dist/node/types/view-type.d.ts +2 -18
- package/dist/node/types/view-type.d.ts.map +1 -1
- package/dist/node/utils/format-zod-error.d.ts +1 -2
- package/dist/node/utils/format-zod-error.d.ts.map +1 -1
- package/dist/node/utils/format-zod-error.js +2 -31
- package/dist/node/utils/fs.d.ts +20 -23
- package/dist/node/utils/fs.d.ts.map +1 -1
- package/dist/node/utils/helpers.d.ts.map +1 -1
- package/dist/node/utils/stateful-log.d.ts.map +1 -1
- package/dist/node/utils/stateful-log.js +3 -5
- package/package.json +6 -5
|
@@ -3,29 +3,17 @@ export type ProjectEnvMap = z.infer<typeof ProjectEnvSchema>;
|
|
|
3
3
|
export declare const fields: {
|
|
4
4
|
readonly DEBUG_GRAPHQL_URL: z.ZodString;
|
|
5
5
|
readonly SITE_URL: z.ZodString;
|
|
6
|
-
readonly DEV_HOT_PORT: z.
|
|
7
|
-
readonly DEV_SERVERLESS_PORT: z.
|
|
6
|
+
readonly DEV_HOT_PORT: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string | number, string>>, z.ZodTransform<number, string | number>>;
|
|
7
|
+
readonly DEV_SERVERLESS_PORT: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string | number, string>>, z.ZodTransform<number, string | number>>;
|
|
8
8
|
readonly SITE_API_KEY: z.ZodOptional<z.ZodString>;
|
|
9
9
|
};
|
|
10
10
|
export declare const ProjectEnvSchema: z.ZodObject<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
DEBUG_GRAPHQL_URL?: string | undefined;
|
|
18
|
-
SITE_URL?: string | undefined;
|
|
19
|
-
DEV_HOT_PORT?: number | undefined;
|
|
20
|
-
DEV_SERVERLESS_PORT?: number | undefined;
|
|
21
|
-
SITE_API_KEY?: string | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
DEBUG_GRAPHQL_URL?: string | undefined;
|
|
24
|
-
SITE_URL?: string | undefined;
|
|
25
|
-
DEV_HOT_PORT?: string | undefined;
|
|
26
|
-
DEV_SERVERLESS_PORT?: string | undefined;
|
|
27
|
-
SITE_API_KEY?: string | undefined;
|
|
28
|
-
}>;
|
|
11
|
+
DEBUG_GRAPHQL_URL: z.ZodOptional<z.ZodString>;
|
|
12
|
+
SITE_URL: z.ZodOptional<z.ZodString>;
|
|
13
|
+
DEV_HOT_PORT: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string | number, string>>, z.ZodTransform<number, string | number>>>;
|
|
14
|
+
DEV_SERVERLESS_PORT: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string | number, string>>, z.ZodTransform<number, string | number>>>;
|
|
15
|
+
SITE_API_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
29
17
|
export type ProjectEnvKey = keyof typeof fields;
|
|
30
18
|
export declare const ProjectEnvUtils: {
|
|
31
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/node/project/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAQ5D,eAAO,MAAM,MAAM;;;;;;CAWT,CAAA;AAEV,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/node/project/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAQ5D,eAAO,MAAM,MAAM;;;;;;CAWT,CAAA;AAEV,eAAO,MAAM,gBAAgB;;;;;;iBAA6B,CAAA;AAE1D,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,MAAM,CAAA;AAE/C,eAAO,MAAM,eAAe;IAC1B;;;OAGG;sBACe,OAAO,GAAG;QAAE,KAAK,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,aAAa,CAAA;KAAE,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE;YA2B1E,CAAC,SAAS,aAAa,OAAO,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS;QAQ5E,CAAC,SAAS,aAAa,OAAO,CAAC,0FAAmB,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;CAclF,CAAA"}
|
|
@@ -9,114 +9,40 @@ export declare const BlockMetaSchema: z.ZodObject<{
|
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
10
|
category: z.ZodDefault<z.ZodString>;
|
|
11
11
|
icon: z.ZodOptional<z.ZodString>;
|
|
12
|
-
keywords: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
13
|
-
types: z.ZodArray<z.ZodString
|
|
14
|
-
templates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
15
|
-
mode: z.ZodDefault<z.ZodEnum<
|
|
16
|
-
|
|
12
|
+
keywords: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
13
|
+
types: z.ZodArray<z.ZodString>;
|
|
14
|
+
templates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
15
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
16
|
+
both: "both";
|
|
17
|
+
edit: "edit";
|
|
18
|
+
preview: "preview";
|
|
19
|
+
}>>;
|
|
20
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
17
21
|
flags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
18
|
-
childTags: z.ZodDefault<z.ZodArray<z.ZodString
|
|
19
|
-
childBlocks: z.ZodDefault<z.ZodArray<z.ZodString
|
|
20
|
-
parent: z.ZodDefault<z.ZodArray<z.ZodString
|
|
21
|
-
ancestors: z.ZodDefault<z.ZodArray<z.ZodString
|
|
22
|
+
childTags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
23
|
+
childBlocks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
24
|
+
parent: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
|
+
ancestors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
26
|
dynamic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
23
27
|
cache: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
24
28
|
allowMultiple: z.ZodDefault<z.ZodBoolean>;
|
|
25
29
|
postMetaBlock: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
postTypes: z.ZodArray<z.ZodString
|
|
30
|
+
postTypes: z.ZodArray<z.ZodString>;
|
|
27
31
|
fieldName: z.ZodString;
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
fieldName: string;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
frontendMode: z.ZodDefault<z.ZodEnum<{
|
|
34
|
+
hidden: "hidden";
|
|
35
|
+
default: "default";
|
|
36
|
+
childrenOnly: "childrenOnly";
|
|
34
37
|
}>>;
|
|
35
|
-
frontendMode: z.ZodDefault<z.ZodEnum<["hidden", "childrenOnly", "default"]>>;
|
|
36
38
|
inserter: z.ZodDefault<z.ZodBoolean>;
|
|
37
39
|
blockStyles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
40
|
name: z.ZodString;
|
|
39
41
|
label: z.ZodString;
|
|
40
42
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
-
},
|
|
42
|
-
label: string;
|
|
43
|
-
name: string;
|
|
44
|
-
isDefault?: boolean | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
label: string;
|
|
47
|
-
name: string;
|
|
48
|
-
isDefault?: boolean | undefined;
|
|
49
|
-
}>, "many">>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
50
44
|
lazyLoad: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
},
|
|
52
|
-
title: string;
|
|
53
|
-
mode: "both" | "edit" | "preview";
|
|
54
|
-
slug: string;
|
|
55
|
-
tags: string[];
|
|
56
|
-
flags: Record<string, any>;
|
|
57
|
-
category: string;
|
|
58
|
-
parent: string[];
|
|
59
|
-
inserter: boolean;
|
|
60
|
-
acfName: string;
|
|
61
|
-
fileName: string;
|
|
62
|
-
graphqlFieldName: string;
|
|
63
|
-
types: string[];
|
|
64
|
-
childTags: string[];
|
|
65
|
-
childBlocks: string[];
|
|
66
|
-
ancestors: string[];
|
|
67
|
-
dynamic: boolean;
|
|
68
|
-
cache: boolean;
|
|
69
|
-
allowMultiple: boolean;
|
|
70
|
-
frontendMode: "hidden" | "default" | "childrenOnly";
|
|
71
|
-
icon?: string | undefined;
|
|
72
|
-
description?: string | undefined;
|
|
73
|
-
keywords?: string | string[] | undefined;
|
|
74
|
-
templates?: string[] | null | undefined;
|
|
75
|
-
postMetaBlock?: {
|
|
76
|
-
postTypes: string[];
|
|
77
|
-
fieldName: string;
|
|
78
|
-
} | undefined;
|
|
79
|
-
blockStyles?: {
|
|
80
|
-
label: string;
|
|
81
|
-
name: string;
|
|
82
|
-
isDefault?: boolean | undefined;
|
|
83
|
-
}[] | undefined;
|
|
84
|
-
lazyLoad?: boolean | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
title: string;
|
|
87
|
-
slug: string;
|
|
88
|
-
acfName: string;
|
|
89
|
-
fileName: string;
|
|
90
|
-
graphqlFieldName: string;
|
|
91
|
-
types: string[];
|
|
92
|
-
mode?: "both" | "edit" | "preview" | undefined;
|
|
93
|
-
tags?: string[] | undefined;
|
|
94
|
-
flags?: Record<string, any> | undefined;
|
|
95
|
-
icon?: string | undefined;
|
|
96
|
-
category?: string | undefined;
|
|
97
|
-
description?: string | undefined;
|
|
98
|
-
keywords?: string | string[] | undefined;
|
|
99
|
-
parent?: string[] | undefined;
|
|
100
|
-
inserter?: boolean | undefined;
|
|
101
|
-
templates?: string[] | null | undefined;
|
|
102
|
-
childTags?: string[] | undefined;
|
|
103
|
-
childBlocks?: string[] | undefined;
|
|
104
|
-
ancestors?: string[] | undefined;
|
|
105
|
-
dynamic?: boolean | undefined;
|
|
106
|
-
cache?: boolean | undefined;
|
|
107
|
-
allowMultiple?: boolean | undefined;
|
|
108
|
-
postMetaBlock?: {
|
|
109
|
-
postTypes: string[];
|
|
110
|
-
fieldName: string;
|
|
111
|
-
} | undefined;
|
|
112
|
-
frontendMode?: "hidden" | "default" | "childrenOnly" | undefined;
|
|
113
|
-
blockStyles?: {
|
|
114
|
-
label: string;
|
|
115
|
-
name: string;
|
|
116
|
-
isDefault?: boolean | undefined;
|
|
117
|
-
}[] | undefined;
|
|
118
|
-
lazyLoad?: boolean | undefined;
|
|
119
|
-
}>;
|
|
45
|
+
}, z.core.$strip>;
|
|
120
46
|
export type BlockMetadata = z.infer<typeof BlockMetaSchema>;
|
|
121
47
|
export type BlockMetadataConstructor = z.input<typeof BlockMetaSchema>;
|
|
122
48
|
export declare function describeBlock(block: BlockMetadata): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-type.d.ts","sourceRoot":"","sources":["../../../src/node/types/block-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AAMrE,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"block-type.d.ts","sourceRoot":"","sources":["../../../src/node/types/block-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AAMrE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgC1B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE3D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEtE,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,UAkBjD;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,aAAa,UA6B5D"}
|
|
@@ -7,24 +7,8 @@ export declare const ViewMetaSchema: z.ZodObject<{
|
|
|
7
7
|
isCustomTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
8
|
cache: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9
9
|
routePattern: z.ZodOptional<z.ZodString>;
|
|
10
|
-
postType: z.ZodOptional<z.ZodArray<z.ZodString
|
|
11
|
-
},
|
|
12
|
-
title: string;
|
|
13
|
-
slug: string;
|
|
14
|
-
fileName: string;
|
|
15
|
-
cache: boolean;
|
|
16
|
-
isCustomTemplate: boolean;
|
|
17
|
-
postType?: string[] | undefined;
|
|
18
|
-
routePattern?: string | undefined;
|
|
19
|
-
}, {
|
|
20
|
-
title: string;
|
|
21
|
-
slug: string;
|
|
22
|
-
fileName: string;
|
|
23
|
-
postType?: string[] | undefined;
|
|
24
|
-
cache?: boolean | undefined;
|
|
25
|
-
isCustomTemplate?: boolean | undefined;
|
|
26
|
-
routePattern?: string | undefined;
|
|
27
|
-
}>;
|
|
10
|
+
postType: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
28
12
|
export type ViewMetadata = z.infer<typeof ViewMetaSchema>;
|
|
29
13
|
export type ViewMetadataConstructor = z.input<typeof ViewMetaSchema>;
|
|
30
14
|
export declare function describeView(view: ViewMetadata): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-type.d.ts","sourceRoot":"","sources":["../../../src/node/types/view-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAInE,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"view-type.d.ts","sourceRoot":"","sources":["../../../src/node/types/view-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAInE,eAAO,MAAM,cAAc;;;;;;;;iBAQzB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAEzD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpE,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,UAiB9C;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,YAAY,QAuB1D"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ZodError } from "zod
|
|
1
|
+
import { ZodError } from "zod";
|
|
2
2
|
export declare function formatZodError(error: ZodError): string;
|
|
3
|
-
export declare function eachFormattedZodError(error: ZodError): string[];
|
|
4
3
|
//# sourceMappingURL=format-zod-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-zod-error.d.ts","sourceRoot":"","sources":["../../../src/node/utils/format-zod-error.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"format-zod-error.d.ts","sourceRoot":"","sources":["../../../src/node/utils/format-zod-error.ts"],"names":[],"mappings":"AAAA,OAAU,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEjC,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,UAE7C"}
|
|
@@ -1,33 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import z from "zod";
|
|
2
2
|
export function formatZodError(error) {
|
|
3
|
-
|
|
4
|
-
issueSeparator: "\n- ",
|
|
5
|
-
prefix: "",
|
|
6
|
-
prefixSeparator: "",
|
|
7
|
-
});
|
|
8
|
-
return ("- " +
|
|
9
|
-
result.details
|
|
10
|
-
.map((d) => {
|
|
11
|
-
if (d.path.length > 0) {
|
|
12
|
-
return `'$.${d.path.join("")}': ${d.message}`;
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return d.message;
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
.join("\n- "));
|
|
19
|
-
}
|
|
20
|
-
export function eachFormattedZodError(error) {
|
|
21
|
-
const result = zodFormatter.fromZodError(error, {
|
|
22
|
-
prefix: "",
|
|
23
|
-
prefixSeparator: "",
|
|
24
|
-
});
|
|
25
|
-
return result.details.map((d) => {
|
|
26
|
-
if (d.path.length > 0) {
|
|
27
|
-
return `'$.${d.path.join("")}': ${d.message}`;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return d.message;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
3
|
+
return z.prettifyError(error);
|
|
33
4
|
}
|
package/dist/node/utils/fs.d.ts
CHANGED
|
@@ -28,23 +28,18 @@ export declare const fs: {
|
|
|
28
28
|
encoding: "buffer";
|
|
29
29
|
withFileTypes?: false | undefined;
|
|
30
30
|
recursive?: boolean | undefined;
|
|
31
|
-
} | "buffer"): Promise<
|
|
31
|
+
} | "buffer"): Promise<Buffer[]>;
|
|
32
32
|
readdir(path: import("fs").PathLike, options?: (import("fs").ObjectEncodingOptions & {
|
|
33
33
|
withFileTypes?: false | undefined;
|
|
34
34
|
recursive?: boolean | undefined;
|
|
35
|
-
}) | BufferEncoding | null): Promise<string[] |
|
|
35
|
+
}) | BufferEncoding | null): Promise<string[] | Buffer[]>;
|
|
36
36
|
readdir(path: import("fs").PathLike, options: import("fs").ObjectEncodingOptions & {
|
|
37
37
|
withFileTypes: true;
|
|
38
38
|
recursive?: boolean | undefined;
|
|
39
39
|
}): Promise<import("fs").Dirent[]>;
|
|
40
|
-
readdir(path: import("fs").PathLike, options: {
|
|
41
|
-
encoding: "buffer";
|
|
42
|
-
withFileTypes: true;
|
|
43
|
-
recursive?: boolean | undefined;
|
|
44
|
-
}): Promise<import("fs").Dirent<NonSharedBuffer>[]>;
|
|
45
40
|
readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
|
|
46
|
-
readlink(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise<
|
|
47
|
-
readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | string | null): Promise<string |
|
|
41
|
+
readlink(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise<Buffer>;
|
|
42
|
+
readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | string | null): Promise<string | Buffer>;
|
|
48
43
|
symlink(target: import("fs").PathLike, path: import("fs").PathLike, type?: string | null): Promise<void>;
|
|
49
44
|
lstat(path: import("fs").PathLike, opts?: import("fs").StatOptions & {
|
|
50
45
|
bigint?: false | undefined;
|
|
@@ -76,12 +71,12 @@ export declare const fs: {
|
|
|
76
71
|
chown(path: import("fs").PathLike, uid: number, gid: number): Promise<void>;
|
|
77
72
|
utimes(path: import("fs").PathLike, atime: import("fs").TimeLike, mtime: import("fs").TimeLike): Promise<void>;
|
|
78
73
|
realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
|
|
79
|
-
realpath(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise<
|
|
80
|
-
realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string |
|
|
74
|
+
realpath(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise<Buffer>;
|
|
75
|
+
realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>;
|
|
81
76
|
mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
|
|
82
|
-
mkdtemp(prefix: string, options: import("fs").BufferEncodingOption): Promise<
|
|
83
|
-
mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string |
|
|
84
|
-
writeFile(file: import("fs").PathLike | nodeFs.FileHandle, data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | import("stream"), options?: (import("fs").ObjectEncodingOptions & {
|
|
77
|
+
mkdtemp(prefix: string, options: import("fs").BufferEncodingOption): Promise<Buffer>;
|
|
78
|
+
mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>;
|
|
79
|
+
writeFile(file: import("fs").PathLike | nodeFs.FileHandle, data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | import("stream").Stream, options?: (import("fs").ObjectEncodingOptions & {
|
|
85
80
|
mode?: import("fs").Mode | undefined;
|
|
86
81
|
flag?: import("fs").OpenMode | undefined;
|
|
87
82
|
flush?: boolean | undefined;
|
|
@@ -92,23 +87,25 @@ export declare const fs: {
|
|
|
92
87
|
readFile(path: import("fs").PathLike | nodeFs.FileHandle, options?: ({
|
|
93
88
|
encoding?: null | undefined;
|
|
94
89
|
flag?: import("fs").OpenMode | undefined;
|
|
95
|
-
} & import("events").Abortable) | null): Promise<
|
|
90
|
+
} & import("events").Abortable) | null): Promise<Buffer>;
|
|
96
91
|
readFile(path: import("fs").PathLike | nodeFs.FileHandle, options: ({
|
|
97
92
|
encoding: BufferEncoding;
|
|
98
93
|
flag?: import("fs").OpenMode | undefined;
|
|
99
94
|
} & import("events").Abortable) | BufferEncoding): Promise<string>;
|
|
100
95
|
readFile(path: import("fs").PathLike | nodeFs.FileHandle, options?: (import("fs").ObjectEncodingOptions & import("events").Abortable & {
|
|
101
96
|
flag?: import("fs").OpenMode | undefined;
|
|
102
|
-
}) | BufferEncoding | null): Promise<string |
|
|
97
|
+
}) | BufferEncoding | null): Promise<string | Buffer>;
|
|
103
98
|
opendir(path: import("fs").PathLike, options?: import("fs").OpenDirOptions): Promise<import("fs").Dir>;
|
|
104
|
-
watch(filename: import("fs").PathLike, options
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
watch(filename: import("fs").PathLike, options: (import("fs").WatchOptions & {
|
|
100
|
+
encoding: "buffer";
|
|
101
|
+
}) | "buffer"): AsyncIterable<nodeFs.FileChangeInfo<Buffer>>;
|
|
102
|
+
watch(filename: import("fs").PathLike, options?: import("fs").WatchOptions | BufferEncoding): AsyncIterable<nodeFs.FileChangeInfo<string>>;
|
|
103
|
+
watch(filename: import("fs").PathLike, options: import("fs").WatchOptions | string): AsyncIterable<nodeFs.FileChangeInfo<string>> | AsyncIterable<nodeFs.FileChangeInfo<Buffer>>;
|
|
107
104
|
cp(source: string | URL, destination: string | URL, opts?: import("fs").CopyOptions): Promise<void>;
|
|
108
|
-
glob(pattern: string |
|
|
109
|
-
glob(pattern: string |
|
|
110
|
-
glob(pattern: string |
|
|
111
|
-
glob(pattern: string |
|
|
105
|
+
glob(pattern: string | string[]): NodeJS.AsyncIterator<string>;
|
|
106
|
+
glob(pattern: string | string[], opt: import("fs").GlobOptionsWithFileTypes): NodeJS.AsyncIterator<import("fs").Dirent>;
|
|
107
|
+
glob(pattern: string | string[], opt: import("fs").GlobOptionsWithoutFileTypes): NodeJS.AsyncIterator<string>;
|
|
108
|
+
glob(pattern: string | string[], opt: import("fs").GlobOptions): NodeJS.AsyncIterator<import("fs").Dirent | string>;
|
|
112
109
|
constants: typeof import("fs").constants;
|
|
113
110
|
};
|
|
114
111
|
//# sourceMappingURL=fs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../src/node/utils/fs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,eAAO,MAAM,EAAE;6BAEkB,MAAM,WAAW,MAAM;iCAWnB,MAAM,WAAW,GAAG;sBAW/B,MAAM,WAAW,GAAG;qBAGrB,MAAM;mBAIR,MAAM;mBAQN,MAAM;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../src/node/utils/fs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,eAAO,MAAM,EAAE;6BAEkB,MAAM,WAAW,MAAM;iCAWnB,MAAM,WAAW,GAAG;sBAW/B,MAAM,WAAW,GAAG;qBAGrB,MAAM;mBAIR,MAAM;mBAQN,MAAM;;;;;;;;;;;;iBAQgi1B,CAAC;;;;qBAAqkD,CAAC;iBAA8C,CAAC;;;;qBAAmjB,CAAC;iBAA8C,CAAC;;;qBAA+gB,CAAC;iBAA8C,CAAC;;;;iBAAkhB,CAAC;;;;;;;cAA65F,CAAC;;;;;;;cAAoe,CAAC;;;;;;;cAAif,CAAC;;;;;;;;;;;;;;;;;;;;8EAAg5S,OAAQ,eAAe,qBAAgC,OAAQ,eAAe,2BAAsC,OAAQ,eAAe;YAAuG,CAAC;YAAwC,CAAC;aAAoR,CAAC;;;aAAi2B,CAAC;;;gBAAosE,CAAC;YAAwC,CAAC;;;;YAA4nB,CAAC;;;YAAwrB,CAAC;;;;;;;;;sCAAy9I,OAAQ,aAAa;kFAA8G,OAAQ,aAAa;qFAAiH,OAAQ,aAAa;qEAAiG,OAAQ,aAAa;;CADh5pD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/node/utils/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/node/utils/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,UAAW,MAAM,OAAO,MAAM,WAM3D,CAAA;AAED,eAAO,MAAM,MAAM,UAAW,MAAM,OAAO,MAAM,WAMhD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stateful-log.d.ts","sourceRoot":"","sources":["../../../src/node/utils/stateful-log.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAInC,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAA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,IAAI,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE;IAMvB,OAAO,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE;IAK1B,IAAI,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE;IAKvB,OAAO,CAAC,WAAW;IA+BnB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,WAAmB;IA4BnD,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,YAAQ,EAAE,OAAO,EAAE;QAAE,IAAI,EAAE,WAAW,CAAC;QAAC,OAAO,EAAE,GAAG,EAAE,CAAA;KAAE,EAAE;IAuBxG,QAAQ;CAQT;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,uBAKtE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cliMode } from "../cli/cli-mode.js";
|
|
2
|
-
import { eachFormattedZodError } from "./format-zod-error.js";
|
|
3
1
|
import chalk from "chalk";
|
|
2
|
+
import { cliMode } from "../cli/cli-mode.js";
|
|
3
|
+
import { formatZodError } from "./format-zod-error.js";
|
|
4
4
|
let logId = 0;
|
|
5
5
|
const getID = () => logId++;
|
|
6
6
|
export class StatefulLog {
|
|
@@ -115,9 +115,7 @@ export class StatefulLog {
|
|
|
115
115
|
this.notifySubscribers();
|
|
116
116
|
}
|
|
117
117
|
zodError(err) {
|
|
118
|
-
|
|
119
|
-
this.fail(msg);
|
|
120
|
-
});
|
|
118
|
+
this.fail(formatZodError(err));
|
|
121
119
|
}
|
|
122
120
|
fail(...messages) {
|
|
123
121
|
this.addLogEntry("fail", ...messages);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eddev",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -128,9 +128,9 @@
|
|
|
128
128
|
"valtio": "^2.1.2",
|
|
129
129
|
"vinxi": "^0.5.8",
|
|
130
130
|
"vite-tsconfig-paths": "4.3.2",
|
|
131
|
-
"zod": "^
|
|
132
|
-
"zod-to-json-schema": "^3.
|
|
133
|
-
"zod-validation-error": "^
|
|
131
|
+
"zod": "^4.1.12",
|
|
132
|
+
"zod-to-json-schema": "^3.24.6",
|
|
133
|
+
"zod-validation-error": "^5.0.0"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
136
|
"@types/node": "^22.13.0",
|
|
@@ -142,5 +142,6 @@
|
|
|
142
142
|
"react": "^18.3.1",
|
|
143
143
|
"react-dom": "^18.3.1",
|
|
144
144
|
"tailwindcss": "^3.4.4"
|
|
145
|
-
}
|
|
145
|
+
},
|
|
146
|
+
"packageManager": "yarn@4.11.0"
|
|
146
147
|
}
|