@tamagui/cli-color 2.7.7 → 3.0.0-beta.643.1
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/cjs/index.cjs +42 -43
- package/dist/cjs/index.native.cjs +66 -0
- package/dist/cjs/index.native.js +47 -47
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +26 -25
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +26 -25
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +31 -30
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +7 -2
- package/types/index.d.ts.map +1 -1
- package/.turbo/turbo-build.log +0 -2
- package/tsconfig.json +0 -11
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,60 +1,59 @@
|
|
|
1
|
+
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
10
11
|
};
|
|
11
12
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
19
20
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
22
|
var index_exports = {};
|
|
24
23
|
__export(index_exports, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
Color: () => Color,
|
|
25
|
+
colorLog: () => colorLog,
|
|
26
|
+
colorString: () => colorString
|
|
28
27
|
});
|
|
29
28
|
module.exports = __toCommonJS(index_exports);
|
|
30
29
|
const Color = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
30
|
+
Reset: "\x1B[0m",
|
|
31
|
+
Bright: "\x1B[1m",
|
|
32
|
+
Dim: "\x1B[2m",
|
|
33
|
+
Underscore: "\x1B[4m",
|
|
34
|
+
Blink: "\x1B[5m",
|
|
35
|
+
Reverse: "\x1B[7m",
|
|
36
|
+
Hidden: "\x1B[8m",
|
|
37
|
+
FgBlack: "\x1B[30m",
|
|
38
|
+
FgRed: "\x1B[31m",
|
|
39
|
+
FgGreen: "\x1B[32m",
|
|
40
|
+
FgYellow: "\x1B[33m",
|
|
41
|
+
FgBlue: "\x1B[34m",
|
|
42
|
+
FgMagenta: "\x1B[35m",
|
|
43
|
+
FgCyan: "\x1B[36m",
|
|
44
|
+
FgWhite: "\x1B[37m",
|
|
45
|
+
BgBlack: "\x1B[40m",
|
|
46
|
+
BgRed: "\x1B[41m",
|
|
47
|
+
BgGreen: "\x1B[42m",
|
|
48
|
+
BgYellow: "\x1B[43m",
|
|
49
|
+
BgBlue: "\x1B[44m",
|
|
50
|
+
BgMagenta: "\x1B[45m",
|
|
51
|
+
BgCyan: "\x1B[46m",
|
|
52
|
+
BgWhite: "\x1B[47m"
|
|
54
53
|
};
|
|
55
54
|
function colorString(color, string) {
|
|
56
|
-
|
|
55
|
+
return `${color}${string}${Color.Reset}`;
|
|
57
56
|
}
|
|
58
57
|
function colorLog(color, ...args) {
|
|
59
|
-
|
|
60
|
-
}
|
|
58
|
+
console.info(...args.map((it) => typeof it === "string" ? colorString(color, it) : it));
|
|
59
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var index_exports = {};
|
|
25
|
+
__export(index_exports, {
|
|
26
|
+
Color: () => Color,
|
|
27
|
+
colorLog: () => colorLog,
|
|
28
|
+
colorString: () => colorString
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(index_exports);
|
|
31
|
+
var Color = {
|
|
32
|
+
Reset: "\x1B[0m",
|
|
33
|
+
Bright: "\x1B[1m",
|
|
34
|
+
Dim: "\x1B[2m",
|
|
35
|
+
Underscore: "\x1B[4m",
|
|
36
|
+
Blink: "\x1B[5m",
|
|
37
|
+
Reverse: "\x1B[7m",
|
|
38
|
+
Hidden: "\x1B[8m",
|
|
39
|
+
FgBlack: "\x1B[30m",
|
|
40
|
+
FgRed: "\x1B[31m",
|
|
41
|
+
FgGreen: "\x1B[32m",
|
|
42
|
+
FgYellow: "\x1B[33m",
|
|
43
|
+
FgBlue: "\x1B[34m",
|
|
44
|
+
FgMagenta: "\x1B[35m",
|
|
45
|
+
FgCyan: "\x1B[36m",
|
|
46
|
+
FgWhite: "\x1B[37m",
|
|
47
|
+
BgBlack: "\x1B[40m",
|
|
48
|
+
BgRed: "\x1B[41m",
|
|
49
|
+
BgGreen: "\x1B[42m",
|
|
50
|
+
BgYellow: "\x1B[43m",
|
|
51
|
+
BgBlue: "\x1B[44m",
|
|
52
|
+
BgMagenta: "\x1B[45m",
|
|
53
|
+
BgCyan: "\x1B[46m",
|
|
54
|
+
BgWhite: "\x1B[47m"
|
|
55
|
+
};
|
|
56
|
+
function colorString(color, string) {
|
|
57
|
+
return `${color}${string}${Color.Reset}`;
|
|
58
|
+
}
|
|
59
|
+
function colorLog(color) {
|
|
60
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
61
|
+
args[_key - 1] = arguments[_key];
|
|
62
|
+
}
|
|
63
|
+
console.info(...args.map(function(it) {
|
|
64
|
+
return typeof it === "string" ? colorString(color, it) : it;
|
|
65
|
+
}));
|
|
66
|
+
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var index_exports = {};
|
|
26
25
|
__export(index_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
Color: () => Color,
|
|
27
|
+
colorLog: () => colorLog,
|
|
28
|
+
colorString: () => colorString
|
|
30
29
|
});
|
|
31
30
|
module.exports = __toCommonJS(index_exports);
|
|
32
31
|
var Color = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
32
|
+
Reset: "\x1B[0m",
|
|
33
|
+
Bright: "\x1B[1m",
|
|
34
|
+
Dim: "\x1B[2m",
|
|
35
|
+
Underscore: "\x1B[4m",
|
|
36
|
+
Blink: "\x1B[5m",
|
|
37
|
+
Reverse: "\x1B[7m",
|
|
38
|
+
Hidden: "\x1B[8m",
|
|
39
|
+
FgBlack: "\x1B[30m",
|
|
40
|
+
FgRed: "\x1B[31m",
|
|
41
|
+
FgGreen: "\x1B[32m",
|
|
42
|
+
FgYellow: "\x1B[33m",
|
|
43
|
+
FgBlue: "\x1B[34m",
|
|
44
|
+
FgMagenta: "\x1B[35m",
|
|
45
|
+
FgCyan: "\x1B[36m",
|
|
46
|
+
FgWhite: "\x1B[37m",
|
|
47
|
+
BgBlack: "\x1B[40m",
|
|
48
|
+
BgRed: "\x1B[41m",
|
|
49
|
+
BgGreen: "\x1B[42m",
|
|
50
|
+
BgYellow: "\x1B[43m",
|
|
51
|
+
BgBlue: "\x1B[44m",
|
|
52
|
+
BgMagenta: "\x1B[45m",
|
|
53
|
+
BgCyan: "\x1B[46m",
|
|
54
|
+
BgWhite: "\x1B[47m"
|
|
56
55
|
};
|
|
57
56
|
function colorString(color, string) {
|
|
58
|
-
|
|
57
|
+
return `${color}${string}${Color.Reset}`;
|
|
59
58
|
}
|
|
60
59
|
function colorLog(color) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
61
|
+
args[_key - 1] = arguments[_key];
|
|
62
|
+
}
|
|
63
|
+
console.info(...args.map(function(it) {
|
|
64
|
+
return typeof it === "string" ? colorString(color, it) : it;
|
|
65
|
+
}));
|
|
67
66
|
}
|
|
67
|
+
|
|
68
68
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n Color: () => Color,\n colorLog: () => colorLog,\n colorString: () => colorString\n});\nmodule.exports = __toCommonJS(index_exports);\nvar Color = {\n Reset: \"\\x1B[0m\",\n Bright: \"\\x1B[1m\",\n Dim: \"\\x1B[2m\",\n Underscore: \"\\x1B[4m\",\n Blink: \"\\x1B[5m\",\n Reverse: \"\\x1B[7m\",\n Hidden: \"\\x1B[8m\",\n FgBlack: \"\\x1B[30m\",\n FgRed: \"\\x1B[31m\",\n FgGreen: \"\\x1B[32m\",\n FgYellow: \"\\x1B[33m\",\n FgBlue: \"\\x1B[34m\",\n FgMagenta: \"\\x1B[35m\",\n FgCyan: \"\\x1B[36m\",\n FgWhite: \"\\x1B[37m\",\n BgBlack: \"\\x1B[40m\",\n BgRed: \"\\x1B[41m\",\n BgGreen: \"\\x1B[42m\",\n BgYellow: \"\\x1B[43m\",\n BgBlue: \"\\x1B[44m\",\n BgMagenta: \"\\x1B[45m\",\n BgCyan: \"\\x1B[46m\",\n BgWhite: \"\\x1B[47m\"\n};\nfunction colorString(color, string) {\n return `${color}${string}${Color.Reset}`;\n}\nfunction colorLog(color) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n console.info(...args.map(function(it) {\n return typeof it === \"string\" ? colorString(color, it) : it;\n }));\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,aAAa;CACb,gBAAgB;CAChB,mBAAmB;AACrB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,QAAQ;CACV,OAAO;CACP,QAAQ;CACR,KAAK;CACL,YAAY;CACZ,OAAO;CACP,SAAS;CACT,QAAQ;CACR,SAAS;CACT,OAAO;CACP,SAAS;CACT,UAAU;CACV,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,SAAS;CACT,UAAU;CACV,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;AACX;AACA,SAAS,YAAY,OAAO,QAAQ;CAClC,OAAO,GAAG,QAAQ,SAAS,MAAM;AACnC;AACA,SAAS,SAAS,OAAO;CACvB,KAAK,IAAI,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,OAAO,IAAI,OAAO,IAAI,CAAC,GAAG,OAAO,GAAG,OAAO,MAAM,QAAQ;EAC1G,KAAK,OAAO,KAAK,UAAU;CAC7B;CACA,QAAQ,KAAK,GAAG,KAAK,IAAI,SAAS,IAAI;EACpC,OAAO,OAAO,OAAO,WAAW,YAAY,OAAO,EAAE,IAAI;CAC3D,CAAC,CAAC;AACJ"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
const Color = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
Reset: "\x1B[0m",
|
|
3
|
+
Bright: "\x1B[1m",
|
|
4
|
+
Dim: "\x1B[2m",
|
|
5
|
+
Underscore: "\x1B[4m",
|
|
6
|
+
Blink: "\x1B[5m",
|
|
7
|
+
Reverse: "\x1B[7m",
|
|
8
|
+
Hidden: "\x1B[8m",
|
|
9
|
+
FgBlack: "\x1B[30m",
|
|
10
|
+
FgRed: "\x1B[31m",
|
|
11
|
+
FgGreen: "\x1B[32m",
|
|
12
|
+
FgYellow: "\x1B[33m",
|
|
13
|
+
FgBlue: "\x1B[34m",
|
|
14
|
+
FgMagenta: "\x1B[35m",
|
|
15
|
+
FgCyan: "\x1B[36m",
|
|
16
|
+
FgWhite: "\x1B[37m",
|
|
17
|
+
BgBlack: "\x1B[40m",
|
|
18
|
+
BgRed: "\x1B[41m",
|
|
19
|
+
BgGreen: "\x1B[42m",
|
|
20
|
+
BgYellow: "\x1B[43m",
|
|
21
|
+
BgBlue: "\x1B[44m",
|
|
22
|
+
BgMagenta: "\x1B[45m",
|
|
23
|
+
BgCyan: "\x1B[46m",
|
|
24
|
+
BgWhite: "\x1B[47m"
|
|
25
25
|
};
|
|
26
26
|
function colorString(color, string) {
|
|
27
|
-
|
|
27
|
+
return `${color}${string}${Color.Reset}`;
|
|
28
28
|
}
|
|
29
29
|
function colorLog(color, ...args) {
|
|
30
|
-
|
|
30
|
+
console.info(...args.map((it) => typeof it === "string" ? colorString(color, it) : it));
|
|
31
31
|
}
|
|
32
|
+
|
|
32
33
|
export { Color, colorLog, colorString };
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["const Color = {\n Reset: \"\\x1B[0m\",\n Bright: \"\\x1B[1m\",\n Dim: \"\\x1B[2m\",\n Underscore: \"\\x1B[4m\",\n Blink: \"\\x1B[5m\",\n Reverse: \"\\x1B[7m\",\n Hidden: \"\\x1B[8m\",\n FgBlack: \"\\x1B[30m\",\n FgRed: \"\\x1B[31m\",\n FgGreen: \"\\x1B[32m\",\n FgYellow: \"\\x1B[33m\",\n FgBlue: \"\\x1B[34m\",\n FgMagenta: \"\\x1B[35m\",\n FgCyan: \"\\x1B[36m\",\n FgWhite: \"\\x1B[37m\",\n BgBlack: \"\\x1B[40m\",\n BgRed: \"\\x1B[41m\",\n BgGreen: \"\\x1B[42m\",\n BgYellow: \"\\x1B[43m\",\n BgBlue: \"\\x1B[44m\",\n BgMagenta: \"\\x1B[45m\",\n BgCyan: \"\\x1B[46m\",\n BgWhite: \"\\x1B[47m\"\n};\nfunction colorString(color, string) {\n return `${color}${string}${Color.Reset}`;\n}\nfunction colorLog(color, ...args) {\n console.info(\n ...args.map((it) => typeof it === \"string\" ? colorString(color, it) : it)\n );\n}\nexport {\n Color,\n colorLog,\n colorString\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,QAAQ;CACZ,OAAO;CACP,QAAQ;CACR,KAAK;CACL,YAAY;CACZ,OAAO;CACP,SAAS;CACT,QAAQ;CACR,SAAS;CACT,OAAO;CACP,SAAS;CACT,UAAU;CACV,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,SAAS;CACT,UAAU;CACV,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;AACX;AACA,SAAS,YAAY,OAAO,QAAQ;CAClC,OAAO,GAAG,QAAQ,SAAS,MAAM;AACnC;AACA,SAAS,SAAS,OAAO,GAAG,MAAM;CAChC,QAAQ,KACN,GAAG,KAAK,KAAK,OAAO,OAAO,OAAO,WAAW,YAAY,OAAO,EAAE,IAAI,EAAE,CAC1E;AACF"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
const Color = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
Reset: "\x1B[0m",
|
|
3
|
+
Bright: "\x1B[1m",
|
|
4
|
+
Dim: "\x1B[2m",
|
|
5
|
+
Underscore: "\x1B[4m",
|
|
6
|
+
Blink: "\x1B[5m",
|
|
7
|
+
Reverse: "\x1B[7m",
|
|
8
|
+
Hidden: "\x1B[8m",
|
|
9
|
+
FgBlack: "\x1B[30m",
|
|
10
|
+
FgRed: "\x1B[31m",
|
|
11
|
+
FgGreen: "\x1B[32m",
|
|
12
|
+
FgYellow: "\x1B[33m",
|
|
13
|
+
FgBlue: "\x1B[34m",
|
|
14
|
+
FgMagenta: "\x1B[35m",
|
|
15
|
+
FgCyan: "\x1B[36m",
|
|
16
|
+
FgWhite: "\x1B[37m",
|
|
17
|
+
BgBlack: "\x1B[40m",
|
|
18
|
+
BgRed: "\x1B[41m",
|
|
19
|
+
BgGreen: "\x1B[42m",
|
|
20
|
+
BgYellow: "\x1B[43m",
|
|
21
|
+
BgBlue: "\x1B[44m",
|
|
22
|
+
BgMagenta: "\x1B[45m",
|
|
23
|
+
BgCyan: "\x1B[46m",
|
|
24
|
+
BgWhite: "\x1B[47m"
|
|
25
25
|
};
|
|
26
26
|
function colorString(color, string) {
|
|
27
|
-
|
|
27
|
+
return `${color}${string}${Color.Reset}`;
|
|
28
28
|
}
|
|
29
29
|
function colorLog(color, ...args) {
|
|
30
|
-
|
|
30
|
+
console.info(...args.map((it) => typeof it === "string" ? colorString(color, it) : it));
|
|
31
31
|
}
|
|
32
|
+
|
|
32
33
|
export { Color, colorLog, colorString };
|
|
33
34
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["const Color = {\n Reset: \"\\x1B[0m\",\n Bright: \"\\x1B[1m\",\n Dim: \"\\x1B[2m\",\n Underscore: \"\\x1B[4m\",\n Blink: \"\\x1B[5m\",\n Reverse: \"\\x1B[7m\",\n Hidden: \"\\x1B[8m\",\n FgBlack: \"\\x1B[30m\",\n FgRed: \"\\x1B[31m\",\n FgGreen: \"\\x1B[32m\",\n FgYellow: \"\\x1B[33m\",\n FgBlue: \"\\x1B[34m\",\n FgMagenta: \"\\x1B[35m\",\n FgCyan: \"\\x1B[36m\",\n FgWhite: \"\\x1B[37m\",\n BgBlack: \"\\x1B[40m\",\n BgRed: \"\\x1B[41m\",\n BgGreen: \"\\x1B[42m\",\n BgYellow: \"\\x1B[43m\",\n BgBlue: \"\\x1B[44m\",\n BgMagenta: \"\\x1B[45m\",\n BgCyan: \"\\x1B[46m\",\n BgWhite: \"\\x1B[47m\"\n};\nfunction colorString(color, string) {\n return `${color}${string}${Color.Reset}`;\n}\nfunction colorLog(color, ...args) {\n console.info(\n ...args.map((it) => typeof it === \"string\" ? colorString(color, it) : it)\n );\n}\nexport {\n Color,\n colorLog,\n colorString\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,QAAQ;CACZ,OAAO;CACP,QAAQ;CACR,KAAK;CACL,YAAY;CACZ,OAAO;CACP,SAAS;CACT,QAAQ;CACR,SAAS;CACT,OAAO;CACP,SAAS;CACT,UAAU;CACV,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,SAAS;CACT,UAAU;CACV,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;AACX;AACA,SAAS,YAAY,OAAO,QAAQ;CAClC,OAAO,GAAG,QAAQ,SAAS,MAAM;AACnC;AACA,SAAS,SAAS,OAAO,GAAG,MAAM;CAChC,QAAQ,KACN,GAAG,KAAK,KAAK,OAAO,OAAO,OAAO,WAAW,YAAY,OAAO,EAAE,IAAI,EAAE,CAC1E;AACF"}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
var Color = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
Reset: "\x1B[0m",
|
|
3
|
+
Bright: "\x1B[1m",
|
|
4
|
+
Dim: "\x1B[2m",
|
|
5
|
+
Underscore: "\x1B[4m",
|
|
6
|
+
Blink: "\x1B[5m",
|
|
7
|
+
Reverse: "\x1B[7m",
|
|
8
|
+
Hidden: "\x1B[8m",
|
|
9
|
+
FgBlack: "\x1B[30m",
|
|
10
|
+
FgRed: "\x1B[31m",
|
|
11
|
+
FgGreen: "\x1B[32m",
|
|
12
|
+
FgYellow: "\x1B[33m",
|
|
13
|
+
FgBlue: "\x1B[34m",
|
|
14
|
+
FgMagenta: "\x1B[35m",
|
|
15
|
+
FgCyan: "\x1B[36m",
|
|
16
|
+
FgWhite: "\x1B[37m",
|
|
17
|
+
BgBlack: "\x1B[40m",
|
|
18
|
+
BgRed: "\x1B[41m",
|
|
19
|
+
BgGreen: "\x1B[42m",
|
|
20
|
+
BgYellow: "\x1B[43m",
|
|
21
|
+
BgBlue: "\x1B[44m",
|
|
22
|
+
BgMagenta: "\x1B[45m",
|
|
23
|
+
BgCyan: "\x1B[46m",
|
|
24
|
+
BgWhite: "\x1B[47m"
|
|
25
25
|
};
|
|
26
26
|
function colorString(color, string) {
|
|
27
|
-
|
|
27
|
+
return `${color}${string}${Color.Reset}`;
|
|
28
28
|
}
|
|
29
29
|
function colorLog(color) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
31
|
+
args[_key - 1] = arguments[_key];
|
|
32
|
+
}
|
|
33
|
+
console.info(...args.map(function(it) {
|
|
34
|
+
return typeof it === "string" ? colorString(color, it) : it;
|
|
35
|
+
}));
|
|
36
36
|
}
|
|
37
|
+
|
|
37
38
|
export { Color, colorLog, colorString };
|
|
38
39
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["var Color = {\n Reset: \"\\x1B[0m\",\n Bright: \"\\x1B[1m\",\n Dim: \"\\x1B[2m\",\n Underscore: \"\\x1B[4m\",\n Blink: \"\\x1B[5m\",\n Reverse: \"\\x1B[7m\",\n Hidden: \"\\x1B[8m\",\n FgBlack: \"\\x1B[30m\",\n FgRed: \"\\x1B[31m\",\n FgGreen: \"\\x1B[32m\",\n FgYellow: \"\\x1B[33m\",\n FgBlue: \"\\x1B[34m\",\n FgMagenta: \"\\x1B[35m\",\n FgCyan: \"\\x1B[36m\",\n FgWhite: \"\\x1B[37m\",\n BgBlack: \"\\x1B[40m\",\n BgRed: \"\\x1B[41m\",\n BgGreen: \"\\x1B[42m\",\n BgYellow: \"\\x1B[43m\",\n BgBlue: \"\\x1B[44m\",\n BgMagenta: \"\\x1B[45m\",\n BgCyan: \"\\x1B[46m\",\n BgWhite: \"\\x1B[47m\"\n};\nfunction colorString(color, string) {\n return `${color}${string}${Color.Reset}`;\n}\nfunction colorLog(color) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n console.info(...args.map(function(it) {\n return typeof it === \"string\" ? colorString(color, it) : it;\n }));\n}\nexport {\n Color,\n colorLog,\n colorString\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,IAAI,QAAQ;CACV,OAAO;CACP,QAAQ;CACR,KAAK;CACL,YAAY;CACZ,OAAO;CACP,SAAS;CACT,QAAQ;CACR,SAAS;CACT,OAAO;CACP,SAAS;CACT,UAAU;CACV,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,SAAS;CACT,UAAU;CACV,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;AACX;AACA,SAAS,YAAY,OAAO,QAAQ;CAClC,OAAO,GAAG,QAAQ,SAAS,MAAM;AACnC;AACA,SAAS,SAAS,OAAO;CACvB,KAAK,IAAI,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,OAAO,IAAI,OAAO,IAAI,CAAC,GAAG,OAAO,GAAG,OAAO,MAAM,QAAQ;EAC1G,KAAK,OAAO,KAAK,UAAU;CAC7B;CACA,QAAQ,KAAK,GAAG,KAAK,IAAI,SAAS,IAAI;EACpC,OAAO,OAAO,OAAO,WAAW,YAAY,OAAO,EAAE,IAAI;CAC3D,CAAC,CAAC;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/cli-color",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.643.1",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"src",
|
|
7
|
+
"types",
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
5
10
|
"main": "dist/cjs",
|
|
6
11
|
"module": "dist/esm",
|
|
7
12
|
"types": "./types/index.d.ts",
|
|
@@ -27,7 +32,7 @@
|
|
|
27
32
|
"clean:build": "tamagui-build clean:build"
|
|
28
33
|
},
|
|
29
34
|
"devDependencies": {
|
|
30
|
-
"@tamagui/build": "
|
|
35
|
+
"@tamagui/build": "3.0.0-beta.643.1"
|
|
31
36
|
},
|
|
32
37
|
"repository": {
|
|
33
38
|
"type": "git",
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;IAChB,KAAK;IACL,MAAM;IACN,GAAG;IACH,UAAU;IACV,KAAK;IACL,OAAO;IACP,MAAM;IAEN,OAAO;IACP,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,SAAS;IACT,MAAM;IACN,OAAO;IAEP,OAAO;IACP,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,SAAS;IACT,MAAM;IACN,OAAO;CACR,CAAA;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAExD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,OAAA,QAI9C"}
|
package/.turbo/turbo-build.log
DELETED