@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.
- package/dist/{chunk-NNLVNLDW.mjs → chunk-6QA6UNAY.mjs} +24 -2
- package/dist/index.js +354 -324
- package/dist/index.mjs +331 -323
- package/dist/sync/index.js +24 -2
- package/dist/sync/index.mjs +1 -1
- package/package.json +7 -7
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,10 +34,10 @@
|
|
|
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
|
-
"zod": "3.20.
|
|
40
|
+
"zod": "3.20.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/diff": "5.0.2",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "bd4414826a6d38b928b5ba2ea68e58160b784562"
|
|
62
62
|
}
|