@ms-cloudpack/api-server 0.13.4 → 0.14.1

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.
Files changed (45) hide show
  1. package/lib/apis/ensurePackageBundled.d.ts +580 -196
  2. package/lib/apis/ensurePackageBundled.d.ts.map +1 -1
  3. package/lib/apis/ensurePackageBundled.js +48 -40
  4. package/lib/apis/ensurePackageBundled.js.map +1 -1
  5. package/lib/apis/index.d.ts +3 -2
  6. package/lib/apis/index.d.ts.map +1 -1
  7. package/lib/apis/index.js +2 -2
  8. package/lib/apis/index.js.map +1 -1
  9. package/lib/apis/syncDownload.d.ts +19 -4
  10. package/lib/apis/syncDownload.d.ts.map +1 -1
  11. package/lib/apis/syncDownload.js +28 -5
  12. package/lib/apis/syncDownload.js.map +1 -1
  13. package/lib/apis/syncUpload.d.ts +18 -4
  14. package/lib/apis/syncUpload.d.ts.map +1 -1
  15. package/lib/apis/syncUpload.js +39 -24
  16. package/lib/apis/syncUpload.js.map +1 -1
  17. package/lib/apis.d.ts +3 -0
  18. package/lib/apis.d.ts.map +1 -0
  19. package/lib/apis.js +2 -0
  20. package/lib/apis.js.map +1 -0
  21. package/lib/performance/markers.d.ts +13 -0
  22. package/lib/performance/markers.d.ts.map +1 -0
  23. package/lib/performance/markers.js +15 -0
  24. package/lib/performance/markers.js.map +1 -0
  25. package/lib/trpc/createAppRouter.d.ts +356 -300
  26. package/lib/trpc/createAppRouter.d.ts.map +1 -1
  27. package/lib/trpc/createCloudpackServer.d.ts +74 -46
  28. package/lib/trpc/createCloudpackServer.d.ts.map +1 -1
  29. package/lib/tsdoc-metadata.json +1 -1
  30. package/lib/types/TaskMessage.d.ts +17 -17
  31. package/lib/types/TaskMessage.d.ts.map +1 -1
  32. package/lib/types/TaskMessage.js +1 -4
  33. package/lib/types/TaskMessage.js.map +1 -1
  34. package/lib/types/TaskMessageLocation.d.ts +2 -2
  35. package/lib/types/TaskResponse.d.ts +50 -50
  36. package/lib/types/TaskResult.d.ts +38 -38
  37. package/lib/utilities/ensureFieldsExist.d.ts +1 -1
  38. package/lib/utilities/ensureFieldsExist.d.ts.map +1 -1
  39. package/lib/utilities/ensureFieldsExist.js +1 -1
  40. package/lib/utilities/ensureFieldsExist.js.map +1 -1
  41. package/lib/utilities/getPackagesToSync.d.ts +12 -0
  42. package/lib/utilities/getPackagesToSync.d.ts.map +1 -0
  43. package/lib/utilities/getPackagesToSync.js +20 -0
  44. package/lib/utilities/getPackagesToSync.js.map +1 -0
  45. package/package.json +6 -6
@@ -2,7 +2,7 @@ import z from 'zod';
2
2
  export declare const ZodTaskResult: z.ZodObject<{
3
3
  errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4
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">]>]>]>>;
5
+ type: z.ZodOptional<z.ZodString>;
6
6
  text: z.ZodString;
7
7
  location: z.ZodOptional<z.ZodObject<{
8
8
  file: z.ZodString;
@@ -12,16 +12,16 @@ export declare const ZodTaskResult: z.ZodObject<{
12
12
  lineText: z.ZodOptional<z.ZodString>;
13
13
  suggestion: z.ZodOptional<z.ZodString>;
14
14
  }, "strip", z.ZodTypeAny, {
15
+ file: string;
15
16
  line: number;
16
17
  column: number;
17
- file: string;
18
18
  length?: number | undefined;
19
19
  lineText?: string | undefined;
20
20
  suggestion?: string | undefined;
21
21
  }, {
22
+ file: string;
22
23
  line: number;
23
24
  column: number;
24
- file: string;
25
25
  length?: number | undefined;
26
26
  lineText?: string | undefined;
27
27
  suggestion?: string | undefined;
@@ -36,16 +36,16 @@ export declare const ZodTaskResult: z.ZodObject<{
36
36
  lineText: z.ZodOptional<z.ZodString>;
37
37
  suggestion: z.ZodOptional<z.ZodString>;
38
38
  }, "strip", z.ZodTypeAny, {
39
+ file: string;
39
40
  line: number;
40
41
  column: number;
41
- file: string;
42
42
  length?: number | undefined;
43
43
  lineText?: string | undefined;
44
44
  suggestion?: string | undefined;
45
45
  }, {
46
+ file: string;
46
47
  line: number;
47
48
  column: number;
48
- file: string;
49
49
  length?: number | undefined;
50
50
  lineText?: string | undefined;
51
51
  suggestion?: string | undefined;
@@ -53,9 +53,9 @@ export declare const ZodTaskResult: z.ZodObject<{
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  text: string;
55
55
  location?: {
56
+ file: string;
56
57
  line: number;
57
58
  column: number;
58
- file: string;
59
59
  length?: number | undefined;
60
60
  lineText?: string | undefined;
61
61
  suggestion?: string | undefined;
@@ -63,9 +63,9 @@ export declare const ZodTaskResult: z.ZodObject<{
63
63
  }, {
64
64
  text: string;
65
65
  location?: {
66
+ file: string;
66
67
  line: number;
67
68
  column: number;
68
- file: string;
69
69
  length?: number | undefined;
70
70
  lineText?: string | undefined;
71
71
  suggestion?: string | undefined;
@@ -74,11 +74,11 @@ export declare const ZodTaskResult: z.ZodObject<{
74
74
  }, "strip", z.ZodTypeAny, {
75
75
  text: string;
76
76
  pluginName?: string | undefined;
77
- type?: "invalid-input" | "input-relative" | "no-entries" | "entry-absolute" | undefined;
77
+ type?: string | undefined;
78
78
  location?: {
79
+ file: string;
79
80
  line: number;
80
81
  column: number;
81
- file: string;
82
82
  length?: number | undefined;
83
83
  lineText?: string | undefined;
84
84
  suggestion?: string | undefined;
@@ -86,9 +86,9 @@ export declare const ZodTaskResult: z.ZodObject<{
86
86
  notes?: {
87
87
  text: string;
88
88
  location?: {
89
+ file: string;
89
90
  line: number;
90
91
  column: number;
91
- file: string;
92
92
  length?: number | undefined;
93
93
  lineText?: string | undefined;
94
94
  suggestion?: string | undefined;
@@ -97,11 +97,11 @@ export declare const ZodTaskResult: z.ZodObject<{
97
97
  }, {
98
98
  text: string;
99
99
  pluginName?: string | undefined;
100
- type?: "invalid-input" | "input-relative" | "no-entries" | "entry-absolute" | undefined;
100
+ type?: string | undefined;
101
101
  location?: {
102
+ file: string;
102
103
  line: number;
103
104
  column: number;
104
- file: string;
105
105
  length?: number | undefined;
106
106
  lineText?: string | undefined;
107
107
  suggestion?: string | undefined;
@@ -109,9 +109,9 @@ export declare const ZodTaskResult: z.ZodObject<{
109
109
  notes?: {
110
110
  text: string;
111
111
  location?: {
112
+ file: string;
112
113
  line: number;
113
114
  column: number;
114
- file: string;
115
115
  length?: number | undefined;
116
116
  lineText?: string | undefined;
117
117
  suggestion?: string | undefined;
@@ -120,7 +120,7 @@ export declare const ZodTaskResult: z.ZodObject<{
120
120
  }>, "many">>;
121
121
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
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">]>]>]>>;
123
+ type: z.ZodOptional<z.ZodString>;
124
124
  text: z.ZodString;
125
125
  location: z.ZodOptional<z.ZodObject<{
126
126
  file: z.ZodString;
@@ -130,16 +130,16 @@ export declare const ZodTaskResult: z.ZodObject<{
130
130
  lineText: z.ZodOptional<z.ZodString>;
131
131
  suggestion: z.ZodOptional<z.ZodString>;
132
132
  }, "strip", z.ZodTypeAny, {
133
+ file: string;
133
134
  line: number;
134
135
  column: number;
135
- file: string;
136
136
  length?: number | undefined;
137
137
  lineText?: string | undefined;
138
138
  suggestion?: string | undefined;
139
139
  }, {
140
+ file: string;
140
141
  line: number;
141
142
  column: number;
142
- file: string;
143
143
  length?: number | undefined;
144
144
  lineText?: string | undefined;
145
145
  suggestion?: string | undefined;
@@ -154,16 +154,16 @@ export declare const ZodTaskResult: z.ZodObject<{
154
154
  lineText: z.ZodOptional<z.ZodString>;
155
155
  suggestion: z.ZodOptional<z.ZodString>;
156
156
  }, "strip", z.ZodTypeAny, {
157
+ file: string;
157
158
  line: number;
158
159
  column: number;
159
- file: string;
160
160
  length?: number | undefined;
161
161
  lineText?: string | undefined;
162
162
  suggestion?: string | undefined;
163
163
  }, {
164
+ file: string;
164
165
  line: number;
165
166
  column: number;
166
- file: string;
167
167
  length?: number | undefined;
168
168
  lineText?: string | undefined;
169
169
  suggestion?: string | undefined;
@@ -171,9 +171,9 @@ export declare const ZodTaskResult: z.ZodObject<{
171
171
  }, "strip", z.ZodTypeAny, {
172
172
  text: string;
173
173
  location?: {
174
+ file: string;
174
175
  line: number;
175
176
  column: number;
176
- file: string;
177
177
  length?: number | undefined;
178
178
  lineText?: string | undefined;
179
179
  suggestion?: string | undefined;
@@ -181,9 +181,9 @@ export declare const ZodTaskResult: z.ZodObject<{
181
181
  }, {
182
182
  text: string;
183
183
  location?: {
184
+ file: string;
184
185
  line: number;
185
186
  column: number;
186
- file: string;
187
187
  length?: number | undefined;
188
188
  lineText?: string | undefined;
189
189
  suggestion?: string | undefined;
@@ -192,11 +192,11 @@ export declare const ZodTaskResult: z.ZodObject<{
192
192
  }, "strip", z.ZodTypeAny, {
193
193
  text: string;
194
194
  pluginName?: string | undefined;
195
- type?: "invalid-input" | "input-relative" | "no-entries" | "entry-absolute" | undefined;
195
+ type?: string | undefined;
196
196
  location?: {
197
+ file: string;
197
198
  line: number;
198
199
  column: number;
199
- file: string;
200
200
  length?: number | undefined;
201
201
  lineText?: string | undefined;
202
202
  suggestion?: string | undefined;
@@ -204,9 +204,9 @@ export declare const ZodTaskResult: z.ZodObject<{
204
204
  notes?: {
205
205
  text: string;
206
206
  location?: {
207
+ file: string;
207
208
  line: number;
208
209
  column: number;
209
- file: string;
210
210
  length?: number | undefined;
211
211
  lineText?: string | undefined;
212
212
  suggestion?: string | undefined;
@@ -215,11 +215,11 @@ export declare const ZodTaskResult: z.ZodObject<{
215
215
  }, {
216
216
  text: string;
217
217
  pluginName?: string | undefined;
218
- type?: "invalid-input" | "input-relative" | "no-entries" | "entry-absolute" | undefined;
218
+ type?: string | undefined;
219
219
  location?: {
220
+ file: string;
220
221
  line: number;
221
222
  column: number;
222
- file: string;
223
223
  length?: number | undefined;
224
224
  lineText?: string | undefined;
225
225
  suggestion?: string | undefined;
@@ -227,9 +227,9 @@ export declare const ZodTaskResult: z.ZodObject<{
227
227
  notes?: {
228
228
  text: string;
229
229
  location?: {
230
+ file: string;
230
231
  line: number;
231
232
  column: number;
232
- file: string;
233
233
  length?: number | undefined;
234
234
  lineText?: string | undefined;
235
235
  suggestion?: string | undefined;
@@ -240,11 +240,11 @@ export declare const ZodTaskResult: z.ZodObject<{
240
240
  errors?: {
241
241
  text: string;
242
242
  pluginName?: string | undefined;
243
- type?: "invalid-input" | "input-relative" | "no-entries" | "entry-absolute" | undefined;
243
+ type?: string | undefined;
244
244
  location?: {
245
+ file: string;
245
246
  line: number;
246
247
  column: number;
247
- file: string;
248
248
  length?: number | undefined;
249
249
  lineText?: string | undefined;
250
250
  suggestion?: string | undefined;
@@ -252,9 +252,9 @@ export declare const ZodTaskResult: z.ZodObject<{
252
252
  notes?: {
253
253
  text: string;
254
254
  location?: {
255
+ file: string;
255
256
  line: number;
256
257
  column: number;
257
- file: string;
258
258
  length?: number | undefined;
259
259
  lineText?: string | undefined;
260
260
  suggestion?: string | undefined;
@@ -264,11 +264,11 @@ export declare const ZodTaskResult: z.ZodObject<{
264
264
  warnings?: {
265
265
  text: string;
266
266
  pluginName?: string | undefined;
267
- type?: "invalid-input" | "input-relative" | "no-entries" | "entry-absolute" | undefined;
267
+ type?: string | undefined;
268
268
  location?: {
269
+ file: string;
269
270
  line: number;
270
271
  column: number;
271
- file: string;
272
272
  length?: number | undefined;
273
273
  lineText?: string | undefined;
274
274
  suggestion?: string | undefined;
@@ -276,9 +276,9 @@ export declare const ZodTaskResult: z.ZodObject<{
276
276
  notes?: {
277
277
  text: string;
278
278
  location?: {
279
+ file: string;
279
280
  line: number;
280
281
  column: number;
281
- file: string;
282
282
  length?: number | undefined;
283
283
  lineText?: string | undefined;
284
284
  suggestion?: string | undefined;
@@ -289,11 +289,11 @@ export declare const ZodTaskResult: z.ZodObject<{
289
289
  errors?: {
290
290
  text: string;
291
291
  pluginName?: string | undefined;
292
- type?: "invalid-input" | "input-relative" | "no-entries" | "entry-absolute" | undefined;
292
+ type?: string | undefined;
293
293
  location?: {
294
+ file: string;
294
295
  line: number;
295
296
  column: number;
296
- file: string;
297
297
  length?: number | undefined;
298
298
  lineText?: string | undefined;
299
299
  suggestion?: string | undefined;
@@ -301,9 +301,9 @@ export declare const ZodTaskResult: z.ZodObject<{
301
301
  notes?: {
302
302
  text: string;
303
303
  location?: {
304
+ file: string;
304
305
  line: number;
305
306
  column: number;
306
- file: string;
307
307
  length?: number | undefined;
308
308
  lineText?: string | undefined;
309
309
  suggestion?: string | undefined;
@@ -313,11 +313,11 @@ export declare const ZodTaskResult: z.ZodObject<{
313
313
  warnings?: {
314
314
  text: string;
315
315
  pluginName?: string | undefined;
316
- type?: "invalid-input" | "input-relative" | "no-entries" | "entry-absolute" | undefined;
316
+ type?: string | undefined;
317
317
  location?: {
318
+ file: string;
318
319
  line: number;
319
320
  column: number;
320
- file: string;
321
321
  length?: number | undefined;
322
322
  lineText?: string | undefined;
323
323
  suggestion?: string | undefined;
@@ -325,9 +325,9 @@ export declare const ZodTaskResult: z.ZodObject<{
325
325
  notes?: {
326
326
  text: string;
327
327
  location?: {
328
+ file: string;
328
329
  line: number;
329
330
  column: number;
330
- file: string;
331
331
  length?: number | undefined;
332
332
  lineText?: string | undefined;
333
333
  suggestion?: string | undefined;
@@ -4,5 +4,5 @@
4
4
  * @param fields - The names of the fields to validate.
5
5
  * @returns - The object with the fields.
6
6
  */
7
- export declare function ensureFieldsExist<T extends object, TKey extends keyof T>(input: T | undefined, ...fields: TKey[]): Omit<T, TKey> & Required<Pick<T, TKey>>;
7
+ export declare function ensureFieldsExist<T extends object, TKey extends keyof T>(input: T | undefined, fields: TKey[]): Omit<T, TKey> & Required<Pick<T, TKey>>;
8
8
  //# sourceMappingURL=ensureFieldsExist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ensureFieldsExist.d.ts","sourceRoot":"","sources":["../../src/utilities/ensureFieldsExist.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,2CAYhH"}
1
+ {"version":3,"file":"ensureFieldsExist.d.ts","sourceRoot":"","sources":["../../src/utilities/ensureFieldsExist.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,2CAY7G"}
@@ -4,7 +4,7 @@
4
4
  * @param fields - The names of the fields to validate.
5
5
  * @returns - The object with the fields.
6
6
  */
7
- export function ensureFieldsExist(input, ...fields) {
7
+ export function ensureFieldsExist(input, fields) {
8
8
  if (!input) {
9
9
  throw new Error('Input is missing.');
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ensureFieldsExist.js","sourceRoot":"","sources":["../../src/utilities/ensureFieldsExist.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAyC,KAAoB,EAAE,GAAG,MAAc;IAC/G,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;KACtC;IAED,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,GAAG,KAAe,cAAc,CAAC,CAAC;SACnD;KACF;IAED,OAAO,KAAgD,CAAC;AAC1D,CAAC","sourcesContent":["/**\n * Ensures that the given optional fields are present on the object. Throws an error if they are not.\n * @param input - The object to validate.\n * @param fields - The names of the fields to validate.\n * @returns - The object with the fields.\n */\nexport function ensureFieldsExist<T extends object, TKey extends keyof T>(input: T | undefined, ...fields: TKey[]) {\n if (!input) {\n throw new Error('Input is missing.');\n }\n\n for (const field of fields) {\n if (!input[field]) {\n throw new Error(`${field as string} is missing.`);\n }\n }\n\n return input as Omit<T, TKey> & Required<Pick<T, TKey>>;\n}\n"]}
1
+ {"version":3,"file":"ensureFieldsExist.js","sourceRoot":"","sources":["../../src/utilities/ensureFieldsExist.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAyC,KAAoB,EAAE,MAAc;IAC5G,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;KACtC;IAED,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,GAAG,KAAe,cAAc,CAAC,CAAC;SACnD;KACF;IAED,OAAO,KAAgD,CAAC;AAC1D,CAAC","sourcesContent":["/**\n * Ensures that the given optional fields are present on the object. Throws an error if they are not.\n * @param input - The object to validate.\n * @param fields - The names of the fields to validate.\n * @returns - The object with the fields.\n */\nexport function ensureFieldsExist<T extends object, TKey extends keyof T>(input: T | undefined, fields: TKey[]) {\n if (!input) {\n throw new Error('Input is missing.');\n }\n\n for (const field of fields) {\n if (!input[field]) {\n throw new Error(`${field as string} is missing.`);\n }\n }\n\n return input as Omit<T, TKey> & Required<Pick<T, TKey>>;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
2
+ import { type ResolveMap } from '@ms-cloudpack/package-utilities';
3
+ export interface PackageToSync {
4
+ path: string;
5
+ folderName: string;
6
+ friendlyName: string;
7
+ }
8
+ export declare function getPackagesToSync(options: {
9
+ packages: PackageDefinitionsCache;
10
+ resolveMap: ResolveMap;
11
+ }): Promise<PackageToSync[]>;
12
+ //# sourceMappingURL=getPackagesToSync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPackagesToSync.d.ts","sourceRoot":"","sources":["../../src/utilities/getPackagesToSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAuB,KAAK,UAAU,EAAwB,MAAM,iCAAiC,CAAC;AAG7G,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAsB,iBAAiB,CAAC,OAAO,EAAE;IAC/C,QAAQ,EAAE,uBAAuB,CAAC;IAClC,UAAU,EAAE,UAAU,CAAC;CACxB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAqB3B"}
@@ -0,0 +1,20 @@
1
+ import { findResolveMapEntry } from '@ms-cloudpack/package-utilities';
2
+ import { getBundleDetails } from './getBundleDetails.js';
3
+ export async function getPackagesToSync(options) {
4
+ const { packages, resolveMap } = options;
5
+ const list = [];
6
+ const packageEntries = Object.keys(resolveMap)
7
+ .map((packageName) => findResolveMapEntry({
8
+ packageName,
9
+ resolveMap,
10
+ }))
11
+ .filter((item) => item);
12
+ for (const { path: packagePath, name, version } of packageEntries) {
13
+ const details = await getBundleDetails({ packagePath }, { packages });
14
+ if (details.isExternal) {
15
+ list.push({ ...details.outputLocation, friendlyName: `${name}@${version}` });
16
+ }
17
+ }
18
+ return list;
19
+ }
20
+ //# sourceMappingURL=getPackagesToSync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPackagesToSync.js","sourceRoot":"","sources":["../../src/utilities/getPackagesToSync.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAyC,MAAM,iCAAiC,CAAC;AAC7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQzD,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,OAGvC;IACC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IACzC,MAAM,IAAI,GAAoB,EAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;SAC3C,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CACnB,mBAAmB,CAAC;QAClB,WAAW;QACX,UAAU;KACX,CAAC,CACH;SACA,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAsB,CAAC;IAE/C,KAAK,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,cAAc,EAAE;QACjE,MAAM,OAAO,GAAG,MAAM,gBAAgB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QACtE,IAAI,OAAO,CAAC,UAAU,EAAE;YACtB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,YAAY,EAAE,GAAG,IAAI,IAAI,OAAO,EAAE,EAAE,CAAC,CAAC;SAC9E;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport { findResolveMapEntry, type ResolveMap, type ResolveMapEntry } from '@ms-cloudpack/package-utilities';\nimport { getBundleDetails } from './getBundleDetails.js';\n\nexport interface PackageToSync {\n path: string;\n folderName: string;\n friendlyName: string;\n}\n\nexport async function getPackagesToSync(options: {\n packages: PackageDefinitionsCache;\n resolveMap: ResolveMap;\n}): Promise<PackageToSync[]> {\n const { packages, resolveMap } = options;\n const list: PackageToSync[] = [];\n\n const packageEntries = Object.keys(resolveMap)\n .map((packageName) =>\n findResolveMapEntry({\n packageName,\n resolveMap,\n }),\n )\n .filter((item) => item) as ResolveMapEntry[];\n\n for (const { path: packagePath, name, version } of packageEntries) {\n const details = await getBundleDetails({ packagePath }, { packages });\n if (details.isExternal) {\n list.push({ ...details.outputLocation, friendlyName: `${name}@${version}` });\n }\n }\n\n return list;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/api-server",
3
- "version": "0.13.4",
3
+ "version": "0.14.1",
4
4
  "description": "An implementation of the API server that does interacts with a task scheduler.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,19 +25,19 @@
25
25
  "@lage-run/scheduler": "^1.0.0",
26
26
  "@lage-run/target-graph": "^0.8.6",
27
27
  "@lage-run/hasher": "^1.0.0",
28
- "@ms-cloudpack/bundler": "^0.14.8",
29
- "@ms-cloudpack/bundler-types": "^0.17.0",
30
- "@ms-cloudpack/config": "^0.11.1",
28
+ "@ms-cloudpack/bundler": "^0.14.9",
29
+ "@ms-cloudpack/bundler-types": "^0.18.0",
30
+ "@ms-cloudpack/config": "^0.11.2",
31
31
  "@ms-cloudpack/create-express-app": "^1.3.9",
32
32
  "@ms-cloudpack/data-bus": "^0.4.0",
33
33
  "@ms-cloudpack/file-watcher": "^0.0.3",
34
34
  "@ms-cloudpack/json-utilities": "^0.0.7",
35
- "@ms-cloudpack/package-utilities": "^5.1.1",
35
+ "@ms-cloudpack/package-utilities": "^5.1.2",
36
36
  "@ms-cloudpack/path-string-parsing": "^1.0.3",
37
37
  "@ms-cloudpack/path-utilities": "^2.3.2",
38
38
  "@ms-cloudpack/task-reporter": "^0.7.2",
39
39
  "@ms-cloudpack/telemetry": "^0.3.6",
40
- "@ms-cloudpack/remote-cache": "^0.1.3",
40
+ "@ms-cloudpack/remote-cache": "^0.1.4",
41
41
  "@trpc/client": "^10.21.1",
42
42
  "@trpc/server": "^10.21.1",
43
43
  "chokidar": "^3.5.3",