@uniformdev/cli 20.66.7-alpha.10 → 20.67.1-alpha.17

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.66.6",
24
+ version: "20.67.0",
26
25
  description: "Uniform command line interface tool",
27
26
  license: "SEE LICENSE IN LICENSE.txt",
28
27
  main: "./cli.js",
@@ -200,6 +199,13 @@ function withDebugOptions(yargs) {
200
199
  });
201
200
  }
202
201
  var fetchIndex = 0;
202
+ var undiciModulePromise;
203
+ function loadUndici() {
204
+ if (!undiciModulePromise) {
205
+ undiciModulePromise = import("undici");
206
+ }
207
+ return undiciModulePromise;
208
+ }
203
209
  function nodeFetchProxy(proxy, verbose) {
204
210
  if (proxy) {
205
211
  console.log(`\u{1F991} Using proxy ${proxy}`);
@@ -225,15 +231,15 @@ ${e.message}`;
225
231
  throw e;
226
232
  };
227
233
  if (proxy) {
228
- const wrappedInit = {
229
- ...init,
230
- dispatcher: new ProxyAgent(proxy)
231
- };
232
- return undiciFetch(input, wrappedInit).catch(handleFetchError);
234
+ return loadUndici().then(({ fetch: undiciFetch, ProxyAgent }) => {
235
+ const wrappedInit = {
236
+ ...init,
237
+ dispatcher: new ProxyAgent(proxy)
238
+ };
239
+ return undiciFetch(input, wrappedInit).catch(handleFetchError);
240
+ });
233
241
  }
234
- return undiciFetch(input, init).catch(
235
- handleFetchError
236
- );
242
+ return globalThis.fetch(input, init).catch(handleFetchError);
237
243
  };
238
244
  const wrappedFetch = createFetchWithRetry(baseFetch, verbose);
239
245
  if (verbose) {
@@ -1,4 +1,4 @@
1
- import "./chunk-KJOJNPDF.mjs";
1
+ import "./chunk-GWCYOEE3.mjs";
2
2
 
3
3
  // src/sync/allSerializableEntitiesConfig.ts
4
4
  var allSerializableEntitiesConfig = {
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  withFormatOptions,
22
22
  withProjectOptions,
23
23
  withTeamOptions
24
- } from "./chunk-KJOJNPDF.mjs";
24
+ } from "./chunk-GWCYOEE3.mjs";
25
25
 
26
26
  // src/index.ts
27
27
  import * as dotenv from "dotenv";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.66.7-alpha.10+82091b216c",
3
+ "version": "20.67.1-alpha.17+f02f0b67f8",
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": "^7.10.1",
29
29
  "@thi.ng/mime": "^2.2.23",
30
- "@uniformdev/assets": "20.66.7-alpha.10+82091b216c",
31
- "@uniformdev/canvas": "20.66.7-alpha.10+82091b216c",
32
- "@uniformdev/context": "20.66.7-alpha.10+82091b216c",
33
- "@uniformdev/files": "20.66.7-alpha.10+82091b216c",
34
- "@uniformdev/project-map": "20.66.7-alpha.10+82091b216c",
35
- "@uniformdev/redirect": "20.66.7-alpha.10+82091b216c",
36
- "@uniformdev/richtext": "20.66.7-alpha.10+82091b216c",
30
+ "@uniformdev/assets": "20.67.1-alpha.17+f02f0b67f8",
31
+ "@uniformdev/canvas": "20.67.1-alpha.17+f02f0b67f8",
32
+ "@uniformdev/context": "20.67.1-alpha.17+f02f0b67f8",
33
+ "@uniformdev/files": "20.67.1-alpha.17+f02f0b67f8",
34
+ "@uniformdev/project-map": "20.67.1-alpha.17+f02f0b67f8",
35
+ "@uniformdev/redirect": "20.67.1-alpha.17+f02f0b67f8",
36
+ "@uniformdev/richtext": "20.67.1-alpha.17+f02f0b67f8",
37
37
  "call-bind": "^1.0.2",
38
38
  "colorette": "2.0.20",
39
39
  "cosmiconfig": "9.0.0",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "82091b216c4d60c8c9032b5e967c2adcbe18d3c0"
83
+ "gitHead": "f02f0b67f86bf3e1f8283212e0045e2d62e49ddd"
84
84
  }