@storm-software/linting-tools 1.110.0 → 1.110.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.
- package/README.md +1 -1
- package/bin/lint.cjs +2192 -43
- package/bin/lint.js +2223 -40
- package/dist/index.cjs +8 -8
- package/dist/index.js +8 -8
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -612,55 +612,55 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
|
|
|
612
612
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
613
613
|
return (message) => {
|
|
614
614
|
console.error(`
|
|
615
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)}
|
|
615
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
616
616
|
`);
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
619
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
620
620
|
return (message) => {
|
|
621
621
|
console.error(`
|
|
622
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)}
|
|
622
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
623
623
|
`);
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
627
627
|
return (message) => {
|
|
628
628
|
console.warn(`
|
|
629
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)}
|
|
629
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
630
630
|
`);
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
633
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
634
634
|
return (message) => {
|
|
635
635
|
console.info(`
|
|
636
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)}
|
|
636
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
637
637
|
`);
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
640
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
641
641
|
return (message) => {
|
|
642
642
|
console.info(`
|
|
643
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)}
|
|
643
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
644
644
|
`);
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
648
648
|
return (message) => {
|
|
649
649
|
console.debug(`
|
|
650
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)}
|
|
650
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
651
651
|
`);
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
654
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
655
655
|
return (message) => {
|
|
656
656
|
console.debug(`
|
|
657
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)}
|
|
657
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
658
658
|
`);
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
return (message) => {
|
|
662
662
|
console.log(`
|
|
663
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)}
|
|
663
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
664
664
|
`);
|
|
665
665
|
};
|
|
666
666
|
}, "getLogFn");
|
package/dist/index.js
CHANGED
|
@@ -612,55 +612,55 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
|
|
|
612
612
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
613
613
|
return (message) => {
|
|
614
614
|
console.error(`
|
|
615
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)}
|
|
615
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
616
616
|
`);
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
619
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
620
620
|
return (message) => {
|
|
621
621
|
console.error(`
|
|
622
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)}
|
|
622
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
623
623
|
`);
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
627
627
|
return (message) => {
|
|
628
628
|
console.warn(`
|
|
629
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)}
|
|
629
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
630
630
|
`);
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
633
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
634
634
|
return (message) => {
|
|
635
635
|
console.info(`
|
|
636
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)}
|
|
636
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
637
637
|
`);
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
640
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
641
641
|
return (message) => {
|
|
642
642
|
console.info(`
|
|
643
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)}
|
|
643
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
644
644
|
`);
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
648
648
|
return (message) => {
|
|
649
649
|
console.debug(`
|
|
650
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)}
|
|
650
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
651
651
|
`);
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
654
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
655
655
|
return (message) => {
|
|
656
656
|
console.debug(`
|
|
657
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)}
|
|
657
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
658
658
|
`);
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
return (message) => {
|
|
662
662
|
console.log(`
|
|
663
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)}
|
|
663
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
664
664
|
`);
|
|
665
665
|
};
|
|
666
666
|
}, "getLogFn");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.110.
|
|
3
|
+
"version": "1.110.2",
|
|
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": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@angular-devkit/architect": "0.1900.6",
|
|
107
107
|
"@manypkg/cli": "0.21.4",
|
|
108
108
|
"@manypkg/get-packages": "2.2.1",
|
|
109
|
-
"@storm-software/cspell": "0.
|
|
109
|
+
"@storm-software/cspell": "0.12.1",
|
|
110
110
|
"alex": "11.0.1",
|
|
111
111
|
"check-dependency-version-consistency": "4.1.0",
|
|
112
112
|
"commander": "^12.1.0",
|