@uniformdev/cli 18.1.1-alpha.11 → 18.1.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.
@@ -90,6 +90,7 @@ declare function createSyncEngineConsoleLogger(options?: {
90
90
  type ApiArgs = {
91
91
  apiKey: string;
92
92
  apiHost: string;
93
+ edgeApiHost: string;
93
94
  proxy?: string;
94
95
  };
95
96
  declare function withApiOptions<T>(yargs: Argv<T>): Argv<T>;
@@ -1646,17 +1646,22 @@ var import_isomorphic_unfetch = __toESM(require("isomorphic-unfetch"));
1646
1646
  var import_js_yaml = require("js-yaml");
1647
1647
  var import_path = require("path");
1648
1648
  function withApiOptions(yargs) {
1649
- var _a, _b, _c;
1649
+ var _a, _b;
1650
1650
  return yargs.option("apiKey", {
1651
- describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
1652
- default: (_c = (_b = (_a = process.env.UNIFORM_CLI_API_KEY) != null ? _a : process.env.CANVAS_CLI_API_KEY) != null ? _b : process.env.UPM_CLI_API_KEY) != null ? _c : process.env.UNIFORM_API_KEY,
1651
+ describe: "Uniform API key. Defaults to CANVAS_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
1652
+ default: (_b = (_a = process.env.CANVAS_CLI_API_KEY) != null ? _a : process.env.UPM_CLI_API_KEY) != null ? _b : process.env.UNIFORM_API_KEY,
1653
1653
  demandOption: true,
1654
1654
  type: "string"
1655
1655
  }).option("apiHost", {
1656
- describe: "Uniform host. Defaults to UNIFORM_CLI_BASE_URL env or https://uniform.app. Supports dotenv.",
1656
+ describe: "Uniform host. Defaults to UNIFORM_CLI_BASE_URL env var or https://uniform.app. Supports dotenv.",
1657
1657
  default: process.env.UNIFORM_CLI_BASE_URL || "https://uniform.app",
1658
1658
  demandOption: true,
1659
1659
  type: "string"
1660
+ }).option("edgeApiHost", {
1661
+ describe: "Uniform edge host. Defaults to UNIFORM_CLI_BASE_EDGE_URL env var or https://uniform.global. Supports dotenv.",
1662
+ default: process.env.UNIFORM_CLI_BASE_EDGE_URL || "https://uniform.global",
1663
+ demandOption: true,
1664
+ type: "string"
1660
1665
  }).option("proxy", {
1661
1666
  describe: "HTTPS proxy to use for Uniform API calls. Defaults to HTTPS_PROXY, https_proxy, ALL_PROXY, or all_proxy env vars (in that order). Supports dotenv.",
1662
1667
  default: process.env.HTTPS_PROXY || process.env.https_proxy || process.env.ALL_PROXY || process.env.all_proxy,
@@ -59,17 +59,22 @@ import unfetch from "isomorphic-unfetch";
59
59
  import { dump, load } from "js-yaml";
60
60
  import { extname } from "path";
61
61
  function withApiOptions(yargs) {
62
- var _a, _b, _c;
62
+ var _a, _b;
63
63
  return yargs.option("apiKey", {
64
- describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
65
- default: (_c = (_b = (_a = process.env.UNIFORM_CLI_API_KEY) != null ? _a : process.env.CANVAS_CLI_API_KEY) != null ? _b : process.env.UPM_CLI_API_KEY) != null ? _c : process.env.UNIFORM_API_KEY,
64
+ describe: "Uniform API key. Defaults to CANVAS_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
65
+ default: (_b = (_a = process.env.CANVAS_CLI_API_KEY) != null ? _a : process.env.UPM_CLI_API_KEY) != null ? _b : process.env.UNIFORM_API_KEY,
66
66
  demandOption: true,
67
67
  type: "string"
68
68
  }).option("apiHost", {
69
- describe: "Uniform host. Defaults to UNIFORM_CLI_BASE_URL env or https://uniform.app. Supports dotenv.",
69
+ describe: "Uniform host. Defaults to UNIFORM_CLI_BASE_URL env var or https://uniform.app. Supports dotenv.",
70
70
  default: process.env.UNIFORM_CLI_BASE_URL || "https://uniform.app",
71
71
  demandOption: true,
72
72
  type: "string"
73
+ }).option("edgeApiHost", {
74
+ describe: "Uniform edge host. Defaults to UNIFORM_CLI_BASE_EDGE_URL env var or https://uniform.global. Supports dotenv.",
75
+ default: process.env.UNIFORM_CLI_BASE_EDGE_URL || "https://uniform.global",
76
+ demandOption: true,
77
+ type: "string"
73
78
  }).option("proxy", {
74
79
  describe: "HTTPS proxy to use for Uniform API calls. Defaults to HTTPS_PROXY, https_proxy, ALL_PROXY, or all_proxy env vars (in that order). Supports dotenv.",
75
80
  default: process.env.HTTPS_PROXY || process.env.https_proxy || process.env.ALL_PROXY || process.env.all_proxy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "18.1.1-alpha.11+c81a052e2",
3
+ "version": "18.1.2-alpha.7+682b9aac6",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -34,7 +34,7 @@
34
34
  "format": "prettier --write \"src/**/*.{js,ts,tsx}\""
35
35
  },
36
36
  "dependencies": {
37
- "@uniformdev/uniform-new": "18.1.1-alpha.11+c81a052e2",
37
+ "@uniformdev/uniform-new": "18.1.2-alpha.7+682b9aac6",
38
38
  "diff": "^5.0.0",
39
39
  "dotenv": "^16.0.3",
40
40
  "https-proxy-agent": "^5.0.1",
@@ -47,7 +47,7 @@
47
47
  "@types/diff": "5.0.2",
48
48
  "@types/js-yaml": "4.0.5",
49
49
  "@types/lodash.isequalwith": "4.4.7",
50
- "@types/yargs": "17.0.19"
50
+ "@types/yargs": "17.0.20"
51
51
  },
52
52
  "bin": {
53
53
  "uniform": "./cli.js"
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "c81a052e2c13c6d3d786d7030f11a7724a52b2da"
61
+ "gitHead": "682b9aac6143d5f462a7126f4ceab55a7c7d0c09"
62
62
  }