@storm-software/linting-tools 1.105.4 → 1.106.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.
- package/README.md +1 -1
- package/bin/lint.cjs +15 -8
- package/bin/lint.js +15 -8
- package/dist/index.cjs +15 -8
- package/dist/index.js +15 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/lint.cjs
CHANGED
|
@@ -502,49 +502,56 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
|
|
|
502
502
|
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
503
503
|
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;
|
|
504
504
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
505
|
-
if (
|
|
505
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
506
506
|
return (_) => {
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
509
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
510
510
|
return (message) => {
|
|
511
511
|
console.error(`
|
|
512
512
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
513
513
|
`);
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
516
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
517
517
|
return (message) => {
|
|
518
518
|
console.error(`
|
|
519
519
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
520
520
|
`);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
523
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
524
524
|
return (message) => {
|
|
525
525
|
console.warn(`
|
|
526
526
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
527
527
|
`);
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
530
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
531
531
|
return (message) => {
|
|
532
532
|
console.info(`
|
|
533
533
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
534
534
|
`);
|
|
535
535
|
};
|
|
536
536
|
}
|
|
537
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
537
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
538
538
|
return (message) => {
|
|
539
539
|
console.info(`
|
|
540
540
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
541
541
|
`);
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
544
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
545
545
|
return (message) => {
|
|
546
546
|
console.debug(`
|
|
547
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
547
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
548
|
+
`);
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
552
|
+
return (message) => {
|
|
553
|
+
console.debug(`
|
|
554
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
548
555
|
`);
|
|
549
556
|
};
|
|
550
557
|
}
|
package/bin/lint.js
CHANGED
|
@@ -481,49 +481,56 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
|
|
|
481
481
|
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
482
482
|
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;
|
|
483
483
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
484
|
-
if (
|
|
484
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
485
485
|
return (_) => {
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
488
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
489
489
|
return (message) => {
|
|
490
490
|
console.error(`
|
|
491
491
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
492
492
|
`);
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
495
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
496
496
|
return (message) => {
|
|
497
497
|
console.error(`
|
|
498
498
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
499
499
|
`);
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
502
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
503
503
|
return (message) => {
|
|
504
504
|
console.warn(`
|
|
505
505
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
506
506
|
`);
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
509
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
510
510
|
return (message) => {
|
|
511
511
|
console.info(`
|
|
512
512
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
513
513
|
`);
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
516
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
517
517
|
return (message) => {
|
|
518
518
|
console.info(`
|
|
519
519
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
520
520
|
`);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
523
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
524
524
|
return (message) => {
|
|
525
525
|
console.debug(`
|
|
526
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
526
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
527
|
+
`);
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
531
|
+
return (message) => {
|
|
532
|
+
console.debug(`
|
|
533
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
527
534
|
`);
|
|
528
535
|
};
|
|
529
536
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -480,49 +480,56 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
|
|
|
480
480
|
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
481
481
|
const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
482
482
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
483
|
-
if (
|
|
483
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
484
484
|
return (_) => {
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
487
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
488
488
|
return (message) => {
|
|
489
489
|
console.error(`
|
|
490
490
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
491
491
|
`);
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
494
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
495
495
|
return (message) => {
|
|
496
496
|
console.error(`
|
|
497
497
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
498
498
|
`);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
501
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
502
502
|
return (message) => {
|
|
503
503
|
console.warn(`
|
|
504
504
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
505
505
|
`);
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
508
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
509
509
|
return (message) => {
|
|
510
510
|
console.info(`
|
|
511
511
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
512
512
|
`);
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
515
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
516
516
|
return (message) => {
|
|
517
517
|
console.info(`
|
|
518
518
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
519
519
|
`);
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
522
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
523
523
|
return (message) => {
|
|
524
524
|
console.debug(`
|
|
525
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
525
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
526
|
+
`);
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
530
|
+
return (message) => {
|
|
531
|
+
console.debug(`
|
|
532
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
526
533
|
`);
|
|
527
534
|
};
|
|
528
535
|
}
|
package/dist/index.js
CHANGED
|
@@ -480,49 +480,56 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
|
|
|
480
480
|
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
481
481
|
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;
|
|
482
482
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
483
|
-
if (
|
|
483
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
484
484
|
return (_) => {
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
487
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
488
488
|
return (message) => {
|
|
489
489
|
console.error(`
|
|
490
490
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
491
491
|
`);
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
494
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
495
495
|
return (message) => {
|
|
496
496
|
console.error(`
|
|
497
497
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
498
498
|
`);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
501
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
502
502
|
return (message) => {
|
|
503
503
|
console.warn(`
|
|
504
504
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
505
505
|
`);
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
508
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
509
509
|
return (message) => {
|
|
510
510
|
console.info(`
|
|
511
511
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
512
512
|
`);
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
515
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
516
516
|
return (message) => {
|
|
517
517
|
console.info(`
|
|
518
518
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
519
519
|
`);
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
522
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
523
523
|
return (message) => {
|
|
524
524
|
console.debug(`
|
|
525
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
525
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
526
|
+
`);
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
530
|
+
return (message) => {
|
|
531
|
+
console.debug(`
|
|
532
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
526
533
|
`);
|
|
527
534
|
};
|
|
528
535
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.106.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"vfile-reporter": "8.1.1"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
|
-
"@storm-software/cspell": "0.
|
|
136
|
+
"@storm-software/cspell": "0.8.0",
|
|
137
137
|
"@types/node": "^22.10.2",
|
|
138
138
|
"cspell": "8.8.4",
|
|
139
139
|
"tsup": "8.3.5"
|