@uniformdev/cli 18.18.1-alpha.12 → 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.
- package/dist/{chunk-NNLVNLDW.mjs → chunk-6QA6UNAY.mjs} +24 -2
- package/dist/index.js +44 -14
- package/dist/index.mjs +21 -13
- package/dist/sync/index.js +24 -2
- package/dist/sync/index.mjs +1 -1
- package/package.json +6 -6
|
@@ -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 :
|
|
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 :
|
|
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
|
}) {
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
26
|
mod
|
|
23
27
|
));
|
|
@@ -886,6 +890,8 @@ var require_route = __commonJS({
|
|
|
886
890
|
const models = Object.keys(conversions);
|
|
887
891
|
for (let len = models.length, i = 0; i < len; i++) {
|
|
888
892
|
graph[models[i]] = {
|
|
893
|
+
// http://jsperf.com/1-vs-infinity
|
|
894
|
+
// micro-opt, but this is simple.
|
|
889
895
|
distance: -1,
|
|
890
896
|
parent: null
|
|
891
897
|
};
|
|
@@ -1061,6 +1067,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1061
1067
|
const styles = {
|
|
1062
1068
|
modifier: {
|
|
1063
1069
|
reset: [0, 0],
|
|
1070
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
1064
1071
|
bold: [1, 22],
|
|
1065
1072
|
dim: [2, 22],
|
|
1066
1073
|
italic: [3, 23],
|
|
@@ -1078,6 +1085,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1078
1085
|
magenta: [35, 39],
|
|
1079
1086
|
cyan: [36, 39],
|
|
1080
1087
|
white: [37, 39],
|
|
1088
|
+
// Bright color
|
|
1081
1089
|
blackBright: [90, 39],
|
|
1082
1090
|
redBright: [91, 39],
|
|
1083
1091
|
greenBright: [92, 39],
|
|
@@ -1096,6 +1104,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1096
1104
|
bgMagenta: [45, 49],
|
|
1097
1105
|
bgCyan: [46, 49],
|
|
1098
1106
|
bgWhite: [47, 49],
|
|
1107
|
+
// Bright color
|
|
1099
1108
|
bgBlackBright: [100, 49],
|
|
1100
1109
|
bgRedBright: [101, 49],
|
|
1101
1110
|
bgGreenBright: [102, 49],
|
|
@@ -1664,7 +1673,13 @@ function withApiOptions(yargs18) {
|
|
|
1664
1673
|
var _a, _b, _c;
|
|
1665
1674
|
return yargs18.option("apiKey", {
|
|
1666
1675
|
describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
|
|
1667
|
-
default: (_c = (_b = (_a = process.env.UNIFORM_CLI_API_KEY) != null ? _a :
|
|
1676
|
+
default: (_c = (_b = (_a = process.env.UNIFORM_CLI_API_KEY) != null ? _a : (
|
|
1677
|
+
// deprecated
|
|
1678
|
+
process.env.CANVAS_CLI_API_KEY
|
|
1679
|
+
)) != null ? _b : (
|
|
1680
|
+
// deprecated
|
|
1681
|
+
process.env.UPM_CLI_API_KEY
|
|
1682
|
+
)) != null ? _c : process.env.UNIFORM_API_KEY,
|
|
1668
1683
|
demandOption: true,
|
|
1669
1684
|
type: "string"
|
|
1670
1685
|
}).option("apiHost", {
|
|
@@ -1703,7 +1718,13 @@ function withProjectOptions(yargs18) {
|
|
|
1703
1718
|
var _a, _b, _c;
|
|
1704
1719
|
return yargs18.option("project", {
|
|
1705
1720
|
describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
|
|
1706
|
-
default: (_c = (_b = (_a = process.env.UNIFORM_CLI_PROJECT_ID) != null ? _a :
|
|
1721
|
+
default: (_c = (_b = (_a = process.env.UNIFORM_CLI_PROJECT_ID) != null ? _a : (
|
|
1722
|
+
// deprecated
|
|
1723
|
+
process.env.CANVAS_CLI_PROJECT_ID
|
|
1724
|
+
)) != null ? _b : (
|
|
1725
|
+
// deprecated
|
|
1726
|
+
process.env.UPM_CLI_PROJECT_ID
|
|
1727
|
+
)) != null ? _c : process.env.UNIFORM_PROJECT_ID,
|
|
1707
1728
|
demandOption: true,
|
|
1708
1729
|
type: "string",
|
|
1709
1730
|
alias: ["p"]
|
|
@@ -1867,6 +1888,7 @@ async function syncEngine({
|
|
|
1867
1888
|
mode,
|
|
1868
1889
|
allowEmptySource = false,
|
|
1869
1890
|
whatIf = false,
|
|
1891
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1870
1892
|
log = () => {
|
|
1871
1893
|
}
|
|
1872
1894
|
}) {
|
|
@@ -2523,6 +2545,10 @@ var CompositionListModule = {
|
|
|
2523
2545
|
default: false,
|
|
2524
2546
|
describe: "Resolve pattern references in the composition"
|
|
2525
2547
|
},
|
|
2548
|
+
resolveOverrides: {
|
|
2549
|
+
type: "boolean",
|
|
2550
|
+
default: false
|
|
2551
|
+
},
|
|
2526
2552
|
componentIDs: {
|
|
2527
2553
|
type: "boolean",
|
|
2528
2554
|
default: false,
|
|
@@ -2544,6 +2570,7 @@ var CompositionListModule = {
|
|
|
2544
2570
|
project: projectId,
|
|
2545
2571
|
state,
|
|
2546
2572
|
resolvePatterns,
|
|
2573
|
+
resolveOverrides,
|
|
2547
2574
|
componentIDs
|
|
2548
2575
|
}) => {
|
|
2549
2576
|
const fetch3 = nodeFetchProxy(proxy);
|
|
@@ -2553,7 +2580,8 @@ var CompositionListModule = {
|
|
|
2553
2580
|
offset,
|
|
2554
2581
|
state: convertCompositionState(state),
|
|
2555
2582
|
skipPatternResolution: !resolvePatterns,
|
|
2556
|
-
withComponentIDs: componentIDs
|
|
2583
|
+
withComponentIDs: componentIDs,
|
|
2584
|
+
skipParameterResolution: !resolveOverrides
|
|
2557
2585
|
});
|
|
2558
2586
|
emitWithFormat(res.compositions, format, filename);
|
|
2559
2587
|
}
|
|
@@ -2585,6 +2613,7 @@ function createComponentInstanceEngineDataSource({
|
|
|
2585
2613
|
state: stateId,
|
|
2586
2614
|
skipPatternResolution: true,
|
|
2587
2615
|
skipParameterResolution: true,
|
|
2616
|
+
skipOverridesResolution: true,
|
|
2588
2617
|
withComponentIDs: true
|
|
2589
2618
|
})).compositions,
|
|
2590
2619
|
{ pageSize: 100 }
|
|
@@ -2900,6 +2929,7 @@ var DataTypeGetModule = {
|
|
|
2900
2929
|
builder: (yargs18) => withFormatOptions(
|
|
2901
2930
|
withApiOptions(
|
|
2902
2931
|
withProjectOptions(
|
|
2932
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2903
2933
|
yargs18.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
|
|
2904
2934
|
)
|
|
2905
2935
|
)
|
|
@@ -4740,7 +4770,7 @@ var import_posthog_node = require("posthog-node");
|
|
|
4740
4770
|
// package.json
|
|
4741
4771
|
var package_default = {
|
|
4742
4772
|
name: "@uniformdev/cli",
|
|
4743
|
-
version: "18.
|
|
4773
|
+
version: "18.19.0",
|
|
4744
4774
|
description: "Uniform command line interface tool",
|
|
4745
4775
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
4746
4776
|
main: "./cli.js",
|
|
@@ -4759,33 +4789,33 @@ var package_default = {
|
|
|
4759
4789
|
"@uniformdev/canvas": "workspace:*",
|
|
4760
4790
|
"@uniformdev/context": "workspace:*",
|
|
4761
4791
|
"@uniformdev/project-map": "workspace:*",
|
|
4792
|
+
diff: "^5.0.0",
|
|
4793
|
+
dotenv: "^16.0.3",
|
|
4762
4794
|
execa: "5.1.1",
|
|
4763
4795
|
"fs-jetpack": "5.1.0",
|
|
4764
4796
|
graphql: "16.6.0",
|
|
4765
4797
|
"graphql-request": "5.1.0",
|
|
4798
|
+
"https-proxy-agent": "^5.0.1",
|
|
4766
4799
|
inquirer: "8.2.5",
|
|
4767
4800
|
"isomorphic-git": "1.21.0",
|
|
4801
|
+
"isomorphic-unfetch": "^3.1.0",
|
|
4802
|
+
"js-yaml": "^4.1.0",
|
|
4768
4803
|
jsonwebtoken: "9.0.0",
|
|
4804
|
+
"lodash.isequalwith": "^4.4.0",
|
|
4769
4805
|
open: "8.4.0",
|
|
4770
4806
|
ora: "6.1.2",
|
|
4771
|
-
"posthog-node": "2.
|
|
4807
|
+
"posthog-node": "2.5.3",
|
|
4772
4808
|
slugify: "1.6.5",
|
|
4773
|
-
diff: "^5.0.0",
|
|
4774
|
-
dotenv: "^16.0.3",
|
|
4775
|
-
"https-proxy-agent": "^5.0.1",
|
|
4776
|
-
"isomorphic-unfetch": "^3.1.0",
|
|
4777
|
-
"js-yaml": "^4.1.0",
|
|
4778
|
-
"lodash.isequalwith": "^4.4.0",
|
|
4779
4809
|
yargs: "^17.6.2",
|
|
4780
4810
|
zod: "3.20.6"
|
|
4781
4811
|
},
|
|
4782
4812
|
devDependencies: {
|
|
4783
|
-
"@types/inquirer": "9.0.3",
|
|
4784
|
-
"@types/jsonwebtoken": "9.0.1",
|
|
4785
|
-
"@types/node": "18.11.17",
|
|
4786
4813
|
"@types/diff": "5.0.2",
|
|
4814
|
+
"@types/inquirer": "9.0.3",
|
|
4787
4815
|
"@types/js-yaml": "4.0.5",
|
|
4816
|
+
"@types/jsonwebtoken": "9.0.1",
|
|
4788
4817
|
"@types/lodash.isequalwith": "4.4.7",
|
|
4818
|
+
"@types/node": "18.11.17",
|
|
4789
4819
|
"@types/yargs": "17.0.22",
|
|
4790
4820
|
"p-limit": "4.0.0"
|
|
4791
4821
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
withFormatOptions,
|
|
23
23
|
withProjectOptions,
|
|
24
24
|
writeUniformPackage
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6QA6UNAY.mjs";
|
|
26
26
|
|
|
27
27
|
// src/index.ts
|
|
28
28
|
import yargs17 from "yargs";
|
|
@@ -549,6 +549,10 @@ var CompositionListModule = {
|
|
|
549
549
|
default: false,
|
|
550
550
|
describe: "Resolve pattern references in the composition"
|
|
551
551
|
},
|
|
552
|
+
resolveOverrides: {
|
|
553
|
+
type: "boolean",
|
|
554
|
+
default: false
|
|
555
|
+
},
|
|
552
556
|
componentIDs: {
|
|
553
557
|
type: "boolean",
|
|
554
558
|
default: false,
|
|
@@ -570,6 +574,7 @@ var CompositionListModule = {
|
|
|
570
574
|
project: projectId,
|
|
571
575
|
state,
|
|
572
576
|
resolvePatterns,
|
|
577
|
+
resolveOverrides,
|
|
573
578
|
componentIDs
|
|
574
579
|
}) => {
|
|
575
580
|
const fetch3 = nodeFetchProxy(proxy);
|
|
@@ -579,7 +584,8 @@ var CompositionListModule = {
|
|
|
579
584
|
offset,
|
|
580
585
|
state: convertCompositionState(state),
|
|
581
586
|
skipPatternResolution: !resolvePatterns,
|
|
582
|
-
withComponentIDs: componentIDs
|
|
587
|
+
withComponentIDs: componentIDs,
|
|
588
|
+
skipParameterResolution: !resolveOverrides
|
|
583
589
|
});
|
|
584
590
|
emitWithFormat(res.compositions, format, filename);
|
|
585
591
|
}
|
|
@@ -611,6 +617,7 @@ function createComponentInstanceEngineDataSource({
|
|
|
611
617
|
state: stateId,
|
|
612
618
|
skipPatternResolution: true,
|
|
613
619
|
skipParameterResolution: true,
|
|
620
|
+
skipOverridesResolution: true,
|
|
614
621
|
withComponentIDs: true
|
|
615
622
|
})).compositions,
|
|
616
623
|
{ pageSize: 100 }
|
|
@@ -926,6 +933,7 @@ var DataTypeGetModule = {
|
|
|
926
933
|
builder: (yargs18) => withFormatOptions(
|
|
927
934
|
withApiOptions(
|
|
928
935
|
withProjectOptions(
|
|
936
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
929
937
|
yargs18.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
|
|
930
938
|
)
|
|
931
939
|
)
|
|
@@ -2766,7 +2774,7 @@ import { PostHog } from "posthog-node";
|
|
|
2766
2774
|
// package.json
|
|
2767
2775
|
var package_default = {
|
|
2768
2776
|
name: "@uniformdev/cli",
|
|
2769
|
-
version: "18.
|
|
2777
|
+
version: "18.19.0",
|
|
2770
2778
|
description: "Uniform command line interface tool",
|
|
2771
2779
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
2772
2780
|
main: "./cli.js",
|
|
@@ -2785,33 +2793,33 @@ var package_default = {
|
|
|
2785
2793
|
"@uniformdev/canvas": "workspace:*",
|
|
2786
2794
|
"@uniformdev/context": "workspace:*",
|
|
2787
2795
|
"@uniformdev/project-map": "workspace:*",
|
|
2796
|
+
diff: "^5.0.0",
|
|
2797
|
+
dotenv: "^16.0.3",
|
|
2788
2798
|
execa: "5.1.1",
|
|
2789
2799
|
"fs-jetpack": "5.1.0",
|
|
2790
2800
|
graphql: "16.6.0",
|
|
2791
2801
|
"graphql-request": "5.1.0",
|
|
2802
|
+
"https-proxy-agent": "^5.0.1",
|
|
2792
2803
|
inquirer: "8.2.5",
|
|
2793
2804
|
"isomorphic-git": "1.21.0",
|
|
2805
|
+
"isomorphic-unfetch": "^3.1.0",
|
|
2806
|
+
"js-yaml": "^4.1.0",
|
|
2794
2807
|
jsonwebtoken: "9.0.0",
|
|
2808
|
+
"lodash.isequalwith": "^4.4.0",
|
|
2795
2809
|
open: "8.4.0",
|
|
2796
2810
|
ora: "6.1.2",
|
|
2797
|
-
"posthog-node": "2.
|
|
2811
|
+
"posthog-node": "2.5.3",
|
|
2798
2812
|
slugify: "1.6.5",
|
|
2799
|
-
diff: "^5.0.0",
|
|
2800
|
-
dotenv: "^16.0.3",
|
|
2801
|
-
"https-proxy-agent": "^5.0.1",
|
|
2802
|
-
"isomorphic-unfetch": "^3.1.0",
|
|
2803
|
-
"js-yaml": "^4.1.0",
|
|
2804
|
-
"lodash.isequalwith": "^4.4.0",
|
|
2805
2813
|
yargs: "^17.6.2",
|
|
2806
2814
|
zod: "3.20.6"
|
|
2807
2815
|
},
|
|
2808
2816
|
devDependencies: {
|
|
2809
|
-
"@types/inquirer": "9.0.3",
|
|
2810
|
-
"@types/jsonwebtoken": "9.0.1",
|
|
2811
|
-
"@types/node": "18.11.17",
|
|
2812
2817
|
"@types/diff": "5.0.2",
|
|
2818
|
+
"@types/inquirer": "9.0.3",
|
|
2813
2819
|
"@types/js-yaml": "4.0.5",
|
|
2820
|
+
"@types/jsonwebtoken": "9.0.1",
|
|
2814
2821
|
"@types/lodash.isequalwith": "4.4.7",
|
|
2822
|
+
"@types/node": "18.11.17",
|
|
2815
2823
|
"@types/yargs": "17.0.22",
|
|
2816
2824
|
"p-limit": "4.0.0"
|
|
2817
2825
|
},
|
package/dist/sync/index.js
CHANGED
|
@@ -21,6 +21,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
23
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
28
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
29
|
mod
|
|
26
30
|
));
|
|
@@ -863,6 +867,8 @@ var require_route = __commonJS({
|
|
|
863
867
|
const models = Object.keys(conversions);
|
|
864
868
|
for (let len = models.length, i = 0; i < len; i++) {
|
|
865
869
|
graph[models[i]] = {
|
|
870
|
+
// http://jsperf.com/1-vs-infinity
|
|
871
|
+
// micro-opt, but this is simple.
|
|
866
872
|
distance: -1,
|
|
867
873
|
parent: null
|
|
868
874
|
};
|
|
@@ -1038,6 +1044,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1038
1044
|
const styles = {
|
|
1039
1045
|
modifier: {
|
|
1040
1046
|
reset: [0, 0],
|
|
1047
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
1041
1048
|
bold: [1, 22],
|
|
1042
1049
|
dim: [2, 22],
|
|
1043
1050
|
italic: [3, 23],
|
|
@@ -1055,6 +1062,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1055
1062
|
magenta: [35, 39],
|
|
1056
1063
|
cyan: [36, 39],
|
|
1057
1064
|
white: [37, 39],
|
|
1065
|
+
// Bright color
|
|
1058
1066
|
blackBright: [90, 39],
|
|
1059
1067
|
redBright: [91, 39],
|
|
1060
1068
|
greenBright: [92, 39],
|
|
@@ -1073,6 +1081,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1073
1081
|
bgMagenta: [45, 49],
|
|
1074
1082
|
bgCyan: [46, 49],
|
|
1075
1083
|
bgWhite: [47, 49],
|
|
1084
|
+
// Bright color
|
|
1076
1085
|
bgBlackBright: [100, 49],
|
|
1077
1086
|
bgRedBright: [101, 49],
|
|
1078
1087
|
bgGreenBright: [102, 49],
|
|
@@ -1649,7 +1658,13 @@ function withApiOptions(yargs) {
|
|
|
1649
1658
|
var _a, _b, _c;
|
|
1650
1659
|
return yargs.option("apiKey", {
|
|
1651
1660
|
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 :
|
|
1661
|
+
default: (_c = (_b = (_a = process.env.UNIFORM_CLI_API_KEY) != null ? _a : (
|
|
1662
|
+
// deprecated
|
|
1663
|
+
process.env.CANVAS_CLI_API_KEY
|
|
1664
|
+
)) != null ? _b : (
|
|
1665
|
+
// deprecated
|
|
1666
|
+
process.env.UPM_CLI_API_KEY
|
|
1667
|
+
)) != null ? _c : process.env.UNIFORM_API_KEY,
|
|
1653
1668
|
demandOption: true,
|
|
1654
1669
|
type: "string"
|
|
1655
1670
|
}).option("apiHost", {
|
|
@@ -1688,7 +1703,13 @@ function withProjectOptions(yargs) {
|
|
|
1688
1703
|
var _a, _b, _c;
|
|
1689
1704
|
return yargs.option("project", {
|
|
1690
1705
|
describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
|
|
1691
|
-
default: (_c = (_b = (_a = process.env.UNIFORM_CLI_PROJECT_ID) != null ? _a :
|
|
1706
|
+
default: (_c = (_b = (_a = process.env.UNIFORM_CLI_PROJECT_ID) != null ? _a : (
|
|
1707
|
+
// deprecated
|
|
1708
|
+
process.env.CANVAS_CLI_PROJECT_ID
|
|
1709
|
+
)) != null ? _b : (
|
|
1710
|
+
// deprecated
|
|
1711
|
+
process.env.UPM_CLI_PROJECT_ID
|
|
1712
|
+
)) != null ? _c : process.env.UNIFORM_PROJECT_ID,
|
|
1692
1713
|
demandOption: true,
|
|
1693
1714
|
type: "string",
|
|
1694
1715
|
alias: ["p"]
|
|
@@ -1852,6 +1873,7 @@ async function syncEngine({
|
|
|
1852
1873
|
mode,
|
|
1853
1874
|
allowEmptySource = false,
|
|
1854
1875
|
whatIf = false,
|
|
1876
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1855
1877
|
log = () => {
|
|
1856
1878
|
}
|
|
1857
1879
|
}) {
|
package/dist/sync/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.19.0",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\""
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@uniformdev/canvas": "18.
|
|
20
|
-
"@uniformdev/context": "18.
|
|
21
|
-
"@uniformdev/project-map": "18.
|
|
19
|
+
"@uniformdev/canvas": "18.19.0",
|
|
20
|
+
"@uniformdev/context": "18.19.0",
|
|
21
|
+
"@uniformdev/project-map": "18.19.0",
|
|
22
22
|
"diff": "^5.0.0",
|
|
23
23
|
"dotenv": "^16.0.3",
|
|
24
24
|
"execa": "5.1.1",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"lodash.isequalwith": "^4.4.0",
|
|
35
35
|
"open": "8.4.0",
|
|
36
36
|
"ora": "6.1.2",
|
|
37
|
-
"posthog-node": "2.
|
|
37
|
+
"posthog-node": "2.5.3",
|
|
38
38
|
"slugify": "1.6.5",
|
|
39
39
|
"yargs": "^17.6.2",
|
|
40
40
|
"zod": "3.20.6"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "bd4414826a6d38b928b5ba2ea68e58160b784562"
|
|
62
62
|
}
|