@uniformdev/cli 19.89.0 → 19.90.1-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +132 -67
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -295,6 +295,7 @@ async function* paginateAsync(fetchPage, options) {
|
|
|
295
295
|
var defaultSyncConfiguration = {
|
|
296
296
|
entitiesConfig: {},
|
|
297
297
|
directory: "uniform-data",
|
|
298
|
+
allowEmptySource: false,
|
|
298
299
|
format: "yaml",
|
|
299
300
|
mode: "mirror"
|
|
300
301
|
};
|
|
@@ -810,7 +811,9 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
810
811
|
options.fileClient.get({ sourceId: hash }).catch(() => null),
|
|
811
812
|
options.fileClient.get({ sourceId: legacyHash }).catch(() => null)
|
|
812
813
|
]);
|
|
813
|
-
|
|
814
|
+
const file = fileAlreadyExistsChecks.find((check) => check !== null);
|
|
815
|
+
if (file) {
|
|
816
|
+
objectAsString = objectAsString.replaceAll(`"${url}"`, `"${file.url}"`);
|
|
814
817
|
return;
|
|
815
818
|
}
|
|
816
819
|
const localFileName = urlToFileName(url);
|
|
@@ -829,7 +832,7 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
829
832
|
}
|
|
830
833
|
const fileBuffer = await fsj.readAsync(expectedFilePath, "buffer");
|
|
831
834
|
if (!fileBuffer) {
|
|
832
|
-
console.warn(`Skipping file ${url} as we couldn't read it`);
|
|
835
|
+
console.warn(`Skipping file ${url} (${expectedFilePath}) as we couldn't read it`);
|
|
833
836
|
return;
|
|
834
837
|
}
|
|
835
838
|
const fileName = getFileNameFromUrl(url);
|
|
@@ -861,19 +864,19 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
861
864
|
}
|
|
862
865
|
});
|
|
863
866
|
if (!uploadResponse.ok) {
|
|
864
|
-
console.warn(`Failed to upload file ${url}`);
|
|
867
|
+
console.warn(`Failed to upload file ${url} (${expectedFilePath})`);
|
|
865
868
|
return;
|
|
866
869
|
}
|
|
867
870
|
const checkForFile = async () => {
|
|
868
|
-
const
|
|
869
|
-
if (!
|
|
871
|
+
const file2 = await options.fileClient.get({ id });
|
|
872
|
+
if (!file2 || file2.state !== FILE_READY_STATE || !file2.url) {
|
|
870
873
|
await new Promise((resolve2) => setTimeout(resolve2, 500));
|
|
871
874
|
return checkForFile();
|
|
872
875
|
}
|
|
873
|
-
return
|
|
876
|
+
return file2.url;
|
|
874
877
|
};
|
|
875
878
|
const abortTimeout = setTimeout(() => {
|
|
876
|
-
throw new Error(`Failed to upload file ${url} (upload timed out
|
|
879
|
+
throw new Error(`Failed to upload file ${url} (${expectedFilePath}) - upload timed out`);
|
|
877
880
|
}, 3e4);
|
|
878
881
|
const uploadedFileUrl = await checkForFile();
|
|
879
882
|
clearTimeout(abortTimeout);
|
|
@@ -1113,7 +1116,8 @@ var AssetPullModule = {
|
|
|
1113
1116
|
mode,
|
|
1114
1117
|
whatIf,
|
|
1115
1118
|
project: projectId,
|
|
1116
|
-
diff: diffMode
|
|
1119
|
+
diff: diffMode,
|
|
1120
|
+
allowEmptySource
|
|
1117
1121
|
}) => {
|
|
1118
1122
|
const fetch3 = nodeFetchProxy(proxy);
|
|
1119
1123
|
const client = new UncachedAssetClient3({
|
|
@@ -1162,7 +1166,7 @@ var AssetPullModule = {
|
|
|
1162
1166
|
target,
|
|
1163
1167
|
mode,
|
|
1164
1168
|
whatIf,
|
|
1165
|
-
allowEmptySource: true,
|
|
1169
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
1166
1170
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
1167
1171
|
onBeforeCompareObjects: async (sourceObject, targetObject) => {
|
|
1168
1172
|
var _a, _b;
|
|
@@ -1228,7 +1232,8 @@ var AssetPushModule = {
|
|
|
1228
1232
|
mode,
|
|
1229
1233
|
whatIf,
|
|
1230
1234
|
project: projectId,
|
|
1231
|
-
diff: diffMode
|
|
1235
|
+
diff: diffMode,
|
|
1236
|
+
allowEmptySource
|
|
1232
1237
|
}) => {
|
|
1233
1238
|
const fetch3 = nodeFetchProxy(proxy);
|
|
1234
1239
|
const client = new UncachedAssetClient4({
|
|
@@ -1260,6 +1265,7 @@ var AssetPushModule = {
|
|
|
1260
1265
|
target,
|
|
1261
1266
|
mode,
|
|
1262
1267
|
whatIf,
|
|
1268
|
+
allowEmptySource,
|
|
1263
1269
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
1264
1270
|
onBeforeCompareObjects: async (sourceObject, targetObject) => {
|
|
1265
1271
|
if (targetObject) {
|
|
@@ -1277,15 +1283,10 @@ var AssetPushModule = {
|
|
|
1277
1283
|
return sourceObjectWithNewFileUrls;
|
|
1278
1284
|
},
|
|
1279
1285
|
onBeforeWriteObject: async (sourceObject) => {
|
|
1280
|
-
const sourceObjectWithNewFileUrls = await
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
}),
|
|
1285
|
-
{
|
|
1286
|
-
fileClient
|
|
1287
|
-
}
|
|
1288
|
-
);
|
|
1286
|
+
const sourceObjectWithNewFileUrls = await extractAndUploadUniformFilesForObject(sourceObject, {
|
|
1287
|
+
directory,
|
|
1288
|
+
fileClient
|
|
1289
|
+
});
|
|
1289
1290
|
sourceObjectWithNewFileUrls.object = await updateAssetFileIdBasedOnUrl(
|
|
1290
1291
|
sourceObjectWithNewFileUrls.object,
|
|
1291
1292
|
{
|
|
@@ -1471,7 +1472,8 @@ var CategoryPullModule = {
|
|
|
1471
1472
|
mode,
|
|
1472
1473
|
whatIf,
|
|
1473
1474
|
project: projectId,
|
|
1474
|
-
diff: diffMode
|
|
1475
|
+
diff: diffMode,
|
|
1476
|
+
allowEmptySource
|
|
1475
1477
|
}) => {
|
|
1476
1478
|
const fetch3 = nodeFetchProxy(proxy);
|
|
1477
1479
|
const client = new UncachedCategoryClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -1502,7 +1504,7 @@ var CategoryPullModule = {
|
|
|
1502
1504
|
target,
|
|
1503
1505
|
mode,
|
|
1504
1506
|
whatIf,
|
|
1505
|
-
allowEmptySource: true,
|
|
1507
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
1506
1508
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
1507
1509
|
});
|
|
1508
1510
|
}
|
|
@@ -1544,7 +1546,8 @@ var CategoryPushModule = {
|
|
|
1544
1546
|
mode,
|
|
1545
1547
|
whatIf,
|
|
1546
1548
|
project: projectId,
|
|
1547
|
-
diff: diffMode
|
|
1549
|
+
diff: diffMode,
|
|
1550
|
+
allowEmptySource
|
|
1548
1551
|
}) => {
|
|
1549
1552
|
const fetch3 = nodeFetchProxy(proxy);
|
|
1550
1553
|
const client = new UncachedCategoryClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -1570,6 +1573,7 @@ var CategoryPushModule = {
|
|
|
1570
1573
|
target,
|
|
1571
1574
|
mode,
|
|
1572
1575
|
whatIf,
|
|
1576
|
+
allowEmptySource,
|
|
1573
1577
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
1574
1578
|
});
|
|
1575
1579
|
}
|
|
@@ -1777,7 +1781,8 @@ var ComponentPullModule = {
|
|
|
1777
1781
|
mode,
|
|
1778
1782
|
whatIf,
|
|
1779
1783
|
project: projectId,
|
|
1780
|
-
diff: diffMode
|
|
1784
|
+
diff: diffMode,
|
|
1785
|
+
allowEmptySource
|
|
1781
1786
|
}) => {
|
|
1782
1787
|
const fetch3 = nodeFetchProxy(proxy);
|
|
1783
1788
|
const client = new UncachedCanvasClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -1809,7 +1814,7 @@ var ComponentPullModule = {
|
|
|
1809
1814
|
target,
|
|
1810
1815
|
mode,
|
|
1811
1816
|
whatIf,
|
|
1812
|
-
allowEmptySource: true,
|
|
1817
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
1813
1818
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
1814
1819
|
});
|
|
1815
1820
|
}
|
|
@@ -1851,7 +1856,8 @@ var ComponentPushModule = {
|
|
|
1851
1856
|
mode,
|
|
1852
1857
|
whatIf,
|
|
1853
1858
|
project: projectId,
|
|
1854
|
-
diff: diffMode
|
|
1859
|
+
diff: diffMode,
|
|
1860
|
+
allowEmptySource
|
|
1855
1861
|
}) => {
|
|
1856
1862
|
const fetch3 = nodeFetchProxy(proxy);
|
|
1857
1863
|
const client = new UncachedCanvasClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -1878,6 +1884,7 @@ var ComponentPushModule = {
|
|
|
1878
1884
|
target,
|
|
1879
1885
|
mode,
|
|
1880
1886
|
whatIf,
|
|
1887
|
+
allowEmptySource,
|
|
1881
1888
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
1882
1889
|
});
|
|
1883
1890
|
}
|
|
@@ -2277,7 +2284,8 @@ var CompositionPullModule = {
|
|
|
2277
2284
|
whatIf,
|
|
2278
2285
|
state,
|
|
2279
2286
|
project: projectId,
|
|
2280
|
-
diff: diffMode
|
|
2287
|
+
diff: diffMode,
|
|
2288
|
+
allowEmptySource
|
|
2281
2289
|
}) => {
|
|
2282
2290
|
const fetch3 = nodeFetchProxy(proxy);
|
|
2283
2291
|
const client = new UncachedCanvasClient10({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -2309,7 +2317,7 @@ var CompositionPullModule = {
|
|
|
2309
2317
|
target,
|
|
2310
2318
|
mode,
|
|
2311
2319
|
whatIf,
|
|
2312
|
-
allowEmptySource: true,
|
|
2320
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
2313
2321
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
2314
2322
|
onBeforeCompareObjects: async (sourceObject, targetObject) => {
|
|
2315
2323
|
return replaceRemoteUrlsWithLocalReferences(sourceObject, targetObject, {
|
|
@@ -2378,7 +2386,8 @@ var CompositionPushModule = {
|
|
|
2378
2386
|
project: projectId,
|
|
2379
2387
|
onlyCompositions,
|
|
2380
2388
|
onlyPatterns,
|
|
2381
|
-
diff: diffMode
|
|
2389
|
+
diff: diffMode,
|
|
2390
|
+
allowEmptySource
|
|
2382
2391
|
}) => {
|
|
2383
2392
|
const fetch3 = nodeFetchProxy(proxy);
|
|
2384
2393
|
const client = new UncachedCanvasClient11({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -2405,6 +2414,7 @@ var CompositionPushModule = {
|
|
|
2405
2414
|
target,
|
|
2406
2415
|
mode,
|
|
2407
2416
|
whatIf,
|
|
2417
|
+
allowEmptySource,
|
|
2408
2418
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
2409
2419
|
onBeforeCompareObjects: async (sourceObject) => {
|
|
2410
2420
|
return swapOutUniformFileUrlsForTargetProject(sourceObject, {
|
|
@@ -2692,7 +2702,8 @@ var ContentTypePullModule = {
|
|
|
2692
2702
|
mode,
|
|
2693
2703
|
whatIf,
|
|
2694
2704
|
project: projectId,
|
|
2695
|
-
diff: diffMode
|
|
2705
|
+
diff: diffMode,
|
|
2706
|
+
allowEmptySource
|
|
2696
2707
|
}) => {
|
|
2697
2708
|
const fetch3 = nodeFetchProxy(proxy);
|
|
2698
2709
|
const client = new ContentClient3({
|
|
@@ -2729,7 +2740,7 @@ var ContentTypePullModule = {
|
|
|
2729
2740
|
target,
|
|
2730
2741
|
mode,
|
|
2731
2742
|
whatIf,
|
|
2732
|
-
allowEmptySource: true,
|
|
2743
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
2733
2744
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
2734
2745
|
});
|
|
2735
2746
|
}
|
|
@@ -2771,7 +2782,8 @@ var ContentTypePushModule = {
|
|
|
2771
2782
|
mode,
|
|
2772
2783
|
whatIf,
|
|
2773
2784
|
project: projectId,
|
|
2774
|
-
diff: diffMode
|
|
2785
|
+
diff: diffMode,
|
|
2786
|
+
allowEmptySource
|
|
2775
2787
|
}) => {
|
|
2776
2788
|
const fetch3 = nodeFetchProxy(proxy);
|
|
2777
2789
|
const client = new ContentClient4({
|
|
@@ -2803,6 +2815,7 @@ var ContentTypePushModule = {
|
|
|
2803
2815
|
target,
|
|
2804
2816
|
mode,
|
|
2805
2817
|
whatIf,
|
|
2818
|
+
allowEmptySource,
|
|
2806
2819
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
2807
2820
|
});
|
|
2808
2821
|
}
|
|
@@ -2984,7 +2997,8 @@ var DataTypePullModule = {
|
|
|
2984
2997
|
mode,
|
|
2985
2998
|
whatIf,
|
|
2986
2999
|
project: projectId,
|
|
2987
|
-
diff: diffMode
|
|
3000
|
+
diff: diffMode,
|
|
3001
|
+
allowEmptySource
|
|
2988
3002
|
}) => {
|
|
2989
3003
|
const fetch3 = nodeFetchProxy(proxy);
|
|
2990
3004
|
const client = new DataTypeClient3({
|
|
@@ -3021,7 +3035,7 @@ var DataTypePullModule = {
|
|
|
3021
3035
|
target,
|
|
3022
3036
|
mode,
|
|
3023
3037
|
whatIf,
|
|
3024
|
-
allowEmptySource: true,
|
|
3038
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
3025
3039
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
3026
3040
|
});
|
|
3027
3041
|
}
|
|
@@ -3063,7 +3077,8 @@ var DataTypePushModule = {
|
|
|
3063
3077
|
mode,
|
|
3064
3078
|
whatIf,
|
|
3065
3079
|
project: projectId,
|
|
3066
|
-
diff: diffMode
|
|
3080
|
+
diff: diffMode,
|
|
3081
|
+
allowEmptySource
|
|
3067
3082
|
}) => {
|
|
3068
3083
|
const fetch3 = nodeFetchProxy(proxy);
|
|
3069
3084
|
const client = new DataTypeClient4({
|
|
@@ -3095,6 +3110,7 @@ var DataTypePushModule = {
|
|
|
3095
3110
|
target,
|
|
3096
3111
|
mode,
|
|
3097
3112
|
whatIf,
|
|
3113
|
+
allowEmptySource,
|
|
3098
3114
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
3099
3115
|
});
|
|
3100
3116
|
}
|
|
@@ -3177,7 +3193,9 @@ var EntryGetModule = {
|
|
|
3177
3193
|
offset: 0,
|
|
3178
3194
|
limit: 1,
|
|
3179
3195
|
entryIDs: [id],
|
|
3180
|
-
skipOverridesResolution: true
|
|
3196
|
+
skipOverridesResolution: true,
|
|
3197
|
+
skipPatternResolution: true,
|
|
3198
|
+
skipDataResolution: true
|
|
3181
3199
|
});
|
|
3182
3200
|
if (res.entries.length !== 1) {
|
|
3183
3201
|
throw new Error(`Entry with ID ${id} not found`);
|
|
@@ -3195,7 +3213,13 @@ var EntryListModule = {
|
|
|
3195
3213
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
|
|
3196
3214
|
const fetch3 = nodeFetchProxy(proxy);
|
|
3197
3215
|
const client = new ContentClient8({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
|
|
3198
|
-
const res = await client.getEntries({
|
|
3216
|
+
const res = await client.getEntries({
|
|
3217
|
+
offset: 0,
|
|
3218
|
+
limit: 1e3,
|
|
3219
|
+
skipOverridesResolution: true,
|
|
3220
|
+
skipPatternResolution: true,
|
|
3221
|
+
skipDataResolution: true
|
|
3222
|
+
});
|
|
3199
3223
|
emitWithFormat(res.entries, format, filename);
|
|
3200
3224
|
}
|
|
3201
3225
|
};
|
|
@@ -3223,6 +3247,7 @@ function createEntryEngineDataSource({
|
|
|
3223
3247
|
limit: 1e3,
|
|
3224
3248
|
skipDataResolution: true,
|
|
3225
3249
|
skipOverridesResolution: true,
|
|
3250
|
+
skipPatternResolution: true,
|
|
3226
3251
|
state: stateId,
|
|
3227
3252
|
withComponentIDs: true
|
|
3228
3253
|
});
|
|
@@ -3292,7 +3317,8 @@ var EntryPullModule = {
|
|
|
3292
3317
|
whatIf,
|
|
3293
3318
|
state,
|
|
3294
3319
|
project: projectId,
|
|
3295
|
-
diff: diffMode
|
|
3320
|
+
diff: diffMode,
|
|
3321
|
+
allowEmptySource
|
|
3296
3322
|
}) => {
|
|
3297
3323
|
const fetch3 = nodeFetchProxy(proxy);
|
|
3298
3324
|
const client = new ContentClient10({
|
|
@@ -3330,7 +3356,7 @@ var EntryPullModule = {
|
|
|
3330
3356
|
target,
|
|
3331
3357
|
mode,
|
|
3332
3358
|
whatIf,
|
|
3333
|
-
allowEmptySource: true,
|
|
3359
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
3334
3360
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
3335
3361
|
onBeforeCompareObjects: async (sourceObject, targetObject) => {
|
|
3336
3362
|
return replaceRemoteUrlsWithLocalReferences(sourceObject, targetObject, {
|
|
@@ -3388,7 +3414,8 @@ var EntryPushModule = {
|
|
|
3388
3414
|
whatIf,
|
|
3389
3415
|
state,
|
|
3390
3416
|
project: projectId,
|
|
3391
|
-
diff: diffMode
|
|
3417
|
+
diff: diffMode,
|
|
3418
|
+
allowEmptySource
|
|
3392
3419
|
}) => {
|
|
3393
3420
|
const fetch3 = nodeFetchProxy(proxy);
|
|
3394
3421
|
const client = new ContentClient11({
|
|
@@ -3421,6 +3448,7 @@ var EntryPushModule = {
|
|
|
3421
3448
|
target,
|
|
3422
3449
|
mode,
|
|
3423
3450
|
whatIf,
|
|
3451
|
+
allowEmptySource,
|
|
3424
3452
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
3425
3453
|
onBeforeCompareObjects: async (sourceObject) => {
|
|
3426
3454
|
return swapOutUniformFileUrlsForTargetProject(sourceObject, {
|
|
@@ -3565,7 +3593,8 @@ var LocalePullModule = {
|
|
|
3565
3593
|
mode,
|
|
3566
3594
|
whatIf,
|
|
3567
3595
|
project: projectId,
|
|
3568
|
-
diff: diffMode
|
|
3596
|
+
diff: diffMode,
|
|
3597
|
+
allowEmptySource
|
|
3569
3598
|
}) => {
|
|
3570
3599
|
const fetch3 = nodeFetchProxy(proxy);
|
|
3571
3600
|
const client = new LocaleClient({
|
|
@@ -3602,7 +3631,7 @@ var LocalePullModule = {
|
|
|
3602
3631
|
target,
|
|
3603
3632
|
mode,
|
|
3604
3633
|
whatIf,
|
|
3605
|
-
allowEmptySource: true,
|
|
3634
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
3606
3635
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
3607
3636
|
});
|
|
3608
3637
|
}
|
|
@@ -3644,7 +3673,8 @@ var LocalePushModule = {
|
|
|
3644
3673
|
mode,
|
|
3645
3674
|
whatIf,
|
|
3646
3675
|
project: projectId,
|
|
3647
|
-
diff: diffMode
|
|
3676
|
+
diff: diffMode,
|
|
3677
|
+
allowEmptySource
|
|
3648
3678
|
}) => {
|
|
3649
3679
|
const fetch3 = nodeFetchProxy(proxy);
|
|
3650
3680
|
const client = new LocaleClient2({
|
|
@@ -3676,6 +3706,7 @@ var LocalePushModule = {
|
|
|
3676
3706
|
target,
|
|
3677
3707
|
mode,
|
|
3678
3708
|
whatIf,
|
|
3709
|
+
allowEmptySource,
|
|
3679
3710
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
3680
3711
|
});
|
|
3681
3712
|
}
|
|
@@ -4044,7 +4075,8 @@ var PromptPullModule = {
|
|
|
4044
4075
|
mode,
|
|
4045
4076
|
whatIf,
|
|
4046
4077
|
project: projectId,
|
|
4047
|
-
diff: diffMode
|
|
4078
|
+
diff: diffMode,
|
|
4079
|
+
allowEmptySource
|
|
4048
4080
|
}) => {
|
|
4049
4081
|
const fetch3 = nodeFetchProxy(proxy);
|
|
4050
4082
|
const client = new PromptClient3({
|
|
@@ -4081,7 +4113,7 @@ var PromptPullModule = {
|
|
|
4081
4113
|
target,
|
|
4082
4114
|
mode,
|
|
4083
4115
|
whatIf,
|
|
4084
|
-
allowEmptySource: true,
|
|
4116
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
4085
4117
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
4086
4118
|
});
|
|
4087
4119
|
}
|
|
@@ -4125,7 +4157,8 @@ var PromptPushModule = {
|
|
|
4125
4157
|
mode,
|
|
4126
4158
|
whatIf,
|
|
4127
4159
|
project: projectId,
|
|
4128
|
-
diff: diffMode
|
|
4160
|
+
diff: diffMode,
|
|
4161
|
+
allowEmptySource
|
|
4129
4162
|
}) => {
|
|
4130
4163
|
const fetch3 = nodeFetchProxy(proxy);
|
|
4131
4164
|
const client = new PromptClient4({
|
|
@@ -4157,6 +4190,7 @@ var PromptPushModule = {
|
|
|
4157
4190
|
target,
|
|
4158
4191
|
mode,
|
|
4159
4192
|
whatIf,
|
|
4193
|
+
allowEmptySource,
|
|
4160
4194
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
4161
4195
|
});
|
|
4162
4196
|
}
|
|
@@ -4366,7 +4400,8 @@ var AggregatePullModule = {
|
|
|
4366
4400
|
mode,
|
|
4367
4401
|
whatIf,
|
|
4368
4402
|
project: projectId,
|
|
4369
|
-
diff: diffMode
|
|
4403
|
+
diff: diffMode,
|
|
4404
|
+
allowEmptySource
|
|
4370
4405
|
}) => {
|
|
4371
4406
|
const fetch3 = nodeFetchProxy(proxy);
|
|
4372
4407
|
const client = new UncachedAggregateClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -4397,6 +4432,7 @@ var AggregatePullModule = {
|
|
|
4397
4432
|
target,
|
|
4398
4433
|
mode,
|
|
4399
4434
|
whatIf,
|
|
4435
|
+
allowEmptySource,
|
|
4400
4436
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
4401
4437
|
});
|
|
4402
4438
|
}
|
|
@@ -4438,7 +4474,8 @@ var AggregatePushModule = {
|
|
|
4438
4474
|
mode,
|
|
4439
4475
|
whatIf,
|
|
4440
4476
|
project: projectId,
|
|
4441
|
-
diff: diffMode
|
|
4477
|
+
diff: diffMode,
|
|
4478
|
+
allowEmptySource
|
|
4442
4479
|
}) => {
|
|
4443
4480
|
const fetch3 = nodeFetchProxy(proxy);
|
|
4444
4481
|
const client = new UncachedAggregateClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -4464,6 +4501,7 @@ var AggregatePushModule = {
|
|
|
4464
4501
|
target,
|
|
4465
4502
|
mode,
|
|
4466
4503
|
whatIf,
|
|
4504
|
+
allowEmptySource,
|
|
4467
4505
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
4468
4506
|
});
|
|
4469
4507
|
await target.complete();
|
|
@@ -4698,7 +4736,8 @@ var EnrichmentPullModule = {
|
|
|
4698
4736
|
mode,
|
|
4699
4737
|
whatIf,
|
|
4700
4738
|
project: projectId,
|
|
4701
|
-
diff: diffMode
|
|
4739
|
+
diff: diffMode,
|
|
4740
|
+
allowEmptySource
|
|
4702
4741
|
}) => {
|
|
4703
4742
|
const fetch3 = nodeFetchProxy(proxy);
|
|
4704
4743
|
const client = new UncachedEnrichmentClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -4729,6 +4768,7 @@ var EnrichmentPullModule = {
|
|
|
4729
4768
|
target,
|
|
4730
4769
|
mode,
|
|
4731
4770
|
whatIf,
|
|
4771
|
+
allowEmptySource,
|
|
4732
4772
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
4733
4773
|
});
|
|
4734
4774
|
}
|
|
@@ -4770,7 +4810,8 @@ var EnrichmentPushModule = {
|
|
|
4770
4810
|
mode,
|
|
4771
4811
|
whatIf,
|
|
4772
4812
|
project: projectId,
|
|
4773
|
-
diff: diffMode
|
|
4813
|
+
diff: diffMode,
|
|
4814
|
+
allowEmptySource
|
|
4774
4815
|
}) => {
|
|
4775
4816
|
const fetch3 = nodeFetchProxy(proxy);
|
|
4776
4817
|
const client = new UncachedEnrichmentClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -4796,6 +4837,7 @@ var EnrichmentPushModule = {
|
|
|
4796
4837
|
target,
|
|
4797
4838
|
mode,
|
|
4798
4839
|
whatIf,
|
|
4840
|
+
allowEmptySource,
|
|
4799
4841
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
4800
4842
|
});
|
|
4801
4843
|
}
|
|
@@ -5083,7 +5125,8 @@ var QuirkPullModule = {
|
|
|
5083
5125
|
mode,
|
|
5084
5126
|
whatIf,
|
|
5085
5127
|
project: projectId,
|
|
5086
|
-
diff: diffMode
|
|
5128
|
+
diff: diffMode,
|
|
5129
|
+
allowEmptySource
|
|
5087
5130
|
}) => {
|
|
5088
5131
|
const fetch3 = nodeFetchProxy(proxy);
|
|
5089
5132
|
const client = new UncachedQuirkClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -5114,6 +5157,7 @@ var QuirkPullModule = {
|
|
|
5114
5157
|
target,
|
|
5115
5158
|
mode,
|
|
5116
5159
|
whatIf,
|
|
5160
|
+
allowEmptySource,
|
|
5117
5161
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5118
5162
|
});
|
|
5119
5163
|
}
|
|
@@ -5155,7 +5199,8 @@ var QuirkPushModule = {
|
|
|
5155
5199
|
mode,
|
|
5156
5200
|
whatIf,
|
|
5157
5201
|
project: projectId,
|
|
5158
|
-
diff: diffMode
|
|
5202
|
+
diff: diffMode,
|
|
5203
|
+
allowEmptySource
|
|
5159
5204
|
}) => {
|
|
5160
5205
|
const fetch3 = nodeFetchProxy(proxy);
|
|
5161
5206
|
const client = new UncachedQuirkClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -5181,6 +5226,7 @@ var QuirkPushModule = {
|
|
|
5181
5226
|
target,
|
|
5182
5227
|
mode,
|
|
5183
5228
|
whatIf,
|
|
5229
|
+
allowEmptySource,
|
|
5184
5230
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5185
5231
|
});
|
|
5186
5232
|
}
|
|
@@ -5361,7 +5407,8 @@ var SignalPullModule = {
|
|
|
5361
5407
|
mode,
|
|
5362
5408
|
whatIf,
|
|
5363
5409
|
project: projectId,
|
|
5364
|
-
diff: diffMode
|
|
5410
|
+
diff: diffMode,
|
|
5411
|
+
allowEmptySource
|
|
5365
5412
|
}) => {
|
|
5366
5413
|
const fetch3 = nodeFetchProxy(proxy);
|
|
5367
5414
|
const client = new UncachedSignalClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -5392,6 +5439,7 @@ var SignalPullModule = {
|
|
|
5392
5439
|
target,
|
|
5393
5440
|
mode,
|
|
5394
5441
|
whatIf,
|
|
5442
|
+
allowEmptySource,
|
|
5395
5443
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5396
5444
|
});
|
|
5397
5445
|
}
|
|
@@ -5433,7 +5481,8 @@ var SignalPushModule = {
|
|
|
5433
5481
|
mode,
|
|
5434
5482
|
whatIf,
|
|
5435
5483
|
project: projectId,
|
|
5436
|
-
diff: diffMode
|
|
5484
|
+
diff: diffMode,
|
|
5485
|
+
allowEmptySource
|
|
5437
5486
|
}) => {
|
|
5438
5487
|
const fetch3 = nodeFetchProxy(proxy);
|
|
5439
5488
|
const client = new UncachedSignalClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -5459,6 +5508,7 @@ var SignalPushModule = {
|
|
|
5459
5508
|
target,
|
|
5460
5509
|
mode,
|
|
5461
5510
|
whatIf,
|
|
5511
|
+
allowEmptySource,
|
|
5462
5512
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5463
5513
|
});
|
|
5464
5514
|
}
|
|
@@ -5639,7 +5689,8 @@ var TestPullModule = {
|
|
|
5639
5689
|
mode,
|
|
5640
5690
|
whatIf,
|
|
5641
5691
|
project: projectId,
|
|
5642
|
-
diff: diffMode
|
|
5692
|
+
diff: diffMode,
|
|
5693
|
+
allowEmptySource
|
|
5643
5694
|
}) => {
|
|
5644
5695
|
const fetch3 = nodeFetchProxy(proxy);
|
|
5645
5696
|
const client = new UncachedTestClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -5670,6 +5721,7 @@ var TestPullModule = {
|
|
|
5670
5721
|
target,
|
|
5671
5722
|
mode,
|
|
5672
5723
|
whatIf,
|
|
5724
|
+
allowEmptySource,
|
|
5673
5725
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5674
5726
|
});
|
|
5675
5727
|
}
|
|
@@ -5711,7 +5763,8 @@ var TestPushModule = {
|
|
|
5711
5763
|
mode,
|
|
5712
5764
|
whatIf,
|
|
5713
5765
|
project: projectId,
|
|
5714
|
-
diff: diffMode
|
|
5766
|
+
diff: diffMode,
|
|
5767
|
+
allowEmptySource
|
|
5715
5768
|
}) => {
|
|
5716
5769
|
const fetch3 = nodeFetchProxy(proxy);
|
|
5717
5770
|
const client = new UncachedTestClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -5737,6 +5790,7 @@ var TestPushModule = {
|
|
|
5737
5790
|
target,
|
|
5738
5791
|
mode,
|
|
5739
5792
|
whatIf,
|
|
5793
|
+
allowEmptySource,
|
|
5740
5794
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5741
5795
|
});
|
|
5742
5796
|
}
|
|
@@ -5826,7 +5880,7 @@ import { PostHog } from "posthog-node";
|
|
|
5826
5880
|
// package.json
|
|
5827
5881
|
var package_default = {
|
|
5828
5882
|
name: "@uniformdev/cli",
|
|
5829
|
-
version: "19.
|
|
5883
|
+
version: "19.90.0",
|
|
5830
5884
|
description: "Uniform command line interface tool",
|
|
5831
5885
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
5832
5886
|
main: "./cli.js",
|
|
@@ -7110,7 +7164,8 @@ var ProjectMapDefinitionPullModule = {
|
|
|
7110
7164
|
mode,
|
|
7111
7165
|
whatIf,
|
|
7112
7166
|
project: projectId,
|
|
7113
|
-
diff: diffMode
|
|
7167
|
+
diff: diffMode,
|
|
7168
|
+
allowEmptySource
|
|
7114
7169
|
}) => {
|
|
7115
7170
|
const fetch3 = nodeFetchProxy(proxy);
|
|
7116
7171
|
const client = new UncachedProjectMapClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -7141,7 +7196,7 @@ var ProjectMapDefinitionPullModule = {
|
|
|
7141
7196
|
target,
|
|
7142
7197
|
mode,
|
|
7143
7198
|
whatIf,
|
|
7144
|
-
allowEmptySource: true,
|
|
7199
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
7145
7200
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7146
7201
|
});
|
|
7147
7202
|
}
|
|
@@ -7183,7 +7238,8 @@ var ProjectMapDefinitionPushModule = {
|
|
|
7183
7238
|
mode,
|
|
7184
7239
|
whatIf,
|
|
7185
7240
|
project: projectId,
|
|
7186
|
-
diff: diffMode
|
|
7241
|
+
diff: diffMode,
|
|
7242
|
+
allowEmptySource
|
|
7187
7243
|
}) => {
|
|
7188
7244
|
const fetch3 = nodeFetchProxy(proxy);
|
|
7189
7245
|
const client = new UncachedProjectMapClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -7209,6 +7265,7 @@ var ProjectMapDefinitionPushModule = {
|
|
|
7209
7265
|
target,
|
|
7210
7266
|
mode,
|
|
7211
7267
|
whatIf,
|
|
7268
|
+
allowEmptySource,
|
|
7212
7269
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7213
7270
|
});
|
|
7214
7271
|
}
|
|
@@ -7414,7 +7471,8 @@ var ProjectMapNodePullModule = {
|
|
|
7414
7471
|
mode,
|
|
7415
7472
|
whatIf,
|
|
7416
7473
|
project: projectId,
|
|
7417
|
-
diff: diffMode
|
|
7474
|
+
diff: diffMode,
|
|
7475
|
+
allowEmptySource
|
|
7418
7476
|
}) => {
|
|
7419
7477
|
const fetch3 = nodeFetchProxy(proxy);
|
|
7420
7478
|
const client = new UncachedProjectMapClient9({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -7449,7 +7507,7 @@ var ProjectMapNodePullModule = {
|
|
|
7449
7507
|
target,
|
|
7450
7508
|
mode,
|
|
7451
7509
|
whatIf,
|
|
7452
|
-
allowEmptySource: true,
|
|
7510
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
7453
7511
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7454
7512
|
});
|
|
7455
7513
|
}
|
|
@@ -7491,7 +7549,8 @@ var ProjectMapNodePushModule = {
|
|
|
7491
7549
|
mode,
|
|
7492
7550
|
whatIf,
|
|
7493
7551
|
project: projectId,
|
|
7494
|
-
diff: diffMode
|
|
7552
|
+
diff: diffMode,
|
|
7553
|
+
allowEmptySource
|
|
7495
7554
|
}) => {
|
|
7496
7555
|
const fetch3 = nodeFetchProxy(proxy);
|
|
7497
7556
|
const client = new UncachedProjectMapClient10({
|
|
@@ -7526,6 +7585,7 @@ var ProjectMapNodePushModule = {
|
|
|
7526
7585
|
target,
|
|
7527
7586
|
mode,
|
|
7528
7587
|
whatIf,
|
|
7588
|
+
allowEmptySource,
|
|
7529
7589
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7530
7590
|
});
|
|
7531
7591
|
}
|
|
@@ -7736,7 +7796,8 @@ var RedirectDefinitionPullModule = {
|
|
|
7736
7796
|
mode,
|
|
7737
7797
|
whatIf,
|
|
7738
7798
|
project: projectId,
|
|
7739
|
-
diff: diffMode
|
|
7799
|
+
diff: diffMode,
|
|
7800
|
+
allowEmptySource
|
|
7740
7801
|
}) => {
|
|
7741
7802
|
const fetch3 = nodeFetchProxy(proxy);
|
|
7742
7803
|
const client = new UncachedRedirectClient3({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -7768,7 +7829,7 @@ var RedirectDefinitionPullModule = {
|
|
|
7768
7829
|
target,
|
|
7769
7830
|
mode,
|
|
7770
7831
|
whatIf,
|
|
7771
|
-
allowEmptySource: true,
|
|
7832
|
+
allowEmptySource: allowEmptySource ?? true,
|
|
7772
7833
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7773
7834
|
});
|
|
7774
7835
|
}
|
|
@@ -7810,7 +7871,8 @@ var RedirectDefinitionPushModule = {
|
|
|
7810
7871
|
mode,
|
|
7811
7872
|
whatIf,
|
|
7812
7873
|
project: projectId,
|
|
7813
|
-
diff: diffMode
|
|
7874
|
+
diff: diffMode,
|
|
7875
|
+
allowEmptySource
|
|
7814
7876
|
}) => {
|
|
7815
7877
|
const fetch3 = nodeFetchProxy(proxy);
|
|
7816
7878
|
const client = new UncachedRedirectClient4({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
@@ -7836,6 +7898,7 @@ var RedirectDefinitionPushModule = {
|
|
|
7836
7898
|
target,
|
|
7837
7899
|
mode,
|
|
7838
7900
|
whatIf,
|
|
7901
|
+
allowEmptySource,
|
|
7839
7902
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7840
7903
|
});
|
|
7841
7904
|
}
|
|
@@ -7994,7 +8057,8 @@ var SyncPullModule = {
|
|
|
7994
8057
|
onlyCompositions: entityType === "composition" ? true : void 0,
|
|
7995
8058
|
onlyPatterns: entityType === "pattern" ? true : void 0,
|
|
7996
8059
|
mode: getPullMode(entityType, config2),
|
|
7997
|
-
directory: getPullFilename(entityType, config2)
|
|
8060
|
+
directory: getPullFilename(entityType, config2),
|
|
8061
|
+
allowEmptySource: config2.allowEmptySource
|
|
7998
8062
|
});
|
|
7999
8063
|
spinner.succeed();
|
|
8000
8064
|
} catch (e) {
|
|
@@ -8087,7 +8151,8 @@ var SyncPushModule = {
|
|
|
8087
8151
|
onlyCompositions: entityType === "composition" ? true : void 0,
|
|
8088
8152
|
onlyPatterns: entityType === "pattern" ? true : void 0,
|
|
8089
8153
|
mode: getPushMode(entityType, config2),
|
|
8090
|
-
directory: getPushFilename(entityType, config2)
|
|
8154
|
+
directory: getPushFilename(entityType, config2),
|
|
8155
|
+
allowEmptySource: config2.allowEmptySource
|
|
8091
8156
|
});
|
|
8092
8157
|
spinner.succeed();
|
|
8093
8158
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.90.1-alpha.8+b7a030f80",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@thi.ng/mime": "^2.2.23",
|
|
20
|
-
"@uniformdev/assets": "19.
|
|
21
|
-
"@uniformdev/canvas": "19.
|
|
22
|
-
"@uniformdev/context": "19.
|
|
23
|
-
"@uniformdev/files": "19.
|
|
24
|
-
"@uniformdev/project-map": "19.
|
|
25
|
-
"@uniformdev/redirect": "19.
|
|
20
|
+
"@uniformdev/assets": "19.90.1-alpha.8+b7a030f80",
|
|
21
|
+
"@uniformdev/canvas": "19.90.1-alpha.8+b7a030f80",
|
|
22
|
+
"@uniformdev/context": "19.90.1-alpha.8+b7a030f80",
|
|
23
|
+
"@uniformdev/files": "19.90.1-alpha.8+b7a030f80",
|
|
24
|
+
"@uniformdev/project-map": "19.90.1-alpha.8+b7a030f80",
|
|
25
|
+
"@uniformdev/redirect": "19.90.1-alpha.8+b7a030f80",
|
|
26
26
|
"call-bind": "^1.0.2",
|
|
27
27
|
"colorette": "2.0.20",
|
|
28
28
|
"cosmiconfig": "8.3.6",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "b7a030f80fb1ba2389f8d9e1f34329da488dcf4c"
|
|
73
73
|
}
|