@uniformdev/cli 20.75.1-alpha.7 → 20.75.1-alpha.9

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 (2) hide show
  1. package/dist/index.mjs +4 -4
  2. package/package.json +10 -10
package/dist/index.mjs CHANGED
@@ -3042,11 +3042,11 @@ var uploadFileForAsset = async ({
3042
3042
  directory,
3043
3043
  fileClient
3044
3044
  }) => {
3045
- if (asset.asset.fields?.file?.value === void 0 || asset.asset.fields.url?.value === void 0) {
3045
+ const fileId = asset.asset.fields?.file?.value;
3046
+ const fileUrl = asset.asset.fields?.url?.value;
3047
+ if (fileId === void 0 || !fileUrl) {
3046
3048
  return null;
3047
3049
  }
3048
- const fileUrl = asset.asset.fields.url.value;
3049
- const fileId = asset.asset.fields.file.value;
3050
3050
  return uploadFile({ fileUrl, directory, fileClient, fileId });
3051
3051
  };
3052
3052
  var removeUrlsFromAssetParameters = (entity) => {
@@ -3521,7 +3521,7 @@ var prepareAssetForPush = async ({
3521
3521
  `Source project ID: ${sourceObject.object.projectId}`,
3522
3522
  `Target project ID: ${targetProjectId}`,
3523
3523
  `File ID: ${fileId}`,
3524
- `File URL: ${fileUrl ?? "Missing"}`,
3524
+ `File URL: ${fileUrl || "Missing"}`,
3525
3525
  `Expected local path: ${expectedFilePath}`,
3526
3526
  `Remove the asset with the ID ${sourceObject.providerId} before pushing again.`
3527
3527
  ].join("\n")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.75.1-alpha.7+ad3780cc13",
3
+ "version": "20.75.1-alpha.9+101af6ed32",
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.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",
30
+ "@uniformdev/assets": "20.75.1-alpha.9+101af6ed32",
31
+ "@uniformdev/automations-sdk": "20.75.1-alpha.9+101af6ed32",
32
+ "@uniformdev/canvas": "20.75.1-alpha.9+101af6ed32",
33
+ "@uniformdev/context": "20.75.1-alpha.9+101af6ed32",
34
+ "@uniformdev/files": "20.75.1-alpha.9+101af6ed32",
35
+ "@uniformdev/project-map": "20.75.1-alpha.9+101af6ed32",
36
+ "@uniformdev/redirect": "20.75.1-alpha.9+101af6ed32",
37
+ "@uniformdev/richtext": "20.75.1-alpha.9+101af6ed32",
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": "ad3780cc13fc3e5f328db96ccd428109e09248ae"
81
+ "gitHead": "101af6ed32b0f3f2f515490f7723b96e135c856f"
82
82
  }