@storm-software/config-tools 1.136.3 → 1.137.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.
Files changed (170) hide show
  1. package/README.md +1 -1
  2. package/dist/acorn-646RJR5S.mjs +3131 -0
  3. package/dist/acorn-BKIQKJ4F.js +3131 -0
  4. package/dist/angular-BK32YZBC.mjs +3014 -0
  5. package/dist/angular-IJH6AEQ2.js +3014 -0
  6. package/dist/babel-FTNSNFRG.mjs +7166 -0
  7. package/dist/babel-MD4YJE3Y.js +7166 -0
  8. package/dist/{chunk-RP57MH2N.js → chunk-2HT4ORYA.js} +14 -14
  9. package/dist/chunk-35WYVRRU.js +1120 -0
  10. package/dist/chunk-3FDEYZAK.js +765 -0
  11. package/dist/{chunk-BOM7LGB4.js → chunk-3WTN23SK.js} +37 -37
  12. package/dist/chunk-43PFM5U5.js +1736 -0
  13. package/dist/{chunk-SWW23TCX.js → chunk-444WTFCK.js} +28 -26
  14. package/dist/chunk-4C5ULXHZ.js +6 -0
  15. package/dist/{chunk-CO2NVYPR.js → chunk-4JZSUGPE.js} +23 -23
  16. package/dist/chunk-5QGWRJPB.mjs +84 -0
  17. package/dist/{chunk-RBSVNX4W.js → chunk-5YOGYZEG.js} +13 -1
  18. package/dist/chunk-5YZA7ARA.mjs +765 -0
  19. package/dist/chunk-5Z3NLDDE.mjs +451 -0
  20. package/dist/chunk-A2B7JKBP.js +7601 -0
  21. package/dist/chunk-ARQBMHSM.mjs +510 -0
  22. package/dist/chunk-AVHETSFN.js +39947 -0
  23. package/dist/{chunk-VK6ZC6XP.js → chunk-B5LYXPCJ.js} +7 -7
  24. package/dist/{chunk-36YIAZMD.mjs → chunk-BKXOCTTA.mjs} +3 -3
  25. package/dist/{chunk-BDBWBTMW.mjs → chunk-BP57EQU7.mjs} +3 -3
  26. package/dist/{chunk-QOJMUMJR.mjs → chunk-CMYWKSBB.mjs} +1 -1
  27. package/dist/{chunk-72XOK5QO.mjs → chunk-D6HJ3XEE.mjs} +3 -3
  28. package/dist/{chunk-OONRDTMT.mjs → chunk-D7EEDW3J.mjs} +1 -1
  29. package/dist/{chunk-7LUIP6PQ.js → chunk-DANGEXD7.js} +6 -6
  30. package/dist/chunk-E25ESST2.mjs +7601 -0
  31. package/dist/{chunk-ITHOTGIJ.mjs → chunk-E3KP6D4W.mjs} +4 -4
  32. package/dist/{chunk-MJS5XRE6.mjs → chunk-EMP3EUPT.mjs} +1 -1
  33. package/dist/{chunk-Z5UYG3QU.js → chunk-FMJGAM5D.js} +4 -4
  34. package/dist/chunk-G6TE7BPR.js +84 -0
  35. package/dist/{chunk-ZHN5GXW7.mjs → chunk-GGBZLABE.mjs} +2 -2
  36. package/dist/{chunk-F526RRYA.mjs → chunk-GRGCVKMG.mjs} +11 -9
  37. package/dist/{chunk-K7V3S3BW.js → chunk-GVQZFZ6E.js} +3 -3
  38. package/dist/{chunk-PYKV5UE3.js → chunk-GWRO5VMM.js} +3 -3
  39. package/dist/chunk-HDZVYW2P.js +70 -0
  40. package/dist/{chunk-LJLITR54.mjs → chunk-HHCEURYJ.mjs} +1 -1
  41. package/dist/chunk-IXG2QO76.mjs +39948 -0
  42. package/dist/chunk-JBD6MOCX.mjs +1733 -0
  43. package/dist/{chunk-2Z2NUZGO.mjs → chunk-JTLTCOIF.mjs} +1 -1
  44. package/dist/{chunk-UNJVNXY7.js → chunk-LGIWVSRE.js} +10 -10
  45. package/dist/{chunk-D47HPUO7.mjs → chunk-LL5L564L.mjs} +11 -11
  46. package/dist/chunk-LNE3WDH6.js +6 -0
  47. package/dist/chunk-N34NGVL6.js +2644 -0
  48. package/dist/{chunk-5GHDZSSH.mjs → chunk-N3H7WTUT.mjs} +1 -1
  49. package/dist/{chunk-7GSJ2YLJ.js → chunk-O3Q5GFR2.js} +4 -4
  50. package/dist/chunk-OKAFRVSY.mjs +4054 -0
  51. package/dist/chunk-OL53L7AE.mjs +1120 -0
  52. package/dist/chunk-OW5ANXN5.mjs +2644 -0
  53. package/dist/chunk-PHAIVEXJ.js +6 -0
  54. package/dist/{chunk-LQCUO5PV.mjs → chunk-Q5A4EAHJ.mjs} +1 -1
  55. package/dist/{chunk-R2YPKFGO.mjs → chunk-QJ35PYO3.mjs} +1 -1
  56. package/dist/chunk-QP46I4IQ.js +451 -0
  57. package/dist/{chunk-LQGTS5ON.mjs → chunk-R4TY5O2X.mjs} +1 -1
  58. package/dist/{chunk-EG4OHTQF.mjs → chunk-RGQF4WBS.mjs} +2 -2
  59. package/dist/chunk-RRSNGPTK.js +4054 -0
  60. package/dist/{chunk-EVEP57Q3.mjs → chunk-RZYA76H7.mjs} +13 -0
  61. package/dist/{chunk-KVGJIBF2.mjs → chunk-SNQO46A7.mjs} +1 -1
  62. package/dist/{chunk-GQAPQGTR.mjs → chunk-UJDQ4JJ2.mjs} +4 -4
  63. package/dist/chunk-UMD3QNEF.js +510 -0
  64. package/dist/{chunk-T7WO327S.js → chunk-V2UDLRHO.js} +8 -8
  65. package/dist/{chunk-AYVEVLX7.js → chunk-VRFMKUF5.js} +27 -27
  66. package/dist/chunk-WAL7JRLU.js +6 -0
  67. package/dist/{chunk-WUGUATQE.mjs → chunk-WCZGQC7L.mjs} +2 -2
  68. package/dist/{chunk-DKTC7KUS.mjs → chunk-WDQJ7FQS.mjs} +1 -1
  69. package/dist/chunk-WT74SYKM.js +28 -0
  70. package/dist/{chunk-SEQZA3NM.js → chunk-WVJHCVAR.js} +3 -3
  71. package/dist/{chunk-OQLT27Y3.js → chunk-X3LZL2FA.js} +2 -2
  72. package/dist/config-file/get-config-file.js +26 -20
  73. package/dist/config-file/get-config-file.mjs +25 -19
  74. package/dist/config-file/index.js +27 -21
  75. package/dist/config-file/index.mjs +26 -20
  76. package/dist/create-storm-config.js +34 -28
  77. package/dist/create-storm-config.mjs +28 -22
  78. package/dist/dist-ESY54GEK.mjs +17570 -0
  79. package/dist/dist-IKT3RN2B.js +17571 -0
  80. package/dist/env/get-env.js +7 -7
  81. package/dist/env/get-env.mjs +6 -6
  82. package/dist/env/index.js +9 -9
  83. package/dist/env/index.mjs +8 -8
  84. package/dist/env/set-env.js +6 -6
  85. package/dist/env/set-env.mjs +5 -5
  86. package/dist/esm-CHY33BEA.js +1716 -0
  87. package/dist/esm-GXBYTNSY.mjs +1716 -0
  88. package/dist/estree-OISRK7S3.mjs +4859 -0
  89. package/dist/estree-ROOTGONW.js +4859 -0
  90. package/dist/execa-OBTCQJ4R.js +2424 -0
  91. package/dist/execa-Q37TRODQ.mjs +2424 -0
  92. package/dist/flow-6CYXU2JU.js +28076 -0
  93. package/dist/flow-CVR7JYJR.mjs +28076 -0
  94. package/dist/glimmer-HPLV3CEI.mjs +3062 -0
  95. package/dist/glimmer-KC46TXCG.js +3062 -0
  96. package/dist/graphql-HGTQLI6G.mjs +1355 -0
  97. package/dist/graphql-QEQ22DRF.js +1355 -0
  98. package/dist/html-BQF3QJLP.mjs +3036 -0
  99. package/dist/html-SQTQQXQE.js +3036 -0
  100. package/dist/index.js +33 -27
  101. package/dist/index.mjs +37 -31
  102. package/dist/json5-FGCHX2C5.js +10 -0
  103. package/dist/json5-PFHFTE3S.mjs +10 -0
  104. package/dist/jsonc-JYPKWISW.js +15 -0
  105. package/dist/jsonc-QMXWMKWV.mjs +15 -0
  106. package/dist/logger/chalk.js +3 -3
  107. package/dist/logger/chalk.mjs +2 -2
  108. package/dist/logger/console-icons.js +5 -5
  109. package/dist/logger/console-icons.mjs +4 -4
  110. package/dist/logger/console.js +14 -14
  111. package/dist/logger/console.mjs +13 -13
  112. package/dist/logger/format-timestamp.js +3 -3
  113. package/dist/logger/format-timestamp.mjs +2 -2
  114. package/dist/logger/get-log-level.js +4 -4
  115. package/dist/logger/get-log-level.mjs +3 -3
  116. package/dist/logger/index.js +15 -15
  117. package/dist/logger/index.mjs +20 -20
  118. package/dist/logger/is-unicode-supported.js +3 -3
  119. package/dist/logger/is-unicode-supported.mjs +2 -2
  120. package/dist/markdown-GDAB6YZK.mjs +3846 -0
  121. package/dist/markdown-VAH7N2ZD.js +3846 -0
  122. package/dist/meriyah-64TJZ2NR.mjs +2720 -0
  123. package/dist/meriyah-KXJRAU2O.js +2720 -0
  124. package/dist/multipart-parser-ACF3MON7.js +187 -0
  125. package/dist/multipart-parser-XTEGLYUH.mjs +187 -0
  126. package/dist/postcss-CTT2C6VM.mjs +5440 -0
  127. package/dist/postcss-ULTRDB4V.js +5440 -0
  128. package/dist/prettier-DDE3QA5F.mjs +23559 -0
  129. package/dist/prettier-V6MPEGHT.js +23560 -0
  130. package/dist/toml-5DG5WNM7.mjs +10 -0
  131. package/dist/toml-S745O2YV.js +10 -0
  132. package/dist/types.js +3 -3
  133. package/dist/types.mjs +2 -2
  134. package/dist/typescript-CCR5BUC6.js +14956 -0
  135. package/dist/typescript-DSR4LFJ2.mjs +14956 -0
  136. package/dist/utilities/apply-workspace-tokens.js +6 -6
  137. package/dist/utilities/apply-workspace-tokens.mjs +5 -5
  138. package/dist/utilities/correct-paths.js +3 -3
  139. package/dist/utilities/correct-paths.mjs +2 -2
  140. package/dist/utilities/file-path-utils.js +3 -3
  141. package/dist/utilities/file-path-utils.mjs +2 -2
  142. package/dist/utilities/find-up.js +3 -3
  143. package/dist/utilities/find-up.mjs +2 -2
  144. package/dist/utilities/find-workspace-root.js +5 -5
  145. package/dist/utilities/find-workspace-root.mjs +4 -4
  146. package/dist/utilities/get-default-config.js +7 -7
  147. package/dist/utilities/get-default-config.mjs +6 -6
  148. package/dist/utilities/index.js +19 -19
  149. package/dist/utilities/index.mjs +18 -18
  150. package/dist/utilities/process-handler.js +15 -15
  151. package/dist/utilities/process-handler.mjs +14 -14
  152. package/dist/utilities/run.js +3 -3
  153. package/dist/utilities/run.mjs +2 -2
  154. package/dist/yaml-FXUEXKW3.js +10 -0
  155. package/dist/yaml-I7POIORV.js +4584 -0
  156. package/dist/yaml-KYTKYGLP.mjs +10 -0
  157. package/dist/yaml-SVET52GC.mjs +4584 -0
  158. package/package.json +2 -2
  159. package/dist/chunk-22DJFJ62.js +0 -6
  160. package/dist/chunk-2K7AEY66.mjs +0 -545
  161. package/dist/chunk-5EN3BWVN.mjs +0 -28
  162. package/dist/chunk-6AYXKAF5.js +0 -28
  163. package/dist/chunk-H2652TPM.js +0 -6
  164. package/dist/chunk-HHAOVN3O.js +0 -545
  165. package/dist/chunk-JYGRRNZP.js +0 -28
  166. package/dist/chunk-OLORJVVT.js +0 -6
  167. package/dist/chunk-PIDYVUHK.js +0 -6
  168. package/dist/chunk-PYET3L7X.js +0 -431
  169. package/dist/chunk-T3JLYD7F.js +0 -70
  170. package/dist/chunk-VGI5MGGT.mjs +0 -431
@@ -1,431 +0,0 @@
1
- import {
2
- __commonJS,
3
- __name,
4
- __require,
5
- __toESM,
6
- init_esm_shims
7
- } from "./chunk-EVEP57Q3.mjs";
8
-
9
- // ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
10
- var require_util = __commonJS({
11
- "../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module) {
12
- "use strict";
13
- init_esm_shims();
14
- var stringReplaceAll = /* @__PURE__ */ __name((string, substring, replacer) => {
15
- let index = string.indexOf(substring);
16
- if (index === -1) {
17
- return string;
18
- }
19
- const substringLength = substring.length;
20
- let endIndex = 0;
21
- let returnValue = "";
22
- do {
23
- returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
24
- endIndex = index + substringLength;
25
- index = string.indexOf(substring, endIndex);
26
- } while (index !== -1);
27
- returnValue += string.substr(endIndex);
28
- return returnValue;
29
- }, "stringReplaceAll");
30
- var stringEncaseCRLFWithFirstIndex = /* @__PURE__ */ __name((string, prefix, postfix, index) => {
31
- let endIndex = 0;
32
- let returnValue = "";
33
- do {
34
- const gotCR = string[index - 1] === "\r";
35
- returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
36
- endIndex = index + 1;
37
- index = string.indexOf("\n", endIndex);
38
- } while (index !== -1);
39
- returnValue += string.substr(endIndex);
40
- return returnValue;
41
- }, "stringEncaseCRLFWithFirstIndex");
42
- module.exports = {
43
- stringReplaceAll,
44
- stringEncaseCRLFWithFirstIndex
45
- };
46
- }
47
- });
48
-
49
- // ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
50
- var require_templates = __commonJS({
51
- "../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports, module) {
52
- "use strict";
53
- init_esm_shims();
54
- var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
55
- var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
56
- var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
57
- var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
58
- var ESCAPES = /* @__PURE__ */ new Map([
59
- [
60
- "n",
61
- "\n"
62
- ],
63
- [
64
- "r",
65
- "\r"
66
- ],
67
- [
68
- "t",
69
- " "
70
- ],
71
- [
72
- "b",
73
- "\b"
74
- ],
75
- [
76
- "f",
77
- "\f"
78
- ],
79
- [
80
- "v",
81
- "\v"
82
- ],
83
- [
84
- "0",
85
- "\0"
86
- ],
87
- [
88
- "\\",
89
- "\\"
90
- ],
91
- [
92
- "e",
93
- "\x1B"
94
- ],
95
- [
96
- "a",
97
- "\x07"
98
- ]
99
- ]);
100
- function unescape(c) {
101
- const u = c[0] === "u";
102
- const bracket = c[1] === "{";
103
- if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
104
- return String.fromCharCode(parseInt(c.slice(1), 16));
105
- }
106
- if (u && bracket) {
107
- return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
108
- }
109
- return ESCAPES.get(c) || c;
110
- }
111
- __name(unescape, "unescape");
112
- function parseArguments(name, arguments_) {
113
- const results = [];
114
- const chunks = arguments_.trim().split(/\s*,\s*/g);
115
- let matches;
116
- for (const chunk of chunks) {
117
- const number = Number(chunk);
118
- if (!Number.isNaN(number)) {
119
- results.push(number);
120
- } else if (matches = chunk.match(STRING_REGEX)) {
121
- results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
122
- } else {
123
- throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
124
- }
125
- }
126
- return results;
127
- }
128
- __name(parseArguments, "parseArguments");
129
- function parseStyle(style) {
130
- STYLE_REGEX.lastIndex = 0;
131
- const results = [];
132
- let matches;
133
- while ((matches = STYLE_REGEX.exec(style)) !== null) {
134
- const name = matches[1];
135
- if (matches[2]) {
136
- const args = parseArguments(name, matches[2]);
137
- results.push([
138
- name
139
- ].concat(args));
140
- } else {
141
- results.push([
142
- name
143
- ]);
144
- }
145
- }
146
- return results;
147
- }
148
- __name(parseStyle, "parseStyle");
149
- function buildStyle(chalk2, styles) {
150
- const enabled = {};
151
- for (const layer of styles) {
152
- for (const style of layer.styles) {
153
- enabled[style[0]] = layer.inverse ? null : style.slice(1);
154
- }
155
- }
156
- let current = chalk2;
157
- for (const [styleName, styles2] of Object.entries(enabled)) {
158
- if (!Array.isArray(styles2)) {
159
- continue;
160
- }
161
- if (!(styleName in current)) {
162
- throw new Error(`Unknown Chalk style: ${styleName}`);
163
- }
164
- current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
165
- }
166
- return current;
167
- }
168
- __name(buildStyle, "buildStyle");
169
- module.exports = (chalk2, temporary) => {
170
- const styles = [];
171
- const chunks = [];
172
- let chunk = [];
173
- temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
174
- if (escapeCharacter) {
175
- chunk.push(unescape(escapeCharacter));
176
- } else if (style) {
177
- const string = chunk.join("");
178
- chunk = [];
179
- chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
180
- styles.push({
181
- inverse,
182
- styles: parseStyle(style)
183
- });
184
- } else if (close) {
185
- if (styles.length === 0) {
186
- throw new Error("Found extraneous } in Chalk template literal");
187
- }
188
- chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
189
- chunk = [];
190
- styles.pop();
191
- } else {
192
- chunk.push(character);
193
- }
194
- });
195
- chunks.push(chunk.join(""));
196
- if (styles.length > 0) {
197
- const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
198
- throw new Error(errMessage);
199
- }
200
- return chunks.join("");
201
- };
202
- }
203
- });
204
-
205
- // ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
206
- var require_source = __commonJS({
207
- "../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
208
- "use strict";
209
- init_esm_shims();
210
- var ansiStyles = __require("ansi-styles");
211
- var { stdout: stdoutColor, stderr: stderrColor } = __require("supports-color");
212
- var { stringReplaceAll, stringEncaseCRLFWithFirstIndex } = require_util();
213
- var { isArray } = Array;
214
- var levelMapping = [
215
- "ansi",
216
- "ansi",
217
- "ansi256",
218
- "ansi16m"
219
- ];
220
- var styles = /* @__PURE__ */ Object.create(null);
221
- var applyOptions = /* @__PURE__ */ __name((object, options = {}) => {
222
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
223
- throw new Error("The `level` option should be an integer from 0 to 3");
224
- }
225
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
226
- object.level = options.level === void 0 ? colorLevel : options.level;
227
- }, "applyOptions");
228
- var ChalkClass = class ChalkClass {
229
- static {
230
- __name(this, "ChalkClass");
231
- }
232
- constructor(options) {
233
- return chalkFactory(options);
234
- }
235
- };
236
- var chalkFactory = /* @__PURE__ */ __name((options) => {
237
- const chalk3 = {};
238
- applyOptions(chalk3, options);
239
- chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
240
- Object.setPrototypeOf(chalk3, Chalk.prototype);
241
- Object.setPrototypeOf(chalk3.template, chalk3);
242
- chalk3.template.constructor = () => {
243
- throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
244
- };
245
- chalk3.template.Instance = ChalkClass;
246
- return chalk3.template;
247
- }, "chalkFactory");
248
- function Chalk(options) {
249
- return chalkFactory(options);
250
- }
251
- __name(Chalk, "Chalk");
252
- for (const [styleName, style] of Object.entries(ansiStyles)) {
253
- styles[styleName] = {
254
- get() {
255
- const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
256
- Object.defineProperty(this, styleName, {
257
- value: builder
258
- });
259
- return builder;
260
- }
261
- };
262
- }
263
- styles.visible = {
264
- get() {
265
- const builder = createBuilder(this, this._styler, true);
266
- Object.defineProperty(this, "visible", {
267
- value: builder
268
- });
269
- return builder;
270
- }
271
- };
272
- var usedModels = [
273
- "rgb",
274
- "hex",
275
- "keyword",
276
- "hsl",
277
- "hsv",
278
- "hwb",
279
- "ansi",
280
- "ansi256"
281
- ];
282
- for (const model of usedModels) {
283
- styles[model] = {
284
- get() {
285
- const { level } = this;
286
- return function(...arguments_) {
287
- const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
288
- return createBuilder(this, styler, this._isEmpty);
289
- };
290
- }
291
- };
292
- }
293
- for (const model of usedModels) {
294
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
295
- styles[bgModel] = {
296
- get() {
297
- const { level } = this;
298
- return function(...arguments_) {
299
- const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
300
- return createBuilder(this, styler, this._isEmpty);
301
- };
302
- }
303
- };
304
- }
305
- var proto = Object.defineProperties(() => {
306
- }, {
307
- ...styles,
308
- level: {
309
- enumerable: true,
310
- get() {
311
- return this._generator.level;
312
- },
313
- set(level) {
314
- this._generator.level = level;
315
- }
316
- }
317
- });
318
- var createStyler = /* @__PURE__ */ __name((open, close, parent) => {
319
- let openAll;
320
- let closeAll;
321
- if (parent === void 0) {
322
- openAll = open;
323
- closeAll = close;
324
- } else {
325
- openAll = parent.openAll + open;
326
- closeAll = close + parent.closeAll;
327
- }
328
- return {
329
- open,
330
- close,
331
- openAll,
332
- closeAll,
333
- parent
334
- };
335
- }, "createStyler");
336
- var createBuilder = /* @__PURE__ */ __name((self, _styler, _isEmpty) => {
337
- const builder = /* @__PURE__ */ __name((...arguments_) => {
338
- if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
339
- return applyStyle(builder, chalkTag(builder, ...arguments_));
340
- }
341
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
342
- }, "builder");
343
- Object.setPrototypeOf(builder, proto);
344
- builder._generator = self;
345
- builder._styler = _styler;
346
- builder._isEmpty = _isEmpty;
347
- return builder;
348
- }, "createBuilder");
349
- var applyStyle = /* @__PURE__ */ __name((self, string) => {
350
- if (self.level <= 0 || !string) {
351
- return self._isEmpty ? "" : string;
352
- }
353
- let styler = self._styler;
354
- if (styler === void 0) {
355
- return string;
356
- }
357
- const { openAll, closeAll } = styler;
358
- if (string.indexOf("\x1B") !== -1) {
359
- while (styler !== void 0) {
360
- string = stringReplaceAll(string, styler.close, styler.open);
361
- styler = styler.parent;
362
- }
363
- }
364
- const lfIndex = string.indexOf("\n");
365
- if (lfIndex !== -1) {
366
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
367
- }
368
- return openAll + string + closeAll;
369
- }, "applyStyle");
370
- var template;
371
- var chalkTag = /* @__PURE__ */ __name((chalk3, ...strings) => {
372
- const [firstString] = strings;
373
- if (!isArray(firstString) || !isArray(firstString.raw)) {
374
- return strings.join(" ");
375
- }
376
- const arguments_ = strings.slice(1);
377
- const parts = [
378
- firstString.raw[0]
379
- ];
380
- for (let i = 1; i < firstString.length; i++) {
381
- parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
382
- }
383
- if (template === void 0) {
384
- template = require_templates();
385
- }
386
- return template(chalk3, parts.join(""));
387
- }, "chalkTag");
388
- Object.defineProperties(Chalk.prototype, styles);
389
- var chalk2 = Chalk();
390
- chalk2.supportsColor = stdoutColor;
391
- chalk2.stderr = Chalk({
392
- level: stderrColor ? stderrColor.level : 0
393
- });
394
- chalk2.stderr.supportsColor = stderrColor;
395
- module.exports = chalk2;
396
- }
397
- });
398
-
399
- // src/logger/chalk.ts
400
- init_esm_shims();
401
- var import_chalk = __toESM(require_source());
402
- var chalkDefault = {
403
- hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
404
- bgHex: /* @__PURE__ */ __name((_) => ({
405
- whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
406
- }), "bgHex"),
407
- whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright"),
408
- gray: /* @__PURE__ */ __name((message) => message, "gray"),
409
- bold: {
410
- hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
411
- bgHex: /* @__PURE__ */ __name((_) => ({
412
- whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
413
- }), "bgHex"),
414
- whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
415
- },
416
- dim: {
417
- hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
418
- gray: /* @__PURE__ */ __name((message) => message, "gray")
419
- }
420
- };
421
- var getChalk = /* @__PURE__ */ __name(() => {
422
- let _chalk = import_chalk.default;
423
- if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
424
- _chalk = chalkDefault;
425
- }
426
- return _chalk;
427
- }, "getChalk");
428
-
429
- export {
430
- getChalk
431
- };