@uniformdev/cli 20.71.0 → 20.71.2-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.
|
@@ -17,12 +17,11 @@ import { ApiClientError } from "@uniformdev/canvas";
|
|
|
17
17
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
18
18
|
import { dump, load } from "js-yaml";
|
|
19
19
|
import { dirname, extname, isAbsolute, resolve, sep } from "path";
|
|
20
|
-
import { fetch as undiciFetch, ProxyAgent } from "undici";
|
|
21
20
|
|
|
22
21
|
// package.json
|
|
23
22
|
var package_default = {
|
|
24
23
|
name: "@uniformdev/cli",
|
|
25
|
-
version: "20.71.
|
|
24
|
+
version: "20.71.1",
|
|
26
25
|
description: "Uniform command line interface tool",
|
|
27
26
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
28
27
|
main: "./cli.js",
|
|
@@ -199,6 +198,13 @@ function withDebugOptions(yargs) {
|
|
|
199
198
|
});
|
|
200
199
|
}
|
|
201
200
|
var fetchIndex = 0;
|
|
201
|
+
var undiciModulePromise;
|
|
202
|
+
function loadUndici() {
|
|
203
|
+
if (!undiciModulePromise) {
|
|
204
|
+
undiciModulePromise = import("undici");
|
|
205
|
+
}
|
|
206
|
+
return undiciModulePromise;
|
|
207
|
+
}
|
|
202
208
|
function nodeFetchProxy(proxy, verbose) {
|
|
203
209
|
if (proxy) {
|
|
204
210
|
console.log(`\u{1F991} Using proxy ${proxy}`);
|
|
@@ -224,15 +230,15 @@ ${e.message}`;
|
|
|
224
230
|
throw e;
|
|
225
231
|
};
|
|
226
232
|
if (proxy) {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
233
|
+
return loadUndici().then(({ fetch: undiciFetch, ProxyAgent }) => {
|
|
234
|
+
const wrappedInit = {
|
|
235
|
+
...init,
|
|
236
|
+
dispatcher: new ProxyAgent(proxy)
|
|
237
|
+
};
|
|
238
|
+
return undiciFetch(input, wrappedInit).catch(handleFetchError);
|
|
239
|
+
});
|
|
232
240
|
}
|
|
233
|
-
return
|
|
234
|
-
handleFetchError
|
|
235
|
-
);
|
|
241
|
+
return globalThis.fetch(input, init).catch(handleFetchError);
|
|
236
242
|
};
|
|
237
243
|
const wrappedFetch = createFetchWithRetry(baseFetch, verbose);
|
|
238
244
|
if (verbose) {
|
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": "20.71.
|
|
3
|
+
"version": "20.71.2-alpha.7+2ec20a4ae2",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@inquirer/prompts": "^8.5.2",
|
|
29
29
|
"@thi.ng/mime": "^2.2.23",
|
|
30
|
-
"@uniformdev/assets": "20.71.
|
|
31
|
-
"@uniformdev/canvas": "20.71.
|
|
32
|
-
"@uniformdev/context": "20.71.
|
|
33
|
-
"@uniformdev/files": "20.71.
|
|
34
|
-
"@uniformdev/project-map": "20.71.
|
|
35
|
-
"@uniformdev/redirect": "20.71.
|
|
36
|
-
"@uniformdev/richtext": "20.71.
|
|
30
|
+
"@uniformdev/assets": "20.71.2-alpha.7+2ec20a4ae2",
|
|
31
|
+
"@uniformdev/canvas": "20.71.2-alpha.7+2ec20a4ae2",
|
|
32
|
+
"@uniformdev/context": "20.71.2-alpha.7+2ec20a4ae2",
|
|
33
|
+
"@uniformdev/files": "20.71.2-alpha.7+2ec20a4ae2",
|
|
34
|
+
"@uniformdev/project-map": "20.71.2-alpha.7+2ec20a4ae2",
|
|
35
|
+
"@uniformdev/redirect": "20.71.2-alpha.7+2ec20a4ae2",
|
|
36
|
+
"@uniformdev/richtext": "20.71.2-alpha.7+2ec20a4ae2",
|
|
37
37
|
"call-bind": "^1.0.2",
|
|
38
38
|
"colorette": "2.0.20",
|
|
39
39
|
"cosmiconfig": "9.0.2",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "2ec20a4ae2d167b6e4e6ad47463b90fb16b73c47"
|
|
83
83
|
}
|