@storm-software/workspace-tools 1.68.8 → 1.68.10

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.
@@ -7145,7 +7145,7 @@ var require_lib3 = __commonJS({
7145
7145
  return _chalk.default.level > 0 || options.forceColor;
7146
7146
  }
7147
7147
  var chalkWithForcedColor = void 0;
7148
- function getChalk(forceColor) {
7148
+ function getChalk2(forceColor) {
7149
7149
  if (forceColor) {
7150
7150
  var _chalkWithForcedColor;
7151
7151
  (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
@@ -7157,11 +7157,11 @@ var require_lib3 = __commonJS({
7157
7157
  return _chalk.default;
7158
7158
  }
7159
7159
  {
7160
- exports2.getChalk = (options) => getChalk(options.forceColor);
7160
+ exports2.getChalk = (options) => getChalk2(options.forceColor);
7161
7161
  }
7162
7162
  function highlight(code, options = {}) {
7163
7163
  if (code !== "" && shouldHighlight(options)) {
7164
- const defs = getDefs(getChalk(options.forceColor));
7164
+ const defs = getDefs(getChalk2(options.forceColor));
7165
7165
  return highlightTokens(defs, code);
7166
7166
  } else {
7167
7167
  return code;
@@ -7206,7 +7206,7 @@ var require_lib4 = __commonJS({
7206
7206
  return n.default = e, t && t.set(e, n), n;
7207
7207
  }
7208
7208
  var chalkWithForcedColor = void 0;
7209
- function getChalk(forceColor) {
7209
+ function getChalk2(forceColor) {
7210
7210
  if (forceColor) {
7211
7211
  var _chalkWithForcedColor;
7212
7212
  (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
@@ -7284,7 +7284,7 @@ var require_lib4 = __commonJS({
7284
7284
  }
7285
7285
  function codeFrameColumns(rawLines, loc, opts = {}) {
7286
7286
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
7287
- const chalk2 = getChalk(opts.forceColor);
7287
+ const chalk2 = getChalk2(opts.forceColor);
7288
7288
  const defs = getDefs(chalk2);
7289
7289
  const maybeHighlight = (chalkFn, string) => {
7290
7290
  return highlighted ? chalkFn(string) : string;
@@ -220587,12 +220587,10 @@ var init_get_log_level = __esm({
220587
220587
  }
220588
220588
  });
220589
220589
 
220590
- // packages/config-tools/src/utilities/logger.ts
220591
- var import_chalk, chalkDefault, getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
220592
- var init_logger = __esm({
220593
- "packages/config-tools/src/utilities/logger.ts"() {
220594
- init_types2();
220595
- init_get_log_level();
220590
+ // packages/config-tools/src/utilities/chalk.ts
220591
+ var import_chalk, chalkDefault, getChalk;
220592
+ var init_chalk = __esm({
220593
+ "packages/config-tools/src/utilities/chalk.ts"() {
220596
220594
  import_chalk = __toESM(require_source());
220597
220595
  chalkDefault = {
220598
220596
  hex: (_) => (message) => message,
@@ -220608,11 +220606,25 @@ var init_logger = __esm({
220608
220606
  whiteBright: (message) => message
220609
220607
  }
220610
220608
  };
220611
- getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
220609
+ getChalk = () => {
220612
220610
  let _chalk = import_chalk.default;
220613
220611
  if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
220614
220612
  _chalk = chalkDefault;
220615
220613
  }
220614
+ return _chalk;
220615
+ };
220616
+ }
220617
+ });
220618
+
220619
+ // packages/config-tools/src/utilities/logger.ts
220620
+ var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
220621
+ var init_logger = __esm({
220622
+ "packages/config-tools/src/utilities/logger.ts"() {
220623
+ init_types2();
220624
+ init_get_log_level();
220625
+ init_chalk();
220626
+ getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
220627
+ let _chalk = getChalk();
220616
220628
  const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
220617
220629
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
220618
220630
  return (_) => {
@@ -220886,6 +220898,7 @@ var init_utilities = __esm({
220886
220898
  init_correct_paths();
220887
220899
  init_file_path_utils();
220888
220900
  init_apply_workspace_tokens();
220901
+ init_chalk();
220889
220902
  }
220890
220903
  });
220891
220904
 
@@ -221232,6 +221245,7 @@ __export(src_exports, {
221232
221245
  findFileName: () => findFileName,
221233
221246
  findWorkspaceRoot: () => findWorkspaceRoot,
221234
221247
  findWorkspaceRootSafe: () => findWorkspaceRootSafe,
221248
+ getChalk: () => getChalk,
221235
221249
  getConfigEnv: () => getConfigEnv,
221236
221250
  getConfigFile: () => getConfigFile,
221237
221251
  getConfigFileByName: () => getConfigFileByName,
@@ -4602,7 +4602,7 @@ var require_lib3 = __commonJS({
4602
4602
  return _chalk.default.level > 0 || options.forceColor;
4603
4603
  }
4604
4604
  var chalkWithForcedColor = void 0;
4605
- function getChalk(forceColor) {
4605
+ function getChalk2(forceColor) {
4606
4606
  if (forceColor) {
4607
4607
  var _chalkWithForcedColor;
4608
4608
  (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
@@ -4614,11 +4614,11 @@ var require_lib3 = __commonJS({
4614
4614
  return _chalk.default;
4615
4615
  }
4616
4616
  {
4617
- exports2.getChalk = (options) => getChalk(options.forceColor);
4617
+ exports2.getChalk = (options) => getChalk2(options.forceColor);
4618
4618
  }
4619
4619
  function highlight(code, options = {}) {
4620
4620
  if (code !== "" && shouldHighlight(options)) {
4621
- const defs = getDefs(getChalk(options.forceColor));
4621
+ const defs = getDefs(getChalk2(options.forceColor));
4622
4622
  return highlightTokens(defs, code);
4623
4623
  } else {
4624
4624
  return code;
@@ -4663,7 +4663,7 @@ var require_lib4 = __commonJS({
4663
4663
  return n.default = e, t && t.set(e, n), n;
4664
4664
  }
4665
4665
  var chalkWithForcedColor = void 0;
4666
- function getChalk(forceColor) {
4666
+ function getChalk2(forceColor) {
4667
4667
  if (forceColor) {
4668
4668
  var _chalkWithForcedColor;
4669
4669
  (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
@@ -4741,7 +4741,7 @@ var require_lib4 = __commonJS({
4741
4741
  }
4742
4742
  function codeFrameColumns(rawLines, loc, opts = {}) {
4743
4743
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
4744
- const chalk2 = getChalk(opts.forceColor);
4744
+ const chalk2 = getChalk2(opts.forceColor);
4745
4745
  const defs = getDefs(chalk2);
4746
4746
  const maybeHighlight = (chalkFn, string) => {
4747
4747
  return highlighted ? chalkFn(string) : string;
@@ -218044,12 +218044,10 @@ var init_get_log_level = __esm({
218044
218044
  }
218045
218045
  });
218046
218046
 
218047
- // packages/config-tools/src/utilities/logger.ts
218048
- var import_chalk, chalkDefault, getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
218049
- var init_logger = __esm({
218050
- "packages/config-tools/src/utilities/logger.ts"() {
218051
- init_types2();
218052
- init_get_log_level();
218047
+ // packages/config-tools/src/utilities/chalk.ts
218048
+ var import_chalk, chalkDefault, getChalk;
218049
+ var init_chalk = __esm({
218050
+ "packages/config-tools/src/utilities/chalk.ts"() {
218053
218051
  import_chalk = __toESM(require_source());
218054
218052
  chalkDefault = {
218055
218053
  hex: (_) => (message) => message,
@@ -218065,11 +218063,25 @@ var init_logger = __esm({
218065
218063
  whiteBright: (message) => message
218066
218064
  }
218067
218065
  };
218068
- getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
218066
+ getChalk = () => {
218069
218067
  let _chalk = import_chalk.default;
218070
218068
  if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
218071
218069
  _chalk = chalkDefault;
218072
218070
  }
218071
+ return _chalk;
218072
+ };
218073
+ }
218074
+ });
218075
+
218076
+ // packages/config-tools/src/utilities/logger.ts
218077
+ var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
218078
+ var init_logger = __esm({
218079
+ "packages/config-tools/src/utilities/logger.ts"() {
218080
+ init_types2();
218081
+ init_get_log_level();
218082
+ init_chalk();
218083
+ getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
218084
+ let _chalk = getChalk();
218073
218085
  const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
218074
218086
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
218075
218087
  return (_) => {
@@ -218343,6 +218355,7 @@ var init_utilities = __esm({
218343
218355
  init_correct_paths();
218344
218356
  init_file_path_utils();
218345
218357
  init_apply_workspace_tokens();
218358
+ init_chalk();
218346
218359
  }
218347
218360
  });
218348
218361
 
@@ -218689,6 +218702,7 @@ __export(src_exports, {
218689
218702
  findFileName: () => findFileName,
218690
218703
  findWorkspaceRoot: () => findWorkspaceRoot,
218691
218704
  findWorkspaceRootSafe: () => findWorkspaceRootSafe,
218705
+ getChalk: () => getChalk,
218692
218706
  getConfigEnv: () => getConfigEnv,
218693
218707
  getConfigFile: () => getConfigFile,
218694
218708
  getConfigFileByName: () => getConfigFileByName,