@storm-software/config-tools 1.142.1 → 1.142.2

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 (128) hide show
  1. package/README.md +1 -1
  2. package/dist/acorn-L4DOC4MD.cjs +3131 -0
  3. package/dist/acorn-W3WKDYQS.js +3131 -0
  4. package/dist/angular-KZBUGLAB.cjs +3014 -0
  5. package/dist/angular-QCZRQONA.js +3014 -0
  6. package/dist/babel-2YQL7BNO.cjs +7166 -0
  7. package/dist/babel-66ARC5Z7.js +7166 -0
  8. package/dist/chunk-2AAM5DJO.cjs +70 -0
  9. package/dist/chunk-2NUTLYUV.js +6 -0
  10. package/dist/chunk-2XFPIBCN.js +164 -0
  11. package/dist/chunk-3ALZEFKM.cjs +2645 -0
  12. package/dist/chunk-3ER2D3OU.js +67 -0
  13. package/dist/chunk-3W5JECK3.cjs +6 -0
  14. package/dist/chunk-46O7IOH6.js +24 -0
  15. package/dist/chunk-4AYNBMPP.cjs +27 -0
  16. package/dist/chunk-4OKHW64R.js +271 -0
  17. package/dist/chunk-4OURELB7.js +6 -0
  18. package/dist/chunk-5EL2OHUB.js +84 -0
  19. package/dist/chunk-6E5A2ZAH.cjs +451 -0
  20. package/dist/chunk-6KJOU57T.cjs +4054 -0
  21. package/dist/chunk-6O7E2ODJ.cjs +44 -0
  22. package/dist/chunk-7A74BDUJ.js +70 -0
  23. package/dist/chunk-7EC2JMQH.cjs +95 -0
  24. package/dist/chunk-7NYYYVNT.cjs +67 -0
  25. package/dist/chunk-AWCT22F2.cjs +271 -0
  26. package/dist/chunk-B5R5SGMG.cjs +50 -0
  27. package/dist/chunk-BFNZYC5O.js +64 -0
  28. package/dist/chunk-BJSQ7LGZ.cjs +70 -0
  29. package/dist/chunk-BQUXDMBD.cjs +144 -0
  30. package/dist/chunk-BVYQ2BKK.js +451 -0
  31. package/dist/chunk-C47MHGNY.js +6 -0
  32. package/dist/chunk-CCTOWFDI.js +95 -0
  33. package/dist/chunk-DBERGKMJ.cjs +765 -0
  34. package/dist/chunk-DFJNOFN2.cjs +61 -0
  35. package/dist/chunk-E7NMPYYE.cjs +93 -0
  36. package/dist/chunk-EXWTV42F.js +51 -0
  37. package/dist/chunk-FBGCL5ZA.cjs +24 -0
  38. package/dist/chunk-G5KDHCJJ.cjs +28 -0
  39. package/dist/chunk-GKOLL5ZA.cjs +51 -0
  40. package/dist/chunk-GWLF37RE.cjs +14 -0
  41. package/dist/chunk-GYCLBSTB.js +2645 -0
  42. package/dist/chunk-HBVGMJMF.js +27 -0
  43. package/dist/chunk-HM2PVPCY.js +144 -0
  44. package/dist/chunk-IWKKZOUZ.js +34067 -0
  45. package/dist/chunk-JIMG6E5P.cjs +21 -0
  46. package/dist/chunk-JMTLS4UN.js +27 -0
  47. package/dist/chunk-JPL6SA45.cjs +27 -0
  48. package/dist/chunk-KRV5ZLBN.cjs +510 -0
  49. package/dist/chunk-LQFUWYSF.js +70 -0
  50. package/dist/chunk-N3ELM5YV.js +28 -0
  51. package/dist/chunk-NO5ZHAIA.js +1120 -0
  52. package/dist/chunk-O4SGVAEB.cjs +33 -0
  53. package/dist/chunk-OL4KMEX5.js +7601 -0
  54. package/dist/chunk-PEPDFP2O.js +33 -0
  55. package/dist/chunk-PKJKHCLN.cjs +84 -0
  56. package/dist/chunk-QHDHDNID.cjs +6 -0
  57. package/dist/chunk-QHWDK2XS.js +93 -0
  58. package/dist/chunk-QUWIUSLT.cjs +34070 -0
  59. package/dist/chunk-QUZ63TS4.cjs +39947 -0
  60. package/dist/chunk-REWVG2LP.cjs +164 -0
  61. package/dist/chunk-S3QN6LZI.js +39948 -0
  62. package/dist/chunk-SKMG52TD.cjs +6 -0
  63. package/dist/chunk-TRG5FOW5.js +44 -0
  64. package/dist/chunk-TVUMXFOR.js +6 -0
  65. package/dist/chunk-TX6WHZNM.js +21 -0
  66. package/dist/chunk-UIA5EFWJ.cjs +7601 -0
  67. package/dist/chunk-VDAYBDFK.js +50 -0
  68. package/dist/chunk-VPMAS2N2.cjs +1120 -0
  69. package/dist/chunk-WTEHBMCM.js +14 -0
  70. package/dist/chunk-XQXUMNEU.js +510 -0
  71. package/dist/chunk-YJSIQHKP.cjs +6 -0
  72. package/dist/chunk-ZQV3QSH5.js +4054 -0
  73. package/dist/chunk-ZY35TVMB.js +765 -0
  74. package/dist/create-storm-config.cjs +36 -0
  75. package/dist/create-storm-config.d.cts +23 -0
  76. package/dist/create-storm-config.d.ts +23 -0
  77. package/dist/create-storm-config.js +36 -0
  78. package/dist/dist-M3E36L2G.cjs +17571 -0
  79. package/dist/dist-M5DWQXRA.js +17570 -0
  80. package/dist/esm-HOUHOM6T.cjs +1716 -0
  81. package/dist/esm-KALGCEZT.js +1716 -0
  82. package/dist/estree-OTYURYPI.js +4859 -0
  83. package/dist/estree-VNPZ3XG5.cjs +4859 -0
  84. package/dist/execa-XEKRORBS.cjs +2424 -0
  85. package/dist/execa-XN4WNY2K.js +2424 -0
  86. package/dist/flow-3RTSTJJN.cjs +28076 -0
  87. package/dist/flow-BEGL6EBU.js +28076 -0
  88. package/dist/get-config.cjs +35 -0
  89. package/dist/get-config.d.cts +19 -0
  90. package/dist/get-config.d.ts +19 -0
  91. package/dist/get-config.js +35 -0
  92. package/dist/glimmer-SJ3NEFEI.cjs +3062 -0
  93. package/dist/glimmer-T7L4DGCA.js +3062 -0
  94. package/dist/graphql-N7VNZRCY.cjs +1355 -0
  95. package/dist/graphql-ZGKSF4HS.js +1355 -0
  96. package/dist/html-76MY4VK3.cjs +3036 -0
  97. package/dist/html-PSA3ZLF3.js +3036 -0
  98. package/dist/index.cjs +157 -0
  99. package/dist/index.d.cts +25 -0
  100. package/dist/index.d.ts +25 -0
  101. package/dist/index.js +157 -0
  102. package/dist/json5-AWKL3VDN.js +10 -0
  103. package/dist/json5-H2TAIKSA.cjs +10 -0
  104. package/dist/jsonc-AGNNV3TC.js +15 -0
  105. package/dist/jsonc-QNZQN4WT.cjs +15 -0
  106. package/dist/markdown-C7FDHMIG.js +3846 -0
  107. package/dist/markdown-GO2SD6ZH.cjs +3846 -0
  108. package/dist/meriyah-BAACQM2N.cjs +2720 -0
  109. package/dist/meriyah-ED62ZUKL.js +2720 -0
  110. package/dist/multipart-parser-6JNXK7VG.js +187 -0
  111. package/dist/multipart-parser-MXQWMODT.cjs +187 -0
  112. package/dist/postcss-2EUHH6PK.cjs +5440 -0
  113. package/dist/postcss-KWRUITUE.js +5440 -0
  114. package/dist/prettier-3OESQDIX.cjs +23560 -0
  115. package/dist/prettier-PADI4U76.js +23559 -0
  116. package/dist/toml-E3DJZTNR.js +10 -0
  117. package/dist/toml-VAFZQSC5.cjs +10 -0
  118. package/dist/types.cjs +9 -0
  119. package/dist/types.d.cts +50 -0
  120. package/dist/types.d.ts +50 -0
  121. package/dist/types.js +9 -0
  122. package/dist/typescript-YFBMA3EY.js +14956 -0
  123. package/dist/typescript-ZI3EJ455.cjs +14956 -0
  124. package/dist/yaml-2WY5XICX.js +10 -0
  125. package/dist/yaml-6R64VIIN.js +4584 -0
  126. package/dist/yaml-KDDF5JAF.cjs +4584 -0
  127. package/dist/yaml-X7EHFDS4.cjs +10 -0
  128. package/package.json +2 -2
@@ -0,0 +1,27 @@
1
+ import {
2
+ __name,
3
+ init_esm_shims
4
+ } from "./chunk-BFNZYC5O.js";
5
+
6
+ // src/utilities/find-up.ts
7
+ init_esm_shims();
8
+ import { existsSync } from "node:fs";
9
+ import { join } from "node:path";
10
+ var MAX_PATH_SEARCH_DEPTH = 30;
11
+ var depth = 0;
12
+ function findFolderUp(startPath, endFileNames) {
13
+ const _startPath = startPath ?? process.cwd();
14
+ if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
15
+ return _startPath;
16
+ }
17
+ if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
18
+ const parent = join(_startPath, "..");
19
+ return findFolderUp(parent, endFileNames);
20
+ }
21
+ return void 0;
22
+ }
23
+ __name(findFolderUp, "findFolderUp");
24
+
25
+ export {
26
+ findFolderUp
27
+ };
@@ -0,0 +1,144 @@
1
+ import {
2
+ DEFAULT_COLOR_CONFIG
3
+ } from "./chunk-QHWDK2XS.js";
4
+ import {
5
+ getChalk
6
+ } from "./chunk-GYCLBSTB.js";
7
+ import {
8
+ CONSOLE_ICONS
9
+ } from "./chunk-N3ELM5YV.js";
10
+ import {
11
+ formatTimestamp
12
+ } from "./chunk-WTEHBMCM.js";
13
+ import {
14
+ getLogLevel
15
+ } from "./chunk-LQFUWYSF.js";
16
+ import {
17
+ LogLevel,
18
+ LogLevelLabel
19
+ } from "./chunk-PEPDFP2O.js";
20
+ import {
21
+ __name,
22
+ init_esm_shims
23
+ } from "./chunk-BFNZYC5O.js";
24
+
25
+ // src/logger/console.ts
26
+ init_esm_shims();
27
+ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
28
+ const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
29
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
30
+ if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
31
+ return (_) => {
32
+ };
33
+ }
34
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
35
+ return (message) => {
36
+ console.error(`
37
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
38
+ `);
39
+ };
40
+ }
41
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
42
+ return (message) => {
43
+ console.error(`
44
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
45
+ `);
46
+ };
47
+ }
48
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
49
+ return (message) => {
50
+ console.warn(`
51
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
52
+ `);
53
+ };
54
+ }
55
+ if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
56
+ return (message) => {
57
+ console.info(`
58
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
59
+ `);
60
+ };
61
+ }
62
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
63
+ return (message) => {
64
+ console.info(`
65
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
66
+ `);
67
+ };
68
+ }
69
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
70
+ return (message) => {
71
+ console.debug(`
72
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
73
+ `);
74
+ };
75
+ }
76
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
77
+ return (message) => {
78
+ console.debug(`
79
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
80
+ `);
81
+ };
82
+ }
83
+ return (message) => {
84
+ console.log(`
85
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
86
+ `);
87
+ };
88
+ }, "getLogFn");
89
+ var writeFatal = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
90
+ var writeError = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
91
+ var writeWarning = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
92
+ var writeInfo = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
93
+ var writeSuccess = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.SUCCESS, config)(message), "writeSuccess");
94
+ var writeDebug = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
95
+ var writeTrace = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
96
+ var writeSystem = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.ALL, config)(message), "writeSystem");
97
+ var getStopwatch = /* @__PURE__ */ __name((name) => {
98
+ const start = process.hrtime();
99
+ return () => {
100
+ const end = process.hrtime(start);
101
+ console.info(`
102
+ > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
103
+
104
+ `);
105
+ };
106
+ }, "getStopwatch");
107
+ var MAX_DEPTH = 4;
108
+ var formatLogMessage = /* @__PURE__ */ __name((message, options = {}, depth = 0) => {
109
+ if (depth > MAX_DEPTH) {
110
+ return "<max depth>";
111
+ }
112
+ const prefix = options.prefix ?? "-";
113
+ const skip = options.skip ?? [];
114
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
115
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
116
+ prefix: `${prefix}-`,
117
+ skip
118
+ }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
119
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
120
+ prefix: `${prefix}-`,
121
+ skip
122
+ }, depth + 1) : message[key]}`).join("\n")}` : message;
123
+ }, "formatLogMessage");
124
+ var _isFunction = /* @__PURE__ */ __name((value) => {
125
+ try {
126
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
127
+ } catch (e) {
128
+ return false;
129
+ }
130
+ }, "_isFunction");
131
+
132
+ export {
133
+ getLogFn,
134
+ writeFatal,
135
+ writeError,
136
+ writeWarning,
137
+ writeInfo,
138
+ writeSuccess,
139
+ writeDebug,
140
+ writeTrace,
141
+ writeSystem,
142
+ getStopwatch,
143
+ formatLogMessage
144
+ };