@uniformdev/cli 19.205.0 → 19.205.1-alpha.2
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.
|
@@ -65,14 +65,30 @@ function nodeFetchProxy(proxy, verbose) {
|
|
|
65
65
|
console.log(`\u{1F991} Using proxy ${proxy}`);
|
|
66
66
|
}
|
|
67
67
|
const wrappedFetch = (input, init) => {
|
|
68
|
+
const handleFetchError = (e) => {
|
|
69
|
+
if (e instanceof Error) {
|
|
70
|
+
e.message = `Error fetching ${input.toString()}
|
|
71
|
+
${e.message}`;
|
|
72
|
+
if (e.cause) {
|
|
73
|
+
let cause = "Root cause: " + e.cause.toString();
|
|
74
|
+
if (e.cause instanceof AggregateError) {
|
|
75
|
+
cause = "Root causes: \n" + e.cause.errors.map((err) => err.toString()).join("\n");
|
|
76
|
+
}
|
|
77
|
+
e.message = e.message + " \n" + cause;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
throw e;
|
|
81
|
+
};
|
|
68
82
|
if (proxy) {
|
|
69
83
|
const wrappedInit = {
|
|
70
84
|
...init,
|
|
71
85
|
dispatcher: new ProxyAgent(proxy)
|
|
72
86
|
};
|
|
73
|
-
return undiciFetch(input, wrappedInit);
|
|
87
|
+
return undiciFetch(input, wrappedInit).catch(handleFetchError);
|
|
74
88
|
}
|
|
75
|
-
return undiciFetch(input, init)
|
|
89
|
+
return undiciFetch(input, init).catch(
|
|
90
|
+
handleFetchError
|
|
91
|
+
);
|
|
76
92
|
};
|
|
77
93
|
if (verbose) {
|
|
78
94
|
return async function fetchWithVerboseLogging(input, init) {
|
package/dist/defaultConfig.mjs
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.205.
|
|
3
|
+
"version": "19.205.1-alpha.2+7d2d8a28e1",
|
|
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.205.
|
|
31
|
-
"@uniformdev/canvas": "19.205.
|
|
32
|
-
"@uniformdev/context": "19.205.
|
|
33
|
-
"@uniformdev/files": "19.205.
|
|
34
|
-
"@uniformdev/project-map": "19.205.
|
|
35
|
-
"@uniformdev/redirect": "19.205.
|
|
30
|
+
"@uniformdev/assets": "19.205.1-alpha.2+7d2d8a28e1",
|
|
31
|
+
"@uniformdev/canvas": "19.205.1-alpha.2+7d2d8a28e1",
|
|
32
|
+
"@uniformdev/context": "19.205.1-alpha.2+7d2d8a28e1",
|
|
33
|
+
"@uniformdev/files": "19.205.1-alpha.2+7d2d8a28e1",
|
|
34
|
+
"@uniformdev/project-map": "19.205.1-alpha.2+7d2d8a28e1",
|
|
35
|
+
"@uniformdev/redirect": "19.205.1-alpha.2+7d2d8a28e1",
|
|
36
36
|
"call-bind": "^1.0.2",
|
|
37
37
|
"colorette": "2.0.20",
|
|
38
38
|
"cosmiconfig": "9.0.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "7d2d8a28e16932b112d7dd83ab736d26a989bc43"
|
|
82
82
|
}
|