@jakubmazanec/zod-utils 2.0.13 → 3.0.0-next.ed856d8f
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/build/types/Json.d.ts +2 -2
- package/build/types/Json.js +1 -1
- package/build/types/Json.js.map +2 -2
- package/build/types/PackageJson.d.ts +107 -427
- package/build/types/PackageJson.js +17 -10
- package/build/types/PackageJson.js.map +2 -2
- package/build/types/TsconfigJson.d.ts +221 -506
- package/build/types/TsconfigJson.js +2 -2
- package/build/types/TsconfigJson.js.map +2 -2
- package/build/utils/readFile.d.ts +2 -2
- package/build/utils/readFile.js.map +2 -2
- package/build/utils/readJson.d.ts +2 -2
- package/build/utils/readJson.js.map +2 -2
- package/build/utils.d.ts +0 -1
- package/build/utils.js +0 -1
- package/build/utils.js.map +2 -2
- package/package.json +3 -3
- package/source/types/Json.ts +2 -2
- package/source/types/PackageJson.ts +20 -11
- package/source/types/TsconfigJson.ts +2 -2
- package/source/utils/readFile.ts +3 -5
- package/source/utils/readJson.ts +3 -4
- package/source/utils.ts +0 -1
- package/build/utils/zodIssuesToString.d.ts +0 -2
- package/build/utils/zodIssuesToString.js +0 -32
- package/build/utils/zodIssuesToString.js.map +0 -7
- package/source/utils/zodIssuesToString.ts +0 -52
package/build/types/Json.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2
|
+
declare const literalSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3
3
|
type Literal = z.infer<typeof literalSchema>;
|
|
4
|
-
export declare const jsonSchema: z.
|
|
4
|
+
export declare const jsonSchema: z.ZodType<Json>;
|
|
5
5
|
export type Json = Json[] | Literal | {
|
|
6
6
|
[key: string]: Json;
|
|
7
7
|
};
|
package/build/types/Json.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
const literalSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);
|
|
4
4
|
export const jsonSchema = z.lazy(
|
|
5
|
-
() => z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)])
|
|
5
|
+
() => z.union([literalSchema, z.array(jsonSchema), z.record(z.string(), jsonSchema)])
|
|
6
6
|
);
|
|
7
7
|
//# sourceMappingURL=Json.js.map
|
package/build/types/Json.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../source/types/Json.ts"],
|
|
4
|
-
"sourcesContent": ["import * as z from 'zod';\n\nconst literalSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);\n\ntype Literal = z.infer<typeof literalSchema>;\n\nexport const jsonSchema: z.
|
|
5
|
-
"mappings": ";AAAA,YAAY,OAAO;AAEnB,MAAM,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,KAAK,CAAC,CAAC;AAItE,aAAM,
|
|
4
|
+
"sourcesContent": ["import * as z from 'zod';\n\nconst literalSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);\n\ntype Literal = z.infer<typeof literalSchema>;\n\nexport const jsonSchema: z.ZodType<Json> = z.lazy(() =>\n z.union([literalSchema, z.array(jsonSchema), z.record(z.string(), jsonSchema)]),\n);\n\nexport type Json = Json[] | Literal | {[key: string]: Json};\n"],
|
|
5
|
+
"mappings": ";AAAA,YAAY,OAAO;AAEnB,MAAM,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,KAAK,CAAC,CAAC;AAItE,aAAM,aAA8B,EAAE;AAAA,EAAK,MAChD,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,UAAU,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;AAChF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
declare const packageJsonExportConditionSchema: z.ZodUnion<[z.ZodEnum<
|
|
2
|
+
declare const packageJsonExportConditionSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
+
default: "default";
|
|
4
|
+
browser: "browser";
|
|
5
|
+
deno: "deno";
|
|
6
|
+
development: "development";
|
|
7
|
+
electron: "electron";
|
|
8
|
+
import: "import";
|
|
9
|
+
node: "node";
|
|
10
|
+
production: "production";
|
|
11
|
+
"react-native": "react-native";
|
|
12
|
+
require: "require";
|
|
13
|
+
}>, z.ZodString]>;
|
|
3
14
|
type PackageJsonExportCondition = z.infer<typeof packageJsonExportConditionSchema>;
|
|
4
15
|
type PackageJsonExports = string[] | {
|
|
5
16
|
[key: string]: PackageJsonExports | null | undefined;
|
|
@@ -10,64 +21,34 @@ export declare const packageJsonSchema: z.ZodObject<{
|
|
|
10
21
|
name: z.ZodOptional<z.ZodString>;
|
|
11
22
|
version: z.ZodOptional<z.ZodString>;
|
|
12
23
|
description: z.ZodOptional<z.ZodString>;
|
|
13
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
24
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
25
|
homepage: z.ZodOptional<z.ZodString>;
|
|
15
|
-
bugs: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
26
|
+
bugs: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
16
27
|
email: z.ZodOptional<z.ZodString>;
|
|
17
28
|
url: z.ZodOptional<z.ZodString>;
|
|
18
|
-
},
|
|
19
|
-
url?: string | undefined;
|
|
20
|
-
email?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
url?: string | undefined;
|
|
23
|
-
email?: string | undefined;
|
|
24
|
-
}>, z.ZodString]>>;
|
|
29
|
+
}, z.core.$strict>, z.ZodString]>>;
|
|
25
30
|
license: z.ZodOptional<z.ZodString>;
|
|
26
|
-
author: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
31
|
+
author: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
27
32
|
name: z.ZodString;
|
|
28
33
|
email: z.ZodOptional<z.ZodString>;
|
|
29
34
|
url: z.ZodOptional<z.ZodString>;
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
url?: string | undefined;
|
|
33
|
-
email?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
name: string;
|
|
36
|
-
url?: string | undefined;
|
|
37
|
-
email?: string | undefined;
|
|
38
|
-
}>, z.ZodString]>>;
|
|
39
|
-
contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
35
|
+
}, z.core.$strict>, z.ZodString]>>;
|
|
36
|
+
contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
40
37
|
name: z.ZodString;
|
|
41
38
|
email: z.ZodOptional<z.ZodString>;
|
|
42
39
|
url: z.ZodOptional<z.ZodString>;
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
url?: string | undefined;
|
|
46
|
-
email?: string | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
name: string;
|
|
49
|
-
url?: string | undefined;
|
|
50
|
-
email?: string | undefined;
|
|
51
|
-
}>, z.ZodString]>, "many">>;
|
|
52
|
-
maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
40
|
+
}, z.core.$strict>, z.ZodString]>>>;
|
|
41
|
+
maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
53
42
|
name: z.ZodString;
|
|
54
43
|
email: z.ZodOptional<z.ZodString>;
|
|
55
44
|
url: z.ZodOptional<z.ZodString>;
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
email?: string | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
name: string;
|
|
62
|
-
url?: string | undefined;
|
|
63
|
-
email?: string | undefined;
|
|
64
|
-
}>, z.ZodString]>, "many">>;
|
|
65
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
66
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"commonjs">, z.ZodLiteral<"module">]>>;
|
|
45
|
+
}, z.core.$strict>, z.ZodString]>>>;
|
|
46
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"commonjs">, z.ZodLiteral<"module">]>>;
|
|
67
48
|
main: z.ZodOptional<z.ZodString>;
|
|
68
|
-
exports: z.ZodOptional<z.ZodType<PackageJsonExports, z.
|
|
69
|
-
bin: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodString]>>;
|
|
70
|
-
man: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString
|
|
49
|
+
exports: z.ZodOptional<z.ZodType<PackageJsonExports, unknown, z.core.$ZodTypeInternals<PackageJsonExports, unknown>>>;
|
|
50
|
+
bin: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodString]>>;
|
|
51
|
+
man: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
|
|
71
52
|
directories: z.ZodOptional<z.ZodObject<{
|
|
72
53
|
bin: z.ZodOptional<z.ZodString>;
|
|
73
54
|
doc: z.ZodOptional<z.ZodString>;
|
|
@@ -75,34 +56,12 @@ export declare const packageJsonSchema: z.ZodObject<{
|
|
|
75
56
|
lib: z.ZodOptional<z.ZodString>;
|
|
76
57
|
man: z.ZodOptional<z.ZodString>;
|
|
77
58
|
v: z.ZodOptional<z.ZodString>;
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
doc?: string | undefined;
|
|
81
|
-
example?: string | undefined;
|
|
82
|
-
lib?: string | undefined;
|
|
83
|
-
man?: string | undefined;
|
|
84
|
-
v?: string | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
bin?: string | undefined;
|
|
87
|
-
doc?: string | undefined;
|
|
88
|
-
example?: string | undefined;
|
|
89
|
-
lib?: string | undefined;
|
|
90
|
-
man?: string | undefined;
|
|
91
|
-
v?: string | undefined;
|
|
92
|
-
}>>;
|
|
93
|
-
repository: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
59
|
+
}, z.core.$strict>>;
|
|
60
|
+
repository: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
94
61
|
type: z.ZodString;
|
|
95
62
|
url: z.ZodString;
|
|
96
63
|
directory: z.ZodOptional<z.ZodString>;
|
|
97
|
-
},
|
|
98
|
-
type: string;
|
|
99
|
-
url: string;
|
|
100
|
-
directory?: string | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
type: string;
|
|
103
|
-
url: string;
|
|
104
|
-
directory?: string | undefined;
|
|
105
|
-
}>, z.ZodString]>>;
|
|
64
|
+
}, z.core.$strict>, z.ZodString]>>;
|
|
106
65
|
scripts: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodObject<{
|
|
107
66
|
prepublish: z.ZodOptional<z.ZodString>;
|
|
108
67
|
prepare: z.ZodOptional<z.ZodString>;
|
|
@@ -132,65 +91,7 @@ export declare const packageJsonSchema: z.ZodObject<{
|
|
|
132
91
|
prerestart: z.ZodOptional<z.ZodString>;
|
|
133
92
|
restart: z.ZodOptional<z.ZodString>;
|
|
134
93
|
postrestart: z.ZodOptional<z.ZodString>;
|
|
135
|
-
},
|
|
136
|
-
prepublish?: string | undefined;
|
|
137
|
-
prepare?: string | undefined;
|
|
138
|
-
prepublishOnly?: string | undefined;
|
|
139
|
-
prepack?: string | undefined;
|
|
140
|
-
postpack?: string | undefined;
|
|
141
|
-
publish?: string | undefined;
|
|
142
|
-
postpublish?: string | undefined;
|
|
143
|
-
preinstall?: string | undefined;
|
|
144
|
-
install?: string | undefined;
|
|
145
|
-
postinstall?: string | undefined;
|
|
146
|
-
preuninstall?: string | undefined;
|
|
147
|
-
uninstall?: string | undefined;
|
|
148
|
-
postuninstall?: string | undefined;
|
|
149
|
-
preversion?: string | undefined;
|
|
150
|
-
version?: string | undefined;
|
|
151
|
-
postversion?: string | undefined;
|
|
152
|
-
pretest?: string | undefined;
|
|
153
|
-
test?: string | undefined;
|
|
154
|
-
posttest?: string | undefined;
|
|
155
|
-
prestop?: string | undefined;
|
|
156
|
-
stop?: string | undefined;
|
|
157
|
-
poststop?: string | undefined;
|
|
158
|
-
prestart?: string | undefined;
|
|
159
|
-
start?: string | undefined;
|
|
160
|
-
poststart?: string | undefined;
|
|
161
|
-
prerestart?: string | undefined;
|
|
162
|
-
restart?: string | undefined;
|
|
163
|
-
postrestart?: string | undefined;
|
|
164
|
-
}, {
|
|
165
|
-
prepublish?: string | undefined;
|
|
166
|
-
prepare?: string | undefined;
|
|
167
|
-
prepublishOnly?: string | undefined;
|
|
168
|
-
prepack?: string | undefined;
|
|
169
|
-
postpack?: string | undefined;
|
|
170
|
-
publish?: string | undefined;
|
|
171
|
-
postpublish?: string | undefined;
|
|
172
|
-
preinstall?: string | undefined;
|
|
173
|
-
install?: string | undefined;
|
|
174
|
-
postinstall?: string | undefined;
|
|
175
|
-
preuninstall?: string | undefined;
|
|
176
|
-
uninstall?: string | undefined;
|
|
177
|
-
postuninstall?: string | undefined;
|
|
178
|
-
preversion?: string | undefined;
|
|
179
|
-
version?: string | undefined;
|
|
180
|
-
postversion?: string | undefined;
|
|
181
|
-
pretest?: string | undefined;
|
|
182
|
-
test?: string | undefined;
|
|
183
|
-
posttest?: string | undefined;
|
|
184
|
-
prestop?: string | undefined;
|
|
185
|
-
stop?: string | undefined;
|
|
186
|
-
poststop?: string | undefined;
|
|
187
|
-
prestart?: string | undefined;
|
|
188
|
-
start?: string | undefined;
|
|
189
|
-
poststart?: string | undefined;
|
|
190
|
-
prerestart?: string | undefined;
|
|
191
|
-
restart?: string | undefined;
|
|
192
|
-
postrestart?: string | undefined;
|
|
193
|
-
}>>>;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
194
95
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
195
96
|
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
196
97
|
devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -198,320 +99,99 @@ export declare const packageJsonSchema: z.ZodObject<{
|
|
|
198
99
|
peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
199
100
|
peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
200
101
|
optional: z.ZodBoolean;
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
bundledDependencies: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodBoolean]>>;
|
|
104
|
+
bundleDependencies: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodBoolean]>>;
|
|
105
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>]>>>;
|
|
106
|
+
funding: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
107
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
108
|
+
corporation: "corporation";
|
|
109
|
+
foundation: "foundation";
|
|
110
|
+
github: "github";
|
|
111
|
+
individual: "individual";
|
|
112
|
+
opencollective: "opencollective";
|
|
113
|
+
patreon: "patreon";
|
|
114
|
+
}>, z.ZodString]>>;
|
|
211
115
|
url: z.ZodString;
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
116
|
+
}, z.core.$strict>, z.ZodString]>>, z.ZodUnion<readonly [z.ZodObject<{
|
|
117
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
118
|
+
corporation: "corporation";
|
|
119
|
+
foundation: "foundation";
|
|
120
|
+
github: "github";
|
|
121
|
+
individual: "individual";
|
|
122
|
+
opencollective: "opencollective";
|
|
123
|
+
patreon: "patreon";
|
|
124
|
+
}>, z.ZodString]>>;
|
|
220
125
|
url: z.ZodString;
|
|
221
|
-
},
|
|
222
|
-
url: string;
|
|
223
|
-
type?: string | undefined;
|
|
224
|
-
}, {
|
|
225
|
-
url: string;
|
|
226
|
-
type?: string | undefined;
|
|
227
|
-
}>, z.ZodString]>]>>;
|
|
126
|
+
}, z.core.$strict>, z.ZodString]>]>>;
|
|
228
127
|
module: z.ZodOptional<z.ZodString>;
|
|
229
|
-
esnext: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
230
|
-
browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>]>>;
|
|
231
|
-
sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString
|
|
128
|
+
esnext: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
129
|
+
browser: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>]>>;
|
|
130
|
+
sideEffects: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodBoolean]>>;
|
|
232
131
|
engines: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
233
132
|
node: z.ZodOptional<z.ZodString>;
|
|
234
133
|
npm: z.ZodOptional<z.ZodString>;
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
134
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
135
|
+
os: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
136
|
+
"!aix": "!aix";
|
|
137
|
+
"!darwin": "!darwin";
|
|
138
|
+
"!freebsd": "!freebsd";
|
|
139
|
+
"!linux": "!linux";
|
|
140
|
+
"!openbsd": "!openbsd";
|
|
141
|
+
"!sunos": "!sunos";
|
|
142
|
+
"!win32": "!win32";
|
|
143
|
+
aix: "aix";
|
|
144
|
+
darwin: "darwin";
|
|
145
|
+
freebsd: "freebsd";
|
|
146
|
+
linux: "linux";
|
|
147
|
+
openbsd: "openbsd";
|
|
148
|
+
sunos: "sunos";
|
|
149
|
+
win32: "win32";
|
|
150
|
+
}>, z.ZodString]>>>;
|
|
151
|
+
cpu: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
152
|
+
"!arm": "!arm";
|
|
153
|
+
"!arm64": "!arm64";
|
|
154
|
+
"!ia32": "!ia32";
|
|
155
|
+
"!mips": "!mips";
|
|
156
|
+
"!mipsel": "!mipsel";
|
|
157
|
+
"!ppc": "!ppc";
|
|
158
|
+
"!ppc64": "!ppc64";
|
|
159
|
+
"!s390": "!s390";
|
|
160
|
+
"!s390x": "!s390x";
|
|
161
|
+
"!x32": "!x32";
|
|
162
|
+
"!x64": "!x64";
|
|
163
|
+
arm: "arm";
|
|
164
|
+
arm64: "arm64";
|
|
165
|
+
ia32: "ia32";
|
|
166
|
+
mips: "mips";
|
|
167
|
+
mipsel: "mipsel";
|
|
168
|
+
ppc: "ppc";
|
|
169
|
+
ppc64: "ppc64";
|
|
170
|
+
s390: "s390";
|
|
171
|
+
s390x: "s390x";
|
|
172
|
+
x32: "x32";
|
|
173
|
+
x64: "x64";
|
|
174
|
+
}>, z.ZodString]>>>;
|
|
244
175
|
private: z.ZodOptional<z.ZodBoolean>;
|
|
245
176
|
publishConfig: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
246
|
-
access: z.ZodOptional<z.ZodEnum<
|
|
177
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
public: "public";
|
|
179
|
+
restricted: "restricted";
|
|
180
|
+
}>>;
|
|
247
181
|
registry: z.ZodOptional<z.ZodString>;
|
|
248
182
|
tag: z.ZodOptional<z.ZodString>;
|
|
249
|
-
},
|
|
250
|
-
access?: "public" | "restricted" | undefined;
|
|
251
|
-
registry?: string | undefined;
|
|
252
|
-
tag?: string | undefined;
|
|
253
|
-
}, {
|
|
254
|
-
access?: "public" | "restricted" | undefined;
|
|
255
|
-
registry?: string | undefined;
|
|
256
|
-
tag?: string | undefined;
|
|
257
|
-
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
183
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
258
184
|
preferGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
-
workspaces: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString
|
|
260
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString
|
|
261
|
-
nohoist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
262
|
-
},
|
|
263
|
-
packages?: string[] | undefined;
|
|
264
|
-
nohoist?: string[] | undefined;
|
|
265
|
-
}, {
|
|
266
|
-
packages?: string[] | undefined;
|
|
267
|
-
nohoist?: string[] | undefined;
|
|
268
|
-
}>]>>;
|
|
185
|
+
workspaces: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
186
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
187
|
+
nohoist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
+
}, z.core.$strict>]>>;
|
|
269
189
|
flat: z.ZodOptional<z.ZodBoolean>;
|
|
270
190
|
resolutions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
271
191
|
types: z.ZodOptional<z.ZodString>;
|
|
272
192
|
typings: z.ZodOptional<z.ZodString>;
|
|
273
193
|
packageManager: z.ZodOptional<z.ZodString>;
|
|
274
194
|
source: z.ZodOptional<z.ZodString>;
|
|
275
|
-
},
|
|
276
|
-
flat?: boolean | undefined;
|
|
277
|
-
type?: "commonjs" | "module" | undefined;
|
|
278
|
-
name?: string | undefined;
|
|
279
|
-
bin?: string | Record<string, string> | undefined;
|
|
280
|
-
man?: string | string[] | undefined;
|
|
281
|
-
version?: string | undefined;
|
|
282
|
-
browser?: string | Record<string, string | false> | undefined;
|
|
283
|
-
description?: string | undefined;
|
|
284
|
-
keywords?: string[] | undefined;
|
|
285
|
-
homepage?: string | undefined;
|
|
286
|
-
bugs?: string | {
|
|
287
|
-
url?: string | undefined;
|
|
288
|
-
email?: string | undefined;
|
|
289
|
-
} | undefined;
|
|
290
|
-
license?: string | undefined;
|
|
291
|
-
author?: string | {
|
|
292
|
-
name: string;
|
|
293
|
-
url?: string | undefined;
|
|
294
|
-
email?: string | undefined;
|
|
295
|
-
} | undefined;
|
|
296
|
-
contributors?: (string | {
|
|
297
|
-
name: string;
|
|
298
|
-
url?: string | undefined;
|
|
299
|
-
email?: string | undefined;
|
|
300
|
-
})[] | undefined;
|
|
301
|
-
maintainers?: (string | {
|
|
302
|
-
name: string;
|
|
303
|
-
url?: string | undefined;
|
|
304
|
-
email?: string | undefined;
|
|
305
|
-
})[] | undefined;
|
|
306
|
-
files?: string[] | undefined;
|
|
307
|
-
module?: string | undefined;
|
|
308
|
-
main?: string | undefined;
|
|
309
|
-
exports?: PackageJsonExports | undefined;
|
|
310
|
-
directories?: {
|
|
311
|
-
bin?: string | undefined;
|
|
312
|
-
doc?: string | undefined;
|
|
313
|
-
example?: string | undefined;
|
|
314
|
-
lib?: string | undefined;
|
|
315
|
-
man?: string | undefined;
|
|
316
|
-
v?: string | undefined;
|
|
317
|
-
} | undefined;
|
|
318
|
-
repository?: string | {
|
|
319
|
-
type: string;
|
|
320
|
-
url: string;
|
|
321
|
-
directory?: string | undefined;
|
|
322
|
-
} | undefined;
|
|
323
|
-
scripts?: (Record<string, string> & {
|
|
324
|
-
prepublish?: string | undefined;
|
|
325
|
-
prepare?: string | undefined;
|
|
326
|
-
prepublishOnly?: string | undefined;
|
|
327
|
-
prepack?: string | undefined;
|
|
328
|
-
postpack?: string | undefined;
|
|
329
|
-
publish?: string | undefined;
|
|
330
|
-
postpublish?: string | undefined;
|
|
331
|
-
preinstall?: string | undefined;
|
|
332
|
-
install?: string | undefined;
|
|
333
|
-
postinstall?: string | undefined;
|
|
334
|
-
preuninstall?: string | undefined;
|
|
335
|
-
uninstall?: string | undefined;
|
|
336
|
-
postuninstall?: string | undefined;
|
|
337
|
-
preversion?: string | undefined;
|
|
338
|
-
version?: string | undefined;
|
|
339
|
-
postversion?: string | undefined;
|
|
340
|
-
pretest?: string | undefined;
|
|
341
|
-
test?: string | undefined;
|
|
342
|
-
posttest?: string | undefined;
|
|
343
|
-
prestop?: string | undefined;
|
|
344
|
-
stop?: string | undefined;
|
|
345
|
-
poststop?: string | undefined;
|
|
346
|
-
prestart?: string | undefined;
|
|
347
|
-
start?: string | undefined;
|
|
348
|
-
poststart?: string | undefined;
|
|
349
|
-
prerestart?: string | undefined;
|
|
350
|
-
restart?: string | undefined;
|
|
351
|
-
postrestart?: string | undefined;
|
|
352
|
-
}) | undefined;
|
|
353
|
-
config?: Record<string, unknown> | undefined;
|
|
354
|
-
dependencies?: Record<string, string> | undefined;
|
|
355
|
-
devDependencies?: Record<string, string> | undefined;
|
|
356
|
-
optionalDependencies?: Record<string, string> | undefined;
|
|
357
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
358
|
-
peerDependenciesMeta?: Record<string, {
|
|
359
|
-
optional: boolean;
|
|
360
|
-
}> | undefined;
|
|
361
|
-
bundledDependencies?: boolean | string[] | undefined;
|
|
362
|
-
bundleDependencies?: boolean | string[] | undefined;
|
|
363
|
-
overrides?: Record<string, string | Record<string, string | Record<string, unknown>>> | undefined;
|
|
364
|
-
funding?: string | {
|
|
365
|
-
url: string;
|
|
366
|
-
type?: string | undefined;
|
|
367
|
-
} | (string | {
|
|
368
|
-
url: string;
|
|
369
|
-
type?: string | undefined;
|
|
370
|
-
})[] | undefined;
|
|
371
|
-
esnext?: string | Record<string, string> | undefined;
|
|
372
|
-
sideEffects?: boolean | string[] | undefined;
|
|
373
|
-
engines?: ({
|
|
374
|
-
node?: string | undefined;
|
|
375
|
-
npm?: string | undefined;
|
|
376
|
-
} & Record<string, string>) | undefined;
|
|
377
|
-
os?: string[] | undefined;
|
|
378
|
-
cpu?: string[] | undefined;
|
|
379
|
-
private?: boolean | undefined;
|
|
380
|
-
publishConfig?: ({
|
|
381
|
-
access?: "public" | "restricted" | undefined;
|
|
382
|
-
registry?: string | undefined;
|
|
383
|
-
tag?: string | undefined;
|
|
384
|
-
} & Record<string, unknown>) | undefined;
|
|
385
|
-
preferGlobal?: boolean | undefined;
|
|
386
|
-
workspaces?: string[] | {
|
|
387
|
-
packages?: string[] | undefined;
|
|
388
|
-
nohoist?: string[] | undefined;
|
|
389
|
-
} | undefined;
|
|
390
|
-
resolutions?: Record<string, string> | undefined;
|
|
391
|
-
types?: string | undefined;
|
|
392
|
-
typings?: string | undefined;
|
|
393
|
-
packageManager?: string | undefined;
|
|
394
|
-
source?: string | undefined;
|
|
395
|
-
}, {
|
|
396
|
-
flat?: boolean | undefined;
|
|
397
|
-
type?: "commonjs" | "module" | undefined;
|
|
398
|
-
name?: string | undefined;
|
|
399
|
-
bin?: string | Record<string, string> | undefined;
|
|
400
|
-
man?: string | string[] | undefined;
|
|
401
|
-
version?: string | undefined;
|
|
402
|
-
browser?: string | Record<string, string | false> | undefined;
|
|
403
|
-
description?: string | undefined;
|
|
404
|
-
keywords?: string[] | undefined;
|
|
405
|
-
homepage?: string | undefined;
|
|
406
|
-
bugs?: string | {
|
|
407
|
-
url?: string | undefined;
|
|
408
|
-
email?: string | undefined;
|
|
409
|
-
} | undefined;
|
|
410
|
-
license?: string | undefined;
|
|
411
|
-
author?: string | {
|
|
412
|
-
name: string;
|
|
413
|
-
url?: string | undefined;
|
|
414
|
-
email?: string | undefined;
|
|
415
|
-
} | undefined;
|
|
416
|
-
contributors?: (string | {
|
|
417
|
-
name: string;
|
|
418
|
-
url?: string | undefined;
|
|
419
|
-
email?: string | undefined;
|
|
420
|
-
})[] | undefined;
|
|
421
|
-
maintainers?: (string | {
|
|
422
|
-
name: string;
|
|
423
|
-
url?: string | undefined;
|
|
424
|
-
email?: string | undefined;
|
|
425
|
-
})[] | undefined;
|
|
426
|
-
files?: string[] | undefined;
|
|
427
|
-
module?: string | undefined;
|
|
428
|
-
main?: string | undefined;
|
|
429
|
-
exports?: PackageJsonExports | undefined;
|
|
430
|
-
directories?: {
|
|
431
|
-
bin?: string | undefined;
|
|
432
|
-
doc?: string | undefined;
|
|
433
|
-
example?: string | undefined;
|
|
434
|
-
lib?: string | undefined;
|
|
435
|
-
man?: string | undefined;
|
|
436
|
-
v?: string | undefined;
|
|
437
|
-
} | undefined;
|
|
438
|
-
repository?: string | {
|
|
439
|
-
type: string;
|
|
440
|
-
url: string;
|
|
441
|
-
directory?: string | undefined;
|
|
442
|
-
} | undefined;
|
|
443
|
-
scripts?: (Record<string, string> & {
|
|
444
|
-
prepublish?: string | undefined;
|
|
445
|
-
prepare?: string | undefined;
|
|
446
|
-
prepublishOnly?: string | undefined;
|
|
447
|
-
prepack?: string | undefined;
|
|
448
|
-
postpack?: string | undefined;
|
|
449
|
-
publish?: string | undefined;
|
|
450
|
-
postpublish?: string | undefined;
|
|
451
|
-
preinstall?: string | undefined;
|
|
452
|
-
install?: string | undefined;
|
|
453
|
-
postinstall?: string | undefined;
|
|
454
|
-
preuninstall?: string | undefined;
|
|
455
|
-
uninstall?: string | undefined;
|
|
456
|
-
postuninstall?: string | undefined;
|
|
457
|
-
preversion?: string | undefined;
|
|
458
|
-
version?: string | undefined;
|
|
459
|
-
postversion?: string | undefined;
|
|
460
|
-
pretest?: string | undefined;
|
|
461
|
-
test?: string | undefined;
|
|
462
|
-
posttest?: string | undefined;
|
|
463
|
-
prestop?: string | undefined;
|
|
464
|
-
stop?: string | undefined;
|
|
465
|
-
poststop?: string | undefined;
|
|
466
|
-
prestart?: string | undefined;
|
|
467
|
-
start?: string | undefined;
|
|
468
|
-
poststart?: string | undefined;
|
|
469
|
-
prerestart?: string | undefined;
|
|
470
|
-
restart?: string | undefined;
|
|
471
|
-
postrestart?: string | undefined;
|
|
472
|
-
}) | undefined;
|
|
473
|
-
config?: Record<string, unknown> | undefined;
|
|
474
|
-
dependencies?: Record<string, string> | undefined;
|
|
475
|
-
devDependencies?: Record<string, string> | undefined;
|
|
476
|
-
optionalDependencies?: Record<string, string> | undefined;
|
|
477
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
478
|
-
peerDependenciesMeta?: Record<string, {
|
|
479
|
-
optional: boolean;
|
|
480
|
-
}> | undefined;
|
|
481
|
-
bundledDependencies?: boolean | string[] | undefined;
|
|
482
|
-
bundleDependencies?: boolean | string[] | undefined;
|
|
483
|
-
overrides?: Record<string, string | Record<string, string | Record<string, unknown>>> | undefined;
|
|
484
|
-
funding?: string | {
|
|
485
|
-
url: string;
|
|
486
|
-
type?: string | undefined;
|
|
487
|
-
} | (string | {
|
|
488
|
-
url: string;
|
|
489
|
-
type?: string | undefined;
|
|
490
|
-
})[] | undefined;
|
|
491
|
-
esnext?: string | Record<string, string> | undefined;
|
|
492
|
-
sideEffects?: boolean | string[] | undefined;
|
|
493
|
-
engines?: ({
|
|
494
|
-
node?: string | undefined;
|
|
495
|
-
npm?: string | undefined;
|
|
496
|
-
} & Record<string, string>) | undefined;
|
|
497
|
-
os?: string[] | undefined;
|
|
498
|
-
cpu?: string[] | undefined;
|
|
499
|
-
private?: boolean | undefined;
|
|
500
|
-
publishConfig?: ({
|
|
501
|
-
access?: "public" | "restricted" | undefined;
|
|
502
|
-
registry?: string | undefined;
|
|
503
|
-
tag?: string | undefined;
|
|
504
|
-
} & Record<string, unknown>) | undefined;
|
|
505
|
-
preferGlobal?: boolean | undefined;
|
|
506
|
-
workspaces?: string[] | {
|
|
507
|
-
packages?: string[] | undefined;
|
|
508
|
-
nohoist?: string[] | undefined;
|
|
509
|
-
} | undefined;
|
|
510
|
-
resolutions?: Record<string, string> | undefined;
|
|
511
|
-
types?: string | undefined;
|
|
512
|
-
typings?: string | undefined;
|
|
513
|
-
packageManager?: string | undefined;
|
|
514
|
-
source?: string | undefined;
|
|
515
|
-
}>;
|
|
195
|
+
}, z.core.$strip>;
|
|
516
196
|
export type PackageJson = z.infer<typeof packageJsonSchema>;
|
|
517
197
|
export {};
|