@uniformdev/cli 19.207.1-alpha.20 → 19.207.1-alpha.28
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.mjs +15 -13
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -320,7 +320,7 @@ async function syncEngine({
|
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
|
-
actions.push(process2(sourceObject, targetObject));
|
|
323
|
+
actions.push(() => process2(sourceObject, targetObject));
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
ids.forEach((i) => targetItems.delete(i));
|
|
@@ -352,15 +352,15 @@ async function syncEngine({
|
|
|
352
352
|
[...invalidTargetObjects, targetObject].forEach((o) => {
|
|
353
353
|
(Array.isArray(o?.id) ? o?.id : [o?.id])?.forEach((i) => i && targetItems.delete(i));
|
|
354
354
|
});
|
|
355
|
-
const deletes = invalidTargetObjects.filter((io) => typeof io !== "undefined").map(
|
|
356
|
-
|
|
355
|
+
const deletes = invalidTargetObjects.filter((io) => typeof io !== "undefined").map((io) => {
|
|
356
|
+
return () => processDelete(io);
|
|
357
357
|
});
|
|
358
358
|
if (targetObject) {
|
|
359
|
-
deletes.push(processDelete(targetObject));
|
|
359
|
+
deletes.push(() => processDelete(targetObject));
|
|
360
360
|
}
|
|
361
|
-
actions.push(Promise.all(deletes).then(() => process2(sourceObject, ids[0])));
|
|
361
|
+
actions.push(() => Promise.all(deletes.map((d) => d())).then(() => process2(sourceObject, ids[0])));
|
|
362
362
|
} else {
|
|
363
|
-
actions.push(process2(sourceObject, ids[0]));
|
|
363
|
+
actions.push(() => process2(sourceObject, ids[0]));
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
}
|
|
@@ -371,12 +371,12 @@ async function syncEngine({
|
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
373
|
const deletes = [];
|
|
374
|
-
targetItems.forEach(
|
|
375
|
-
deletes.push(processDelete(object));
|
|
374
|
+
targetItems.forEach((object) => {
|
|
375
|
+
deletes.push(() => processDelete(object));
|
|
376
376
|
});
|
|
377
|
-
await Promise.all(deletes);
|
|
377
|
+
await Promise.all(deletes.map((d) => d()));
|
|
378
378
|
}
|
|
379
|
-
await Promise.all(actions);
|
|
379
|
+
await Promise.all(actions.map((a) => a()));
|
|
380
380
|
await Promise.all([source.onSyncComplete?.(false), target.onSyncComplete?.(true)]);
|
|
381
381
|
}
|
|
382
382
|
var SyncEngineError = class _SyncEngineError extends Error {
|
|
@@ -644,10 +644,13 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
646
|
const fileName = getFileNameFromUrl(url);
|
|
647
|
-
let mimeType = (await fileTypeFromBuffer(fileBuffer))?.mime;
|
|
647
|
+
let mimeType = expectedFilePath.endsWith(".svg") ? "image/svg+xml" : (await fileTypeFromBuffer(fileBuffer))?.mime;
|
|
648
648
|
if (!mimeType) {
|
|
649
649
|
mimeType = preferredType(url.split(".").at(-1) ?? "");
|
|
650
650
|
}
|
|
651
|
+
if (mimeType === "audio/x-flac") {
|
|
652
|
+
mimeType = "audio/flac";
|
|
653
|
+
}
|
|
651
654
|
const { width, height } = (() => {
|
|
652
655
|
if (!mimeType.startsWith("image/")) {
|
|
653
656
|
return {
|
|
@@ -8610,8 +8613,7 @@ var makeApiKey = (teamId, projectId, name, permissions) => ({
|
|
|
8610
8613
|
{
|
|
8611
8614
|
projectId,
|
|
8612
8615
|
permissions,
|
|
8613
|
-
roles: []
|
|
8614
|
-
useCustom: true
|
|
8616
|
+
roles: []
|
|
8615
8617
|
}
|
|
8616
8618
|
],
|
|
8617
8619
|
email: "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.207.1-alpha.
|
|
3
|
+
"version": "19.207.1-alpha.28+369def3ba0",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@thi.ng/mime": "^2.2.23",
|
|
30
|
-
"@uniformdev/assets": "19.207.1-alpha.
|
|
31
|
-
"@uniformdev/canvas": "19.207.1-alpha.
|
|
32
|
-
"@uniformdev/context": "19.207.1-alpha.
|
|
33
|
-
"@uniformdev/files": "19.207.1-alpha.
|
|
34
|
-
"@uniformdev/project-map": "19.207.1-alpha.
|
|
35
|
-
"@uniformdev/redirect": "19.207.1-alpha.
|
|
30
|
+
"@uniformdev/assets": "19.207.1-alpha.28+369def3ba0",
|
|
31
|
+
"@uniformdev/canvas": "19.207.1-alpha.28+369def3ba0",
|
|
32
|
+
"@uniformdev/context": "19.207.1-alpha.28+369def3ba0",
|
|
33
|
+
"@uniformdev/files": "19.207.1-alpha.28+369def3ba0",
|
|
34
|
+
"@uniformdev/project-map": "19.207.1-alpha.28+369def3ba0",
|
|
35
|
+
"@uniformdev/redirect": "19.207.1-alpha.28+369def3ba0",
|
|
36
36
|
"call-bind": "^1.0.2",
|
|
37
37
|
"colorette": "2.0.20",
|
|
38
38
|
"cosmiconfig": "9.0.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "369def3ba012b3fc314254d940448b9937e12900"
|
|
83
83
|
}
|