@uniformdev/cli 19.86.1-alpha.13 → 19.86.1-alpha.15
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 +10 -4
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -947,16 +947,22 @@ var replaceRemoteUrlsWithLocalReferences = async (sourceObject, targetObject, op
|
|
|
947
947
|
return JSON.parse(sourceObjectAsString);
|
|
948
948
|
};
|
|
949
949
|
var updateAssetFileIdBasedOnUrl = async (asset, options) => {
|
|
950
|
-
var _a
|
|
951
|
-
|
|
952
|
-
|
|
950
|
+
var _a;
|
|
951
|
+
if (!asset.asset.fields) {
|
|
952
|
+
return asset;
|
|
953
|
+
}
|
|
954
|
+
const fileUrl = (_a = asset.asset.fields.url) == null ? void 0 : _a.value;
|
|
955
|
+
if (!fileUrl) {
|
|
953
956
|
return asset;
|
|
954
957
|
}
|
|
955
958
|
const file = await options.fileClient.get({ url: fileUrl }).catch(() => null);
|
|
956
959
|
if (!file) {
|
|
957
960
|
return asset;
|
|
958
961
|
}
|
|
959
|
-
asset.asset.fields.file
|
|
962
|
+
asset.asset.fields.file = {
|
|
963
|
+
type: "file",
|
|
964
|
+
value: file.id
|
|
965
|
+
};
|
|
960
966
|
return asset;
|
|
961
967
|
};
|
|
962
968
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.86.1-alpha.
|
|
3
|
+
"version": "19.86.1-alpha.15+d0028b600",
|
|
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.86.1-alpha.
|
|
21
|
-
"@uniformdev/canvas": "19.86.1-alpha.
|
|
22
|
-
"@uniformdev/context": "19.86.1-alpha.
|
|
23
|
-
"@uniformdev/files": "19.86.1-alpha.
|
|
24
|
-
"@uniformdev/project-map": "19.86.1-alpha.
|
|
25
|
-
"@uniformdev/redirect": "19.86.1-alpha.
|
|
20
|
+
"@uniformdev/assets": "19.86.1-alpha.15+d0028b600",
|
|
21
|
+
"@uniformdev/canvas": "19.86.1-alpha.15+d0028b600",
|
|
22
|
+
"@uniformdev/context": "19.86.1-alpha.15+d0028b600",
|
|
23
|
+
"@uniformdev/files": "19.86.1-alpha.15+d0028b600",
|
|
24
|
+
"@uniformdev/project-map": "19.86.1-alpha.15+d0028b600",
|
|
25
|
+
"@uniformdev/redirect": "19.86.1-alpha.15+d0028b600",
|
|
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": "d0028b60072915cdc68eb415b9dd066d6a3ffff7"
|
|
73
73
|
}
|