@ms-cloudpack/api-server 0.7.1 → 0.8.0
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/lib/apis/addPackageOverride.d.ts +64 -2
- package/lib/apis/addPackageOverride.d.ts.map +1 -1
- package/lib/apis/bus.d.ts +64 -2
- package/lib/apis/bus.d.ts.map +1 -1
- package/lib/apis/openCodeEditor.d.ts +64 -2
- package/lib/apis/openCodeEditor.d.ts.map +1 -1
- package/lib/apis/openConfigEditor.d.ts +64 -2
- package/lib/apis/openConfigEditor.d.ts.map +1 -1
- package/lib/apis/openFilePath.d.ts +64 -2
- package/lib/apis/openFilePath.d.ts.map +1 -1
- package/lib/apis/reportMetric.d.ts +66 -4
- package/lib/apis/reportMetric.d.ts.map +1 -1
- package/lib/apis/restartAllTasks.d.ts +64 -2
- package/lib/apis/restartAllTasks.d.ts.map +1 -1
- package/lib/apis/restartTask.d.ts +64 -2
- package/lib/apis/restartTask.d.ts.map +1 -1
- package/lib/apis/validatePackageOverride.d.ts +64 -2
- package/lib/apis/validatePackageOverride.d.ts.map +1 -1
- package/lib/appRouter.d.ts +610 -21
- package/lib/appRouter.d.ts.map +1 -1
- package/lib/createCloudpackServer.d.ts +1 -1
- package/lib/createContextFactory.d.ts +33 -2
- package/lib/createContextFactory.d.ts.map +1 -1
- package/lib/index.d.ts +6 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/lib/trpc.d.ts +96 -3
- package/lib/trpc.d.ts.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib/types/BundleResultExtended.d.ts +23 -0
- package/lib/types/BundleResultExtended.d.ts.map +1 -0
- package/lib/types/BundleResultExtended.js +2 -0
- package/lib/types/BundleResultExtended.js.map +1 -0
- package/lib/types/TaskDescription.d.ts +133 -7
- package/lib/types/TaskDescription.d.ts.map +1 -1
- package/lib/types/TaskDescription.js +14 -1
- package/lib/types/TaskDescription.js.map +1 -1
- package/lib/types/TaskEndDescription.d.ts +84 -5
- package/lib/types/TaskEndDescription.d.ts.map +1 -1
- package/lib/types/TaskEndDescription.js +7 -1
- package/lib/types/TaskEndDescription.js.map +1 -1
- package/lib/types/TaskError.d.ts +18 -2
- package/lib/types/TaskError.d.ts.map +1 -1
- package/lib/types/TaskError.js +9 -1
- package/lib/types/TaskError.js.map +1 -1
- package/lib/types/TaskMessage.d.ts +166 -0
- package/lib/types/TaskMessage.d.ts.map +1 -0
- package/lib/types/TaskMessage.js +17 -0
- package/lib/types/TaskMessage.js.map +1 -0
- package/lib/types/TaskMessageLocation.d.ts +25 -0
- package/lib/types/TaskMessageLocation.d.ts.map +1 -0
- package/lib/types/TaskMessageLocation.js +10 -0
- package/lib/types/TaskMessageLocation.js.map +1 -0
- package/lib/types/TaskResponse.d.ts +471 -0
- package/lib/types/TaskResponse.d.ts.map +1 -0
- package/lib/types/TaskResponse.js +8 -0
- package/lib/types/TaskResponse.js.map +1 -0
- package/lib/types/TaskResult.d.ts +339 -0
- package/lib/types/TaskResult.d.ts.map +1 -0
- package/lib/types/TaskResult.js +7 -0
- package/lib/types/TaskResult.js.map +1 -0
- package/lib/types/TaskStartDescription.d.ts +17 -5
- package/lib/types/TaskStartDescription.d.ts.map +1 -1
- package/lib/types/TaskStartDescription.js +7 -1
- package/lib/types/TaskStartDescription.js.map +1 -1
- package/lib/types/TaskStats.d.ts +22 -0
- package/lib/types/TaskStats.d.ts.map +1 -0
- package/lib/types/TaskStats.js +9 -0
- package/lib/types/TaskStats.js.map +1 -0
- package/lib/types/Timing.d.ts +23 -0
- package/lib/types/Timing.d.ts.map +1 -0
- package/lib/types/Timing.js +12 -0
- package/lib/types/Timing.js.map +1 -0
- package/lib/types/Timings.d.ts +20 -0
- package/lib/types/Timings.d.ts.map +1 -0
- package/lib/types/Timings.js +5 -0
- package/lib/types/Timings.js.map +1 -0
- package/lib/utilities/addOverride.d.ts.map +1 -1
- package/lib/utilities/addOverride.js +9 -20
- package/lib/utilities/addOverride.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskResult: z.ZodObject<{
|
|
3
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4
|
+
pluginName: z.ZodOptional<z.ZodString>;
|
|
5
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"invalid-input">, z.ZodUnion<[z.ZodLiteral<"no-entries">, z.ZodUnion<[z.ZodLiteral<"input-relative">, z.ZodLiteral<"entry-absolute">]>]>]>>;
|
|
6
|
+
text: z.ZodString;
|
|
7
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
file: z.ZodString;
|
|
9
|
+
line: z.ZodNumber;
|
|
10
|
+
column: z.ZodNumber;
|
|
11
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
lineText: z.ZodOptional<z.ZodString>;
|
|
13
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
line: number;
|
|
16
|
+
column: number;
|
|
17
|
+
file: string;
|
|
18
|
+
length?: number | undefined;
|
|
19
|
+
lineText?: string | undefined;
|
|
20
|
+
suggestion?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
line: number;
|
|
23
|
+
column: number;
|
|
24
|
+
file: string;
|
|
25
|
+
length?: number | undefined;
|
|
26
|
+
lineText?: string | undefined;
|
|
27
|
+
suggestion?: string | undefined;
|
|
28
|
+
}>>;
|
|
29
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
30
|
+
text: z.ZodString;
|
|
31
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
file: z.ZodString;
|
|
33
|
+
line: z.ZodNumber;
|
|
34
|
+
column: z.ZodNumber;
|
|
35
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
lineText: z.ZodOptional<z.ZodString>;
|
|
37
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
line: number;
|
|
40
|
+
column: number;
|
|
41
|
+
file: string;
|
|
42
|
+
length?: number | undefined;
|
|
43
|
+
lineText?: string | undefined;
|
|
44
|
+
suggestion?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
line: number;
|
|
47
|
+
column: number;
|
|
48
|
+
file: string;
|
|
49
|
+
length?: number | undefined;
|
|
50
|
+
lineText?: string | undefined;
|
|
51
|
+
suggestion?: string | undefined;
|
|
52
|
+
}>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
text: string;
|
|
55
|
+
location?: {
|
|
56
|
+
line: number;
|
|
57
|
+
column: number;
|
|
58
|
+
file: string;
|
|
59
|
+
length?: number | undefined;
|
|
60
|
+
lineText?: string | undefined;
|
|
61
|
+
suggestion?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
text: string;
|
|
65
|
+
location?: {
|
|
66
|
+
line: number;
|
|
67
|
+
column: number;
|
|
68
|
+
file: string;
|
|
69
|
+
length?: number | undefined;
|
|
70
|
+
lineText?: string | undefined;
|
|
71
|
+
suggestion?: string | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
}>, "many">>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
text: string;
|
|
76
|
+
pluginName?: string | undefined;
|
|
77
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
78
|
+
location?: {
|
|
79
|
+
line: number;
|
|
80
|
+
column: number;
|
|
81
|
+
file: string;
|
|
82
|
+
length?: number | undefined;
|
|
83
|
+
lineText?: string | undefined;
|
|
84
|
+
suggestion?: string | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
notes?: {
|
|
87
|
+
text: string;
|
|
88
|
+
location?: {
|
|
89
|
+
line: number;
|
|
90
|
+
column: number;
|
|
91
|
+
file: string;
|
|
92
|
+
length?: number | undefined;
|
|
93
|
+
lineText?: string | undefined;
|
|
94
|
+
suggestion?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
text: string;
|
|
99
|
+
pluginName?: string | undefined;
|
|
100
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
101
|
+
location?: {
|
|
102
|
+
line: number;
|
|
103
|
+
column: number;
|
|
104
|
+
file: string;
|
|
105
|
+
length?: number | undefined;
|
|
106
|
+
lineText?: string | undefined;
|
|
107
|
+
suggestion?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
notes?: {
|
|
110
|
+
text: string;
|
|
111
|
+
location?: {
|
|
112
|
+
line: number;
|
|
113
|
+
column: number;
|
|
114
|
+
file: string;
|
|
115
|
+
length?: number | undefined;
|
|
116
|
+
lineText?: string | undefined;
|
|
117
|
+
suggestion?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
}[] | undefined;
|
|
120
|
+
}>, "many">>;
|
|
121
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
122
|
+
pluginName: z.ZodOptional<z.ZodString>;
|
|
123
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"invalid-input">, z.ZodUnion<[z.ZodLiteral<"no-entries">, z.ZodUnion<[z.ZodLiteral<"input-relative">, z.ZodLiteral<"entry-absolute">]>]>]>>;
|
|
124
|
+
text: z.ZodString;
|
|
125
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
file: z.ZodString;
|
|
127
|
+
line: z.ZodNumber;
|
|
128
|
+
column: z.ZodNumber;
|
|
129
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
lineText: z.ZodOptional<z.ZodString>;
|
|
131
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
line: number;
|
|
134
|
+
column: number;
|
|
135
|
+
file: string;
|
|
136
|
+
length?: number | undefined;
|
|
137
|
+
lineText?: string | undefined;
|
|
138
|
+
suggestion?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
line: number;
|
|
141
|
+
column: number;
|
|
142
|
+
file: string;
|
|
143
|
+
length?: number | undefined;
|
|
144
|
+
lineText?: string | undefined;
|
|
145
|
+
suggestion?: string | undefined;
|
|
146
|
+
}>>;
|
|
147
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
+
text: z.ZodString;
|
|
149
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
file: z.ZodString;
|
|
151
|
+
line: z.ZodNumber;
|
|
152
|
+
column: z.ZodNumber;
|
|
153
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
lineText: z.ZodOptional<z.ZodString>;
|
|
155
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
line: number;
|
|
158
|
+
column: number;
|
|
159
|
+
file: string;
|
|
160
|
+
length?: number | undefined;
|
|
161
|
+
lineText?: string | undefined;
|
|
162
|
+
suggestion?: string | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
line: number;
|
|
165
|
+
column: number;
|
|
166
|
+
file: string;
|
|
167
|
+
length?: number | undefined;
|
|
168
|
+
lineText?: string | undefined;
|
|
169
|
+
suggestion?: string | undefined;
|
|
170
|
+
}>>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
text: string;
|
|
173
|
+
location?: {
|
|
174
|
+
line: number;
|
|
175
|
+
column: number;
|
|
176
|
+
file: string;
|
|
177
|
+
length?: number | undefined;
|
|
178
|
+
lineText?: string | undefined;
|
|
179
|
+
suggestion?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
text: string;
|
|
183
|
+
location?: {
|
|
184
|
+
line: number;
|
|
185
|
+
column: number;
|
|
186
|
+
file: string;
|
|
187
|
+
length?: number | undefined;
|
|
188
|
+
lineText?: string | undefined;
|
|
189
|
+
suggestion?: string | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
}>, "many">>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
text: string;
|
|
194
|
+
pluginName?: string | undefined;
|
|
195
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
196
|
+
location?: {
|
|
197
|
+
line: number;
|
|
198
|
+
column: number;
|
|
199
|
+
file: string;
|
|
200
|
+
length?: number | undefined;
|
|
201
|
+
lineText?: string | undefined;
|
|
202
|
+
suggestion?: string | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
notes?: {
|
|
205
|
+
text: string;
|
|
206
|
+
location?: {
|
|
207
|
+
line: number;
|
|
208
|
+
column: number;
|
|
209
|
+
file: string;
|
|
210
|
+
length?: number | undefined;
|
|
211
|
+
lineText?: string | undefined;
|
|
212
|
+
suggestion?: string | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
}[] | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
text: string;
|
|
217
|
+
pluginName?: string | undefined;
|
|
218
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
219
|
+
location?: {
|
|
220
|
+
line: number;
|
|
221
|
+
column: number;
|
|
222
|
+
file: string;
|
|
223
|
+
length?: number | undefined;
|
|
224
|
+
lineText?: string | undefined;
|
|
225
|
+
suggestion?: string | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
notes?: {
|
|
228
|
+
text: string;
|
|
229
|
+
location?: {
|
|
230
|
+
line: number;
|
|
231
|
+
column: number;
|
|
232
|
+
file: string;
|
|
233
|
+
length?: number | undefined;
|
|
234
|
+
lineText?: string | undefined;
|
|
235
|
+
suggestion?: string | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
}>, "many">>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
errors?: {
|
|
241
|
+
text: string;
|
|
242
|
+
pluginName?: string | undefined;
|
|
243
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
244
|
+
location?: {
|
|
245
|
+
line: number;
|
|
246
|
+
column: number;
|
|
247
|
+
file: string;
|
|
248
|
+
length?: number | undefined;
|
|
249
|
+
lineText?: string | undefined;
|
|
250
|
+
suggestion?: string | undefined;
|
|
251
|
+
} | undefined;
|
|
252
|
+
notes?: {
|
|
253
|
+
text: string;
|
|
254
|
+
location?: {
|
|
255
|
+
line: number;
|
|
256
|
+
column: number;
|
|
257
|
+
file: string;
|
|
258
|
+
length?: number | undefined;
|
|
259
|
+
lineText?: string | undefined;
|
|
260
|
+
suggestion?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
}[] | undefined;
|
|
263
|
+
}[] | undefined;
|
|
264
|
+
warnings?: {
|
|
265
|
+
text: string;
|
|
266
|
+
pluginName?: string | undefined;
|
|
267
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
268
|
+
location?: {
|
|
269
|
+
line: number;
|
|
270
|
+
column: number;
|
|
271
|
+
file: string;
|
|
272
|
+
length?: number | undefined;
|
|
273
|
+
lineText?: string | undefined;
|
|
274
|
+
suggestion?: string | undefined;
|
|
275
|
+
} | undefined;
|
|
276
|
+
notes?: {
|
|
277
|
+
text: string;
|
|
278
|
+
location?: {
|
|
279
|
+
line: number;
|
|
280
|
+
column: number;
|
|
281
|
+
file: string;
|
|
282
|
+
length?: number | undefined;
|
|
283
|
+
lineText?: string | undefined;
|
|
284
|
+
suggestion?: string | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
}[] | undefined;
|
|
287
|
+
}[] | undefined;
|
|
288
|
+
}, {
|
|
289
|
+
errors?: {
|
|
290
|
+
text: string;
|
|
291
|
+
pluginName?: string | undefined;
|
|
292
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
293
|
+
location?: {
|
|
294
|
+
line: number;
|
|
295
|
+
column: number;
|
|
296
|
+
file: string;
|
|
297
|
+
length?: number | undefined;
|
|
298
|
+
lineText?: string | undefined;
|
|
299
|
+
suggestion?: string | undefined;
|
|
300
|
+
} | undefined;
|
|
301
|
+
notes?: {
|
|
302
|
+
text: string;
|
|
303
|
+
location?: {
|
|
304
|
+
line: number;
|
|
305
|
+
column: number;
|
|
306
|
+
file: string;
|
|
307
|
+
length?: number | undefined;
|
|
308
|
+
lineText?: string | undefined;
|
|
309
|
+
suggestion?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
}[] | undefined;
|
|
312
|
+
}[] | undefined;
|
|
313
|
+
warnings?: {
|
|
314
|
+
text: string;
|
|
315
|
+
pluginName?: string | undefined;
|
|
316
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
317
|
+
location?: {
|
|
318
|
+
line: number;
|
|
319
|
+
column: number;
|
|
320
|
+
file: string;
|
|
321
|
+
length?: number | undefined;
|
|
322
|
+
lineText?: string | undefined;
|
|
323
|
+
suggestion?: string | undefined;
|
|
324
|
+
} | undefined;
|
|
325
|
+
notes?: {
|
|
326
|
+
text: string;
|
|
327
|
+
location?: {
|
|
328
|
+
line: number;
|
|
329
|
+
column: number;
|
|
330
|
+
file: string;
|
|
331
|
+
length?: number | undefined;
|
|
332
|
+
lineText?: string | undefined;
|
|
333
|
+
suggestion?: string | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
}[] | undefined;
|
|
336
|
+
}[] | undefined;
|
|
337
|
+
}>;
|
|
338
|
+
export type TaskResult = z.infer<typeof ZodTaskResult>;
|
|
339
|
+
//# sourceMappingURL=TaskResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskResult.d.ts","sourceRoot":"","sources":["../../src/types/TaskResult.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskResult.js","sourceRoot":"","sources":["../../src/types/TaskResult.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTaskMessage } from './TaskMessage.js';\n\nexport const ZodTaskResult = z.object({\n errors: z.array(ZodTaskMessage).optional(),\n warnings: z.array(ZodTaskMessage).optional(),\n});\n\nexport type TaskResult = z.infer<typeof ZodTaskResult>;\n"]}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskStartDescription: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5
|
+
inputPath: z.ZodOptional<z.ZodString>;
|
|
6
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
2
8
|
id: string;
|
|
3
|
-
name?: string;
|
|
4
|
-
inputPath?: string;
|
|
5
|
-
outputPath?: string;
|
|
6
|
-
}
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
inputPath?: string | undefined;
|
|
11
|
+
outputPath?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
id: string;
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
inputPath?: string | undefined;
|
|
16
|
+
outputPath?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type TaskStartDescription = z.infer<typeof ZodTaskStartDescription>;
|
|
7
19
|
//# sourceMappingURL=TaskStartDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStartDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskStartDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const ZodTaskStartDescription = z.object({
|
|
3
|
+
id: z.string(),
|
|
4
|
+
name: z.string().optional(),
|
|
5
|
+
inputPath: z.string().optional(),
|
|
6
|
+
outputPath: z.string().optional(),
|
|
7
|
+
});
|
|
2
8
|
//# sourceMappingURL=TaskStartDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStartDescription.js","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"TaskStartDescription.js","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTaskStartDescription = z.object({\n id: z.string(),\n name: z.string().optional(),\n inputPath: z.string().optional(),\n outputPath: z.string().optional(),\n});\n\nexport type TaskStartDescription = z.infer<typeof ZodTaskStartDescription>;\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskStats: z.ZodObject<{
|
|
3
|
+
status: z.ZodUnion<[z.ZodLiteral<"idle">, z.ZodLiteral<"pending">]>;
|
|
4
|
+
remainingTasks: z.ZodNumber;
|
|
5
|
+
totalTasks: z.ZodNumber;
|
|
6
|
+
totalErrors: z.ZodNumber;
|
|
7
|
+
totalWarnings: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
status: "idle" | "pending";
|
|
10
|
+
remainingTasks: number;
|
|
11
|
+
totalTasks: number;
|
|
12
|
+
totalErrors: number;
|
|
13
|
+
totalWarnings: number;
|
|
14
|
+
}, {
|
|
15
|
+
status: "idle" | "pending";
|
|
16
|
+
remainingTasks: number;
|
|
17
|
+
totalTasks: number;
|
|
18
|
+
totalErrors: number;
|
|
19
|
+
totalWarnings: number;
|
|
20
|
+
}>;
|
|
21
|
+
export type TaskStats = z.infer<typeof ZodTaskStats>;
|
|
22
|
+
//# sourceMappingURL=TaskStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskStats.d.ts","sourceRoot":"","sources":["../../src/types/TaskStats.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAMvB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const ZodTaskStats = z.object({
|
|
3
|
+
status: z.literal('idle').or(z.literal('pending')),
|
|
4
|
+
remainingTasks: z.number(),
|
|
5
|
+
totalTasks: z.number(),
|
|
6
|
+
totalErrors: z.number(),
|
|
7
|
+
totalWarnings: z.number(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=TaskStats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskStats.js","sourceRoot":"","sources":["../../src/types/TaskStats.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTaskStats = z.object({\n status: z.literal('idle').or(z.literal('pending')),\n remainingTasks: z.number(),\n totalTasks: z.number(),\n totalErrors: z.number(),\n totalWarnings: z.number(),\n});\n\nexport type TaskStats = z.infer<typeof ZodTaskStats>;\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTiming: z.ZodObject<{
|
|
3
|
+
/** Name of the timing */
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
/** Start time in milliseconds */
|
|
6
|
+
start: z.ZodNumber;
|
|
7
|
+
/** End time in milliseconds */
|
|
8
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
/** Exited prematurely. */
|
|
10
|
+
threwException: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
name: string;
|
|
13
|
+
start: number;
|
|
14
|
+
end?: number | undefined;
|
|
15
|
+
threwException?: boolean | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
name: string;
|
|
18
|
+
start: number;
|
|
19
|
+
end?: number | undefined;
|
|
20
|
+
threwException?: boolean | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export type Timing = z.infer<typeof ZodTiming>;
|
|
23
|
+
//# sourceMappingURL=Timing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timing.d.ts","sourceRoot":"","sources":["../../src/types/Timing.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,SAAS;IACpB,yBAAyB;;IAGzB,iCAAiC;;IAGjC,+BAA+B;;IAG/B,0BAA0B;;;;;;;;;;;;EAE1B,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const ZodTiming = z.object({
|
|
3
|
+
/** Name of the timing */
|
|
4
|
+
name: z.string(),
|
|
5
|
+
/** Start time in milliseconds */
|
|
6
|
+
start: z.number(),
|
|
7
|
+
/** End time in milliseconds */
|
|
8
|
+
end: z.number().optional(),
|
|
9
|
+
/** Exited prematurely. */
|
|
10
|
+
threwException: z.boolean().optional(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=Timing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timing.js","sourceRoot":"","sources":["../../src/types/Timing.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,yBAAyB;IACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAEhB,iCAAiC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IAEjB,+BAA+B;IAC/B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAE1B,0BAA0B;IAC1B,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTiming = z.object({\n /** Name of the timing */\n name: z.string(),\n\n /** Start time in milliseconds */\n start: z.number(),\n\n /** End time in milliseconds */\n end: z.number().optional(),\n\n /** Exited prematurely. */\n threwException: z.boolean().optional(),\n});\n\nexport type Timing = z.infer<typeof ZodTiming>;\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
/** Collection of timings. */
|
|
3
|
+
export declare const ZodTimings: z.ZodArray<z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
start: z.ZodNumber;
|
|
6
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
threwException: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
start: number;
|
|
11
|
+
end?: number | undefined;
|
|
12
|
+
threwException?: boolean | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
start: number;
|
|
16
|
+
end?: number | undefined;
|
|
17
|
+
threwException?: boolean | undefined;
|
|
18
|
+
}>, "many">;
|
|
19
|
+
export type Timings = z.infer<typeof ZodTimings>;
|
|
20
|
+
//# sourceMappingURL=Timings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timings.d.ts","sourceRoot":"","sources":["../../src/types/Timings.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,6BAA6B;AAC7B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;WAAqB,CAAC;AAE7C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timings.js","sourceRoot":"","sources":["../../src/types/Timings.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,6BAA6B;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTiming } from './Timing.js';\n\n/** Collection of timings. */\nexport const ZodTimings = z.array(ZodTiming);\n\nexport type Timings = z.infer<typeof ZodTimings>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addOverride.d.ts","sourceRoot":"","sources":["../../src/utilities/addOverride.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAG3E;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,EACD,OAAO,EAAE;IACP,QAAQ,EAAE,uBAAuB,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;CAClB,
|
|
1
|
+
{"version":3,"file":"addOverride.d.ts","sourceRoot":"","sources":["../../src/utilities/addOverride.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAG3E;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,EACD,OAAO,EAAE;IACP,QAAQ,EAAE,uBAAuB,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;CAClB,iBA0DF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { addExportsMapEntry, findResolveMapEntry, getExportsMap } from '@ms-cloudpack/package-utilities';
|
|
2
2
|
import { slash } from '@ms-cloudpack/path-string-parsing';
|
|
3
3
|
import { parseRequestInfo } from './parseRequestInfo.js';
|
|
4
|
-
import {
|
|
4
|
+
import { readUserConfig, writeUserConfig } from '@ms-cloudpack/config';
|
|
5
5
|
/**
|
|
6
6
|
* The addOverride method is triggered by a user action in the overlay, when we detect new usage of an import path
|
|
7
7
|
* that isn't recognized. When the user trigers this override, we write it to the cloudpack user config, rather
|
|
@@ -27,8 +27,8 @@ export async function addOverride(options, context) {
|
|
|
27
27
|
}
|
|
28
28
|
// Get current exports. We want to add an additional entry to what's there - not replace the default exports,
|
|
29
29
|
// so we need the full map for the package.
|
|
30
|
-
const exports = await getExportsMap({ packagePath: entry.path },
|
|
31
|
-
// Now add the exports entry.
|
|
30
|
+
const exports = await getExportsMap({ packagePath: entry.path }, context);
|
|
31
|
+
// Now add the single new exports entry.
|
|
32
32
|
await addExportsMapEntry({
|
|
33
33
|
exports,
|
|
34
34
|
packagePath: entry.path,
|
|
@@ -38,24 +38,13 @@ export async function addOverride(options, context) {
|
|
|
38
38
|
const config = await readUserConfig(session.appPath);
|
|
39
39
|
// Ensure packageSettings exist.
|
|
40
40
|
config.packageSettings ??= [];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
config.packageSettings.push({
|
|
42
|
+
match: {
|
|
43
|
+
name: packageName,
|
|
44
|
+
version: entry.version?.match(/^\d+\.\d+\.\d+(-[a-z0-9.-]+)?$/) ? `^${entry.version}` : undefined,
|
|
45
|
+
},
|
|
46
|
+
exports,
|
|
46
47
|
});
|
|
47
|
-
// Initialize a new one if needed.
|
|
48
|
-
if (!setting) {
|
|
49
|
-
setting = {
|
|
50
|
-
match: {
|
|
51
|
-
name: packageName,
|
|
52
|
-
version: entry.version?.match(/^\d+\.\d+\.\d+(-[a-z0-9.-]+)?$/) ? `^${entry.version}` : undefined,
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
config.packageSettings.push(setting);
|
|
56
|
-
}
|
|
57
|
-
// Update the exports.
|
|
58
|
-
setting.exports = exports;
|
|
59
48
|
// Write config.
|
|
60
49
|
await writeUserConfig(config, session.appPath);
|
|
61
50
|
console.debug(`Added override for "${packageName}" to "cloudpack.config.json".`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addOverride.js","sourceRoot":"","sources":["../../src/utilities/addOverride.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEzG,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"addOverride.js","sourceRoot":"","sources":["../../src/utilities/addOverride.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEzG,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvE;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,OAIC,EACD,OAGC;IAED,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IACvD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IACtC,IAAI,UAAU,GAAG,SAAS,CAAC;IAE3B,IAAI,SAAS,EAAE;QACb,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvD,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;QACrE,UAAU,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;KAChC;IAED,MAAM,KAAK,GAAG,mBAAmB,CAAC;QAChC,WAAW;QACX,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,UAAU;KACX,CAAC,CAAC;IAEH,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,OAAO,CAAC,KAAK,CAAC,oCAAoC,WAAW,kBAAkB,CAAC,CAAC;QACjF,OAAO;KACR;IAED,6GAA6G;IAC7G,2CAA2C;IAC3C,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAE1E,wCAAwC;IACxC,MAAM,kBAAkB,CACtB;QACE,OAAO;QACP,WAAW,EAAE,KAAK,CAAC,IAAI;QACvB,UAAU;KACX,EACD,EAAE,QAAQ,EAAE,CACb,CAAC;IAEF,sCAAsC;IACtC,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAErD,gCAAgC;IAChC,MAAM,CAAC,eAAe,KAAK,EAAE,CAAC;IAE9B,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC;QAC1B,KAAK,EAAE;YACL,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS;SAClG;QACD,OAAO;KACR,CAAC,CAAC;IAEH,gBAAgB;IAChB,MAAM,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/C,OAAO,CAAC,KAAK,CAAC,uBAAuB,WAAW,+BAA+B,CAAC,CAAC;IAEjF,2GAA2G;IAC3G,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import { addExportsMapEntry, findResolveMapEntry, getExportsMap } from '@ms-cloudpack/package-utilities';\nimport type { Session } from '../types/Session.js';\nimport { slash } from '@ms-cloudpack/path-string-parsing';\nimport { parseRequestInfo } from './parseRequestInfo.js';\nimport type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport { readUserConfig, writeUserConfig } from '@ms-cloudpack/config';\n\n/**\n * The addOverride method is triggered by a user action in the overlay, when we detect new usage of an import path\n * that isn't recognized. When the user trigers this override, we write it to the cloudpack user config, rather\n * than generated configs which could get \"reset\" on `init --reset`.\n */\nexport async function addOverride(\n options: {\n packageName: string;\n importPath: string;\n issuerUrl?: string;\n },\n context: {\n packages: PackageDefinitionsCache;\n session: Session;\n },\n) {\n const { packageName, importPath, issuerUrl } = options;\n const { session, packages } = context;\n let definition = undefined;\n\n if (issuerUrl) {\n const requestPath = slash(new URL(issuerUrl).pathname);\n const { packageName: name, version } = parseRequestInfo(requestPath);\n definition = { name, version };\n }\n\n const entry = findResolveMapEntry({\n packageName,\n resolveMap: session.resolveMap,\n definition,\n });\n\n if (entry === undefined) {\n console.error(`Could not find entry of package \"${packageName}\" in resolve map`);\n return;\n }\n\n // Get current exports. We want to add an additional entry to what's there - not replace the default exports,\n // so we need the full map for the package.\n const exports = await getExportsMap({ packagePath: entry.path }, context);\n\n // Now add the single new exports entry.\n await addExportsMapEntry(\n {\n exports,\n packagePath: entry.path,\n importPath,\n },\n { packages },\n );\n\n // Parse the user config if it exists.\n const config = await readUserConfig(session.appPath);\n\n // Ensure packageSettings exist.\n config.packageSettings ??= [];\n\n config.packageSettings.push({\n match: {\n name: packageName,\n version: entry.version?.match(/^\\d+\\.\\d+\\.\\d+(-[a-z0-9.-]+)?$/) ? `^${entry.version}` : undefined,\n },\n exports,\n });\n\n // Write config.\n await writeUserConfig(config, session.appPath);\n\n console.debug(`Added override for \"${packageName}\" to \"cloudpack.config.json\".`);\n\n // Instruct the package cache to reset, so that transforms can respect the modification to the exports map.\n packages.reset({ newConfig: config });\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/api-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "An implementation of the API server that does interacts with a task scheduler.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"@lage-run/target-graph": "^0.8.6",
|
|
19
19
|
"@lage-run/hasher": "^1.0.0",
|
|
20
20
|
"@ms-cloudpack/bundler-types": "^0.16.0",
|
|
21
|
-
"@ms-cloudpack/config": "^0.
|
|
21
|
+
"@ms-cloudpack/config": "^0.9.0",
|
|
22
22
|
"@ms-cloudpack/create-express-app": "^1.3.8",
|
|
23
23
|
"@ms-cloudpack/data-bus": "^0.3.1",
|
|
24
|
-
"@ms-cloudpack/package-utilities": "^5.0.
|
|
24
|
+
"@ms-cloudpack/package-utilities": "^5.0.1",
|
|
25
25
|
"@ms-cloudpack/path-string-parsing": "^1.0.3",
|
|
26
26
|
"@ms-cloudpack/task-reporter": "^0.6.0",
|
|
27
27
|
"@ms-cloudpack/telemetry": "^0.3.6",
|