@uniformdev/cli 18.17.1-alpha.13 → 18.19.0

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.
@@ -23,6 +23,10 @@ var __copyProps = (to, from, except, desc) => {
23
23
  return to;
24
24
  };
25
25
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
+ // If the importer is in node compatibility mode or this is not an ESM
27
+ // file that has been converted to a CommonJS file using a Babel-
28
+ // compatible transform (i.e. "__esModule" has not been set), then set
29
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
30
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
31
  mod
28
32
  ));
@@ -890,6 +894,8 @@ var require_route = __commonJS({
890
894
  const models = Object.keys(conversions);
891
895
  for (let len = models.length, i = 0; i < len; i++) {
892
896
  graph[models[i]] = {
897
+ // http://jsperf.com/1-vs-infinity
898
+ // micro-opt, but this is simple.
893
899
  distance: -1,
894
900
  parent: null
895
901
  };
@@ -1065,6 +1071,7 @@ var require_ansi_styles = __commonJS({
1065
1071
  const styles = {
1066
1072
  modifier: {
1067
1073
  reset: [0, 0],
1074
+ // 21 isn't widely supported and 22 does the same thing
1068
1075
  bold: [1, 22],
1069
1076
  dim: [2, 22],
1070
1077
  italic: [3, 23],
@@ -1082,6 +1089,7 @@ var require_ansi_styles = __commonJS({
1082
1089
  magenta: [35, 39],
1083
1090
  cyan: [36, 39],
1084
1091
  white: [37, 39],
1092
+ // Bright color
1085
1093
  blackBright: [90, 39],
1086
1094
  redBright: [91, 39],
1087
1095
  greenBright: [92, 39],
@@ -1100,6 +1108,7 @@ var require_ansi_styles = __commonJS({
1100
1108
  bgMagenta: [45, 49],
1101
1109
  bgCyan: [46, 49],
1102
1110
  bgWhite: [47, 49],
1111
+ // Bright color
1103
1112
  bgBlackBright: [100, 49],
1104
1113
  bgRedBright: [101, 49],
1105
1114
  bgGreenBright: [102, 49],
@@ -1654,7 +1663,13 @@ function withApiOptions(yargs) {
1654
1663
  var _a, _b, _c;
1655
1664
  return yargs.option("apiKey", {
1656
1665
  describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
1657
- 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,
1666
+ default: (_c = (_b = (_a = process.env.UNIFORM_CLI_API_KEY) != null ? _a : (
1667
+ // deprecated
1668
+ process.env.CANVAS_CLI_API_KEY
1669
+ )) != null ? _b : (
1670
+ // deprecated
1671
+ process.env.UPM_CLI_API_KEY
1672
+ )) != null ? _c : process.env.UNIFORM_API_KEY,
1658
1673
  demandOption: true,
1659
1674
  type: "string"
1660
1675
  }).option("apiHost", {
@@ -1693,7 +1708,13 @@ function withProjectOptions(yargs) {
1693
1708
  var _a, _b, _c;
1694
1709
  return yargs.option("project", {
1695
1710
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
1696
- default: (_c = (_b = (_a = process.env.UNIFORM_CLI_PROJECT_ID) != null ? _a : process.env.CANVAS_CLI_PROJECT_ID) != null ? _b : process.env.UPM_CLI_PROJECT_ID) != null ? _c : process.env.UNIFORM_PROJECT_ID,
1711
+ default: (_c = (_b = (_a = process.env.UNIFORM_CLI_PROJECT_ID) != null ? _a : (
1712
+ // deprecated
1713
+ process.env.CANVAS_CLI_PROJECT_ID
1714
+ )) != null ? _b : (
1715
+ // deprecated
1716
+ process.env.UPM_CLI_PROJECT_ID
1717
+ )) != null ? _c : process.env.UNIFORM_PROJECT_ID,
1697
1718
  demandOption: true,
1698
1719
  type: "string",
1699
1720
  alias: ["p"]
@@ -1857,6 +1878,7 @@ async function syncEngine({
1857
1878
  mode,
1858
1879
  allowEmptySource = false,
1859
1880
  whatIf = false,
1881
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1860
1882
  log = () => {
1861
1883
  }
1862
1884
  }) {