@tamagui/cli-color 2.7.7 → 3.0.0-beta.637.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.
@@ -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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
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
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
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
- Color: () => Color,
26
- colorLog: () => colorLog,
27
- colorString: () => colorString
24
+ Color: () => Color,
25
+ colorLog: () => colorLog,
26
+ colorString: () => colorString
28
27
  });
29
28
  module.exports = __toCommonJS(index_exports);
30
29
  const Color = {
31
- Reset: "\x1B[0m",
32
- Bright: "\x1B[1m",
33
- Dim: "\x1B[2m",
34
- Underscore: "\x1B[4m",
35
- Blink: "\x1B[5m",
36
- Reverse: "\x1B[7m",
37
- Hidden: "\x1B[8m",
38
- FgBlack: "\x1B[30m",
39
- FgRed: "\x1B[31m",
40
- FgGreen: "\x1B[32m",
41
- FgYellow: "\x1B[33m",
42
- FgBlue: "\x1B[34m",
43
- FgMagenta: "\x1B[35m",
44
- FgCyan: "\x1B[36m",
45
- FgWhite: "\x1B[37m",
46
- BgBlack: "\x1B[40m",
47
- BgRed: "\x1B[41m",
48
- BgGreen: "\x1B[42m",
49
- BgYellow: "\x1B[43m",
50
- BgBlue: "\x1B[44m",
51
- BgMagenta: "\x1B[45m",
52
- BgCyan: "\x1B[46m",
53
- BgWhite: "\x1B[47m"
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
- return `${color}${string}${Color.Reset}`;
55
+ return `${color}${string}${Color.Reset}`;
57
56
  }
58
57
  function colorLog(color, ...args) {
59
- console.info(...args.map(it => typeof it === "string" ? colorString(color, it) : it));
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
+ }
@@ -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
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
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
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
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
- Color: () => Color,
28
- colorLog: () => colorLog,
29
- colorString: () => colorString
26
+ Color: () => Color,
27
+ colorLog: () => colorLog,
28
+ colorString: () => colorString
30
29
  });
31
30
  module.exports = __toCommonJS(index_exports);
32
31
  var Color = {
33
- Reset: "\x1B[0m",
34
- Bright: "\x1B[1m",
35
- Dim: "\x1B[2m",
36
- Underscore: "\x1B[4m",
37
- Blink: "\x1B[5m",
38
- Reverse: "\x1B[7m",
39
- Hidden: "\x1B[8m",
40
- FgBlack: "\x1B[30m",
41
- FgRed: "\x1B[31m",
42
- FgGreen: "\x1B[32m",
43
- FgYellow: "\x1B[33m",
44
- FgBlue: "\x1B[34m",
45
- FgMagenta: "\x1B[35m",
46
- FgCyan: "\x1B[36m",
47
- FgWhite: "\x1B[37m",
48
- BgBlack: "\x1B[40m",
49
- BgRed: "\x1B[41m",
50
- BgGreen: "\x1B[42m",
51
- BgYellow: "\x1B[43m",
52
- BgBlue: "\x1B[44m",
53
- BgMagenta: "\x1B[45m",
54
- BgCyan: "\x1B[46m",
55
- BgWhite: "\x1B[47m"
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
- return `${color}${string}${Color.Reset}`;
57
+ return `${color}${string}${Color.Reset}`;
59
58
  }
60
59
  function colorLog(color) {
61
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
62
- args[_key - 1] = arguments[_key];
63
- }
64
- console.info(...args.map(function (it) {
65
- return typeof it === "string" ? colorString(color, it) : it;
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,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","Color","colorLog","colorString","module","exports","Reset","Bright","Dim","Underscore","Blink","Reverse","Hidden","FgBlack","FgRed","FgGreen","FgYellow","FgBlue","FgMagenta","FgCyan","FgWhite","BgBlack","BgRed","BgGreen","BgYellow","BgBlue","BgMagenta","BgCyan","BgWhite","color","string","_len","arguments","length","args","Array","_key"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAQ,GAAAX,YAAA,CAAAK,aAAA;AAAA,IACnBE,KAAO;EACPK,KAAA,WAAQ;EACRC,MAAK;EACLC,GAAA,WAAY;EACZC,UAAO;EACPC,KAAA,WAAS;EACTC,OAAA,EAAQ;EAERC,MAAA,WAAS;EACTC,OAAO;EACPC,KAAA,YAAS;EACTC,OAAA,YAAU;EACVC,QAAQ;EACRC,MAAA,YAAW;EACXC,SAAQ;EACRC,MAAA,YAAS;EAETC,OAAA,EAAS;EACTC,OAAO;EACPC,KAAA,YAAS;EACTC,OAAA,YAAU;EACVC,QAAQ;EACRC,MAAA,YAAW;EACXC,SAAQ;EACRC,MAAA,YAAS;EACXC,OAAA;AAEO;AACL,SAAOzB,WAAWA,CAAA0B,KAAM,EAAAC,MAAG,EAAM;EACnC,UAAAD,KAAA,GAAAC,MAAA,GAAA7B,KAAA,CAAAK,KAAA;AAEO;AACL,SAAAJ,QAAQA,CAAA2B,KAAA;EAAA,KACH,IAAAE,IAAK,GAAKC,SAAQ,CAAAC,MAAO,EAAAC,IAAO,OAAAC,KAAW,CAAAJ,IAAA,IAAY,GAAAA,IAAO,GAAE,IAAI,CAAG,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAC5EF,IAAA,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;EACF","ignoreList":[]}
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
- 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"
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
- return `${color}${string}${Color.Reset}`;
27
+ return `${color}${string}${Color.Reset}`;
28
28
  }
29
29
  function colorLog(color, ...args) {
30
- console.info(...args.map(it => typeof it === "string" ? colorString(color, it) : it));
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
@@ -1 +1 @@
1
- {"version":3,"names":["Color","Reset","Bright","Dim","Underscore","Blink","Reverse","Hidden","FgBlack","FgRed","FgGreen","FgYellow","FgBlue","FgMagenta","FgCyan","FgWhite","BgBlack","BgRed","BgGreen","BgYellow","BgBlue","BgMagenta","BgCyan","BgWhite","colorString","color","string","colorLog","args","console","info","map","it"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,KAAA,GAAQ;EACnBC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,GAAA,EAAK;EACLC,UAAA,EAAY;EACZC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,MAAA,EAAQ;EAERC,OAAA,EAAS;EACTC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,SAAA,EAAW;EACXC,MAAA,EAAQ;EACRC,OAAA,EAAS;EAETC,OAAA,EAAS;EACTC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,SAAA,EAAW;EACXC,MAAA,EAAQ;EACRC,OAAA,EAAS;AACX;AAEO,SAASC,YAAYC,KAAA,EAAeC,MAAA,EAAgB;EACzD,OAAO,GAAGD,KAAK,GAAGC,MAAM,GAAG1B,KAAA,CAAMC,KAAK;AACxC;AAEO,SAAS0B,SAASF,KAAA,KAAkBG,IAAA,EAAM;EAC/CC,OAAA,CAAQC,IAAA,CACN,GAAGF,IAAA,CAAKG,GAAA,CAAKC,EAAA,IAAQ,OAAOA,EAAA,KAAO,WAAWR,WAAA,CAAYC,KAAA,EAAOO,EAAE,IAAIA,EAAG,CAC5E;AACF","ignoreList":[]}
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"}
@@ -1,33 +1,34 @@
1
1
  const Color = {
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"
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
- return `${color}${string}${Color.Reset}`;
27
+ return `${color}${string}${Color.Reset}`;
28
28
  }
29
29
  function colorLog(color, ...args) {
30
- console.info(...args.map(it => typeof it === "string" ? colorString(color, it) : it));
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
@@ -1 +1 @@
1
- {"version":3,"names":["Color","Reset","Bright","Dim","Underscore","Blink","Reverse","Hidden","FgBlack","FgRed","FgGreen","FgYellow","FgBlue","FgMagenta","FgCyan","FgWhite","BgBlack","BgRed","BgGreen","BgYellow","BgBlue","BgMagenta","BgCyan","BgWhite","colorString","color","string","colorLog","args","console","info","map","it"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,KAAA,GAAQ;EACnBC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,GAAA,EAAK;EACLC,UAAA,EAAY;EACZC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,MAAA,EAAQ;EAERC,OAAA,EAAS;EACTC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,SAAA,EAAW;EACXC,MAAA,EAAQ;EACRC,OAAA,EAAS;EAETC,OAAA,EAAS;EACTC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,SAAA,EAAW;EACXC,MAAA,EAAQ;EACRC,OAAA,EAAS;AACX;AAEO,SAASC,YAAYC,KAAA,EAAeC,MAAA,EAAgB;EACzD,OAAO,GAAGD,KAAK,GAAGC,MAAM,GAAG1B,KAAA,CAAMC,KAAK;AACxC;AAEO,SAAS0B,SAASF,KAAA,KAAkBG,IAAA,EAAM;EAC/CC,OAAA,CAAQC,IAAA,CACN,GAAGF,IAAA,CAAKG,GAAA,CAAKC,EAAA,IAAQ,OAAOA,EAAA,KAAO,WAAWR,WAAA,CAAYC,KAAA,EAAOO,EAAE,IAAIA,EAAG,CAC5E;AACF","ignoreList":[]}
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"}
@@ -1,38 +1,39 @@
1
1
  var Color = {
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"
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
- return `${color}${string}${Color.Reset}`;
27
+ return `${color}${string}${Color.Reset}`;
28
28
  }
29
29
  function colorLog(color) {
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
- }));
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":["Color","Reset","Bright","Dim","Underscore","Blink","Reverse","Hidden","FgBlack","FgRed","FgGreen","FgYellow","FgBlue","FgMagenta","FgCyan","FgWhite","BgBlack","BgRed","BgGreen","BgYellow","BgBlue","BgMagenta","BgCyan","BgWhite","colorString","color","string","colorLog","_len","arguments","length","args","Array","_key","console","info","map","it"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,KAAM;EACXC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,GAAA,EAAK;EACLC,UAAA,EAAY;EACZC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,MAAA,EAAQ;EAERC,OAAA,EAAS;EACTC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,SAAA,EAAW;EACXC,MAAA,EAAQ;EACRC,OAAA,EAAS;EAETC,OAAA,EAAS;EACTC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,SAAA,EAAW;EACXC,MAAA,EAAQ;EACRC,OAAA,EAAS;AACX;AAEO,SAASC,YAAYC,KAAA,EAAeC,MAAA,EAAgB;EACzD,OAAO,GAAGD,KAAK,GAAGC,MAAM,GAAG1B,KAAA,CAAMC,KAAK;AACxC;AAEO,SAAS0B,SAASF,KAAA;EACvB,SAAQG,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IACNF,IAAG,CAAAE,IAAK,GAAI,CAAC,IAAAJ,SAAQ,CAAOI,IAAA;EAC9B;EACFC,OAAA,CAAAC,IAAA,IAAAJ,IAAA,CAAAK,GAAA,WAAAC,EAAA","ignoreList":[]}
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": "2.7.7",
3
+ "version": "3.0.0-beta.637.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": "2.7.7"
35
+ "@tamagui/build": "3.0.0-beta.637.1"
31
36
  },
32
37
  "repository": {
33
38
  "type": "git",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;CA0BjB,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"}
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"}
@@ -1,2 +0,0 @@
1
- $ tamagui-build
2
- built @tamagui/cli-color in 1369 ms
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.json",
3
- "compilerOptions": {
4
- "composite": true
5
- },
6
- "exclude": [
7
- "types",
8
- "dist",
9
- "**/__tests__"
10
- ]
11
- }