@storm-software/linting-tools 1.26.1 → 1.26.3
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/CHANGELOG.md +14 -0
- package/cli/index.js +26 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.26.2](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.26.1...linting-tools-v1.26.2) (2024-01-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **git-tools:** Updated console formatting and text colors ([82e869f](https://github.com/storm-software/storm-ops/commit/82e869f0395d112c0a2906223e0827fd9b243e54))
|
|
7
|
+
|
|
8
|
+
## [1.26.1](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.26.0...linting-tools-v1.26.1) (2024-01-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **git-tools:** Resolved logging issues with git hooks and tsup build ([daeec6e](https://github.com/storm-software/storm-ops/commit/daeec6efaad169b6947eedef1a07339c0b52409c))
|
|
14
|
+
|
|
1
15
|
# [1.26.0](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.25.3...linting-tools-v1.26.0) (2024-01-15)
|
|
2
16
|
|
|
3
17
|
|
package/cli/index.js
CHANGED
|
@@ -282117,9 +282117,12 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282117
282117
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
282118
282118
|
return (message) => {
|
|
282119
282119
|
console.error(
|
|
282120
|
-
` ${chalk.bold.
|
|
282120
|
+
` ${chalk.bold.hex(config2?.colors?.fatal ? config2.colors.fatal : "#1fb2a6")(
|
|
282121
|
+
">"
|
|
282122
|
+
)} ${chalk.bold.bgHex(config2?.colors?.fatal ? config2.colors.fatal : "#1fb2a6").white("\n\n \u{1F480} Fatal ")} ${chalk.reset.hex(
|
|
282121
282123
|
config2?.colors?.fatal ? config2.colors.fatal : "#1fb2a6"
|
|
282122
282124
|
)(message)}
|
|
282125
|
+
|
|
282123
282126
|
`
|
|
282124
282127
|
);
|
|
282125
282128
|
};
|
|
@@ -282127,9 +282130,12 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282127
282130
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
282128
282131
|
return (message) => {
|
|
282129
282132
|
console.error(
|
|
282130
|
-
` ${chalk.bold.
|
|
282133
|
+
` ${chalk.bold.hex(config2?.colors?.error ? config2.colors.error : "#7d1a1a")(
|
|
282134
|
+
">"
|
|
282135
|
+
)} ${chalk.bold.bgHex(config2?.colors?.error ? config2.colors.error : "#7d1a1a").white("\n\n \u{1F6D1} Error ")} ${chalk.reset.hex(
|
|
282131
282136
|
config2?.colors?.error ? config2.colors.error : "#7d1a1a"
|
|
282132
282137
|
)(message)}
|
|
282138
|
+
|
|
282133
282139
|
`
|
|
282134
282140
|
);
|
|
282135
282141
|
};
|
|
@@ -282137,9 +282143,12 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282137
282143
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
282138
282144
|
return (message) => {
|
|
282139
282145
|
console.warn(
|
|
282140
|
-
` ${chalk.bold.
|
|
282146
|
+
` ${chalk.bold.hex(config2?.colors?.warning ? config2.colors.warning : "#fcc419")(
|
|
282147
|
+
">"
|
|
282148
|
+
)} ${chalk.bold.bgHex(config2?.colors?.warning ? config2.colors.warning : "#fcc419").white("\n\n \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
|
|
282141
282149
|
config2?.colors?.warning ? config2.colors.warning : "#fcc419"
|
|
282142
282150
|
)(message)}
|
|
282151
|
+
|
|
282143
282152
|
`
|
|
282144
282153
|
);
|
|
282145
282154
|
};
|
|
@@ -282147,9 +282156,10 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282147
282156
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
282148
282157
|
return (message) => {
|
|
282149
282158
|
console.info(
|
|
282150
|
-
` ${chalk.bold.bgHex(config2?.colors?.info ? config2.colors.info : "#0ea5e9").
|
|
282159
|
+
` ${chalk.bold.hex(config2?.colors?.info ? config2.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config2?.colors?.info ? config2.colors.info : "#0ea5e9").white("\n\n \u{1F4EC} Info ")} ${chalk.reset.hex(
|
|
282151
282160
|
config2?.colors?.info ? config2.colors.info : "#0ea5e9"
|
|
282152
282161
|
)(message)}
|
|
282162
|
+
|
|
282153
282163
|
`
|
|
282154
282164
|
);
|
|
282155
282165
|
};
|
|
@@ -282157,9 +282167,12 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282157
282167
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
282158
282168
|
return (message) => {
|
|
282159
282169
|
console.info(
|
|
282160
|
-
` ${chalk.bold.
|
|
282170
|
+
` ${chalk.bold.hex(config2?.colors?.success ? config2.colors.success : "#087f5b")(
|
|
282171
|
+
">"
|
|
282172
|
+
)} ${chalk.bold.bgHex(config2?.colors?.success ? config2.colors.success : "#087f5b").white("\n\n \u{1F389} Success ")} ${chalk.reset.hex(
|
|
282161
282173
|
config2?.colors?.success ? config2.colors.success : "#087f5b"
|
|
282162
282174
|
)(message)}
|
|
282175
|
+
|
|
282163
282176
|
`
|
|
282164
282177
|
);
|
|
282165
282178
|
};
|
|
@@ -282167,18 +282180,24 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282167
282180
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
282168
282181
|
return (message) => {
|
|
282169
282182
|
console.debug(
|
|
282170
|
-
` ${chalk.bold.
|
|
282183
|
+
` ${chalk.bold.hex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6")(
|
|
282184
|
+
">"
|
|
282185
|
+
)} ${chalk.bold.bgHex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6").white("\n\n \u{1F9EA} Debug ")} ${chalk.reset.hex(
|
|
282171
282186
|
config2?.colors?.primary ? config2.colors.primary : "#1fb2a6"
|
|
282172
282187
|
)(message)}
|
|
282188
|
+
|
|
282173
282189
|
`
|
|
282174
282190
|
);
|
|
282175
282191
|
};
|
|
282176
282192
|
}
|
|
282177
282193
|
return (message) => {
|
|
282178
282194
|
console.log(
|
|
282179
|
-
` ${chalk.bold.
|
|
282195
|
+
` ${chalk.bold.hex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6")(
|
|
282196
|
+
">"
|
|
282197
|
+
)} ${chalk.bold.bgHex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6").white("\n\n \u{1F4E2} System ")} ${chalk.bold.hex(
|
|
282180
282198
|
config2?.colors?.primary ? config2.colors.primary : "#1fb2a6"
|
|
282181
282199
|
)(message)}
|
|
282200
|
+
|
|
282182
282201
|
`
|
|
282183
282202
|
);
|
|
282184
282203
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.3",
|
|
4
4
|
"private": false,
|
|
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
|
"keywords": [
|