@uniformdev/cli 19.103.0 → 19.106.1-alpha.3
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 -6
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -867,22 +867,26 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
867
867
|
console.warn(`Failed to upload file ${url} (${expectedFilePath})`);
|
|
868
868
|
return;
|
|
869
869
|
}
|
|
870
|
+
let error;
|
|
870
871
|
const checkForFile = async () => {
|
|
872
|
+
if (error) {
|
|
873
|
+
throw error;
|
|
874
|
+
}
|
|
871
875
|
const file2 = await options.fileClient.get({ id });
|
|
872
876
|
if (!file2 || file2.state !== FILE_READY_STATE || !file2.url) {
|
|
873
|
-
await new Promise((resolve2) => setTimeout(resolve2,
|
|
877
|
+
await new Promise((resolve2) => setTimeout(resolve2, 1e3));
|
|
874
878
|
return checkForFile();
|
|
875
879
|
}
|
|
876
880
|
return file2.url;
|
|
877
881
|
};
|
|
878
882
|
const abortTimeout = setTimeout(() => {
|
|
879
|
-
|
|
880
|
-
},
|
|
883
|
+
error = new Error(`Failed to upload file ${url} (${expectedFilePath}) - upload timed out`);
|
|
884
|
+
}, 6e4);
|
|
881
885
|
const uploadedFileUrl = await checkForFile();
|
|
882
886
|
clearTimeout(abortTimeout);
|
|
883
887
|
objectAsString = objectAsString.replaceAll(`"${url}"`, `"${uploadedFileUrl}"`);
|
|
884
|
-
} catch {
|
|
885
|
-
console.warn(`Failed to upload file ${url}
|
|
888
|
+
} catch (e) {
|
|
889
|
+
console.warn(`Failed to upload file ${url}`, e);
|
|
886
890
|
}
|
|
887
891
|
});
|
|
888
892
|
}
|
|
@@ -6064,7 +6068,7 @@ import { PostHog } from "posthog-node";
|
|
|
6064
6068
|
// package.json
|
|
6065
6069
|
var package_default = {
|
|
6066
6070
|
name: "@uniformdev/cli",
|
|
6067
|
-
version: "19.
|
|
6071
|
+
version: "19.106.0",
|
|
6068
6072
|
description: "Uniform command line interface tool",
|
|
6069
6073
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
6070
6074
|
main: "./cli.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.106.1-alpha.3+47677ea6f",
|
|
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.106.1-alpha.3+47677ea6f",
|
|
21
|
+
"@uniformdev/canvas": "19.106.1-alpha.3+47677ea6f",
|
|
22
|
+
"@uniformdev/context": "19.106.1-alpha.3+47677ea6f",
|
|
23
|
+
"@uniformdev/files": "19.106.1-alpha.3+47677ea6f",
|
|
24
|
+
"@uniformdev/project-map": "19.106.1-alpha.3+47677ea6f",
|
|
25
|
+
"@uniformdev/redirect": "19.106.1-alpha.3+47677ea6f",
|
|
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": "47677ea6fd6eb707bb30eb20dc67e42573e0516d"
|
|
73
73
|
}
|