@uniformdev/cli 20.75.1-alpha.6 → 20.75.1-alpha.7
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 +12 -2
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -2789,7 +2789,7 @@ var downloadFile = async ({
|
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
2791
|
const fetchUrl = `${fileUrl}?format=original`;
|
|
2792
|
-
const preserveWarningOnlyFailure =
|
|
2792
|
+
const preserveWarningOnlyFailure = !file;
|
|
2793
2793
|
let response;
|
|
2794
2794
|
try {
|
|
2795
2795
|
response = await fetch(fetchUrl);
|
|
@@ -3486,6 +3486,16 @@ var AssetPullModule = {
|
|
|
3486
3486
|
// src/commands/canvas/commands/asset/push.ts
|
|
3487
3487
|
import { join as join13 } from "path";
|
|
3488
3488
|
var ASSET_PUSH_ACTION_CONCURRENCY = 10;
|
|
3489
|
+
var getExpectedFilePath = (directory, fileUrl) => {
|
|
3490
|
+
if (!fileUrl) {
|
|
3491
|
+
return "Unavailable because the asset has no file URL";
|
|
3492
|
+
}
|
|
3493
|
+
try {
|
|
3494
|
+
return join13(getFilesDirectory(directory), FILES_DIRECTORY_NAME, urlToFileName(fileUrl));
|
|
3495
|
+
} catch {
|
|
3496
|
+
return "Unavailable because the asset file URL is invalid";
|
|
3497
|
+
}
|
|
3498
|
+
};
|
|
3489
3499
|
var prepareAssetForPush = async ({
|
|
3490
3500
|
sourceObject,
|
|
3491
3501
|
directory,
|
|
@@ -3504,7 +3514,7 @@ var prepareAssetForPush = async ({
|
|
|
3504
3514
|
});
|
|
3505
3515
|
if (!uploadedFile) {
|
|
3506
3516
|
const fileUrl = fields.url?.value;
|
|
3507
|
-
const expectedFilePath =
|
|
3517
|
+
const expectedFilePath = getExpectedFilePath(directory, fileUrl);
|
|
3508
3518
|
throw new Error(
|
|
3509
3519
|
[
|
|
3510
3520
|
`Unable to push asset "${sourceObject.displayName ?? sourceObject.providerId}" (${sourceObject.providerId}) because its file could not be uploaded.`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.75.1-alpha.
|
|
3
|
+
"version": "20.75.1-alpha.7+ad3780cc13",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@inquirer/prompts": "^8.5.2",
|
|
29
29
|
"@thi.ng/mime": "^2.2.23",
|
|
30
|
-
"@uniformdev/assets": "20.75.1-alpha.
|
|
31
|
-
"@uniformdev/automations-sdk": "20.75.1-alpha.
|
|
32
|
-
"@uniformdev/canvas": "20.75.1-alpha.
|
|
33
|
-
"@uniformdev/context": "20.75.1-alpha.
|
|
34
|
-
"@uniformdev/files": "20.75.1-alpha.
|
|
35
|
-
"@uniformdev/project-map": "20.75.1-alpha.
|
|
36
|
-
"@uniformdev/redirect": "20.75.1-alpha.
|
|
37
|
-
"@uniformdev/richtext": "20.75.1-alpha.
|
|
30
|
+
"@uniformdev/assets": "20.75.1-alpha.7+ad3780cc13",
|
|
31
|
+
"@uniformdev/automations-sdk": "20.75.1-alpha.7+ad3780cc13",
|
|
32
|
+
"@uniformdev/canvas": "20.75.1-alpha.7+ad3780cc13",
|
|
33
|
+
"@uniformdev/context": "20.75.1-alpha.7+ad3780cc13",
|
|
34
|
+
"@uniformdev/files": "20.75.1-alpha.7+ad3780cc13",
|
|
35
|
+
"@uniformdev/project-map": "20.75.1-alpha.7+ad3780cc13",
|
|
36
|
+
"@uniformdev/redirect": "20.75.1-alpha.7+ad3780cc13",
|
|
37
|
+
"@uniformdev/richtext": "20.75.1-alpha.7+ad3780cc13",
|
|
38
38
|
"call-bind": "^1.0.2",
|
|
39
39
|
"colorette": "2.0.20",
|
|
40
40
|
"cosmiconfig": "9.0.2",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "ad3780cc13fc3e5f328db96ccd428109e09248ae"
|
|
82
82
|
}
|