@storm-software/linting-tools 1.86.0 → 1.87.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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/bin/lint.js +14 -5
- package/package.json +1 -1
- package/src/cli/index.js +14 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.87.0 (2024-10-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
- **config-tools:** Add a max depth to the object logger ([900ad959](https://github.com/storm-software/storm-ops/commit/900ad959))
|
|
7
|
+
|
|
8
|
+
## 1.86.1 (2024-10-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **eslint:** Enhanced the `files` configuration array comparison ([091afe1e](https://github.com/storm-software/storm-ops/commit/091afe1e))
|
|
14
|
+
|
|
1
15
|
## 1.86.0 (2024-10-20)
|
|
2
16
|
|
|
3
17
|
|
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.js
CHANGED
|
@@ -357006,10 +357006,19 @@ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
|
357006
357006
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
357007
357007
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
357008
357008
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
357009
|
-
var
|
|
357010
|
-
|
|
357009
|
+
var MAX_DEPTH = 4;
|
|
357010
|
+
var formatLogMessage = (message, prefix = "-", depth2 = 0) => {
|
|
357011
|
+
if (depth2 > MAX_DEPTH) {
|
|
357012
|
+
return "<max depth>";
|
|
357013
|
+
}
|
|
357014
|
+
return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
|
|
357015
|
+
${message.map((item, index2) => ` ${prefix}> #${index2} = ${formatLogMessage(item, `${prefix}-`, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
|
|
357011
357016
|
${Object.keys(message).map(
|
|
357012
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
|
|
357017
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
|
|
357018
|
+
message[key],
|
|
357019
|
+
`${prefix}-`,
|
|
357020
|
+
depth2 + 1
|
|
357021
|
+
) : message[key]}`
|
|
357013
357022
|
).join("\n")}` : message;
|
|
357014
357023
|
};
|
|
357015
357024
|
var _isFunction = (value2) => {
|
|
@@ -368212,7 +368221,7 @@ function isServiceResponseSuccess(res) {
|
|
|
368212
368221
|
}
|
|
368213
368222
|
|
|
368214
368223
|
// node_modules/.pnpm/@cspell+cspell-service-bus@8.8.4/node_modules/@cspell/cspell-service-bus/dist/esm/bus.js
|
|
368215
|
-
var
|
|
368224
|
+
var MAX_DEPTH2 = 10;
|
|
368216
368225
|
var ServiceBus = class {
|
|
368217
368226
|
handlers = [];
|
|
368218
368227
|
constructor(handlers = []) {
|
|
@@ -368230,7 +368239,7 @@ var ServiceBus = class {
|
|
|
368230
368239
|
const handler2 = this.reduceHandlers(this.handlers, request2, dispatcher, this.defaultHandler);
|
|
368231
368240
|
function dispatch(request3) {
|
|
368232
368241
|
++depth2;
|
|
368233
|
-
if (depth2 >=
|
|
368242
|
+
if (depth2 >= MAX_DEPTH2) {
|
|
368234
368243
|
return createResponseFail(request3, new ErrorServiceRequestDepthExceeded(request3, depth2));
|
|
368235
368244
|
}
|
|
368236
368245
|
const response = handler2(request3);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.87.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": {
|
package/src/cli/index.js
CHANGED
|
@@ -355196,10 +355196,19 @@ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
|
355196
355196
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
355197
355197
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
355198
355198
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
355199
|
-
var
|
|
355200
|
-
|
|
355199
|
+
var MAX_DEPTH = 4;
|
|
355200
|
+
var formatLogMessage = (message, prefix = "-", depth2 = 0) => {
|
|
355201
|
+
if (depth2 > MAX_DEPTH) {
|
|
355202
|
+
return "<max depth>";
|
|
355203
|
+
}
|
|
355204
|
+
return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
|
|
355205
|
+
${message.map((item, index2) => ` ${prefix}> #${index2} = ${formatLogMessage(item, `${prefix}-`, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
|
|
355201
355206
|
${Object.keys(message).map(
|
|
355202
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
|
|
355207
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
|
|
355208
|
+
message[key],
|
|
355209
|
+
`${prefix}-`,
|
|
355210
|
+
depth2 + 1
|
|
355211
|
+
) : message[key]}`
|
|
355203
355212
|
).join("\n")}` : message;
|
|
355204
355213
|
};
|
|
355205
355214
|
var _isFunction = (value2) => {
|
|
@@ -366354,7 +366363,7 @@ function isServiceResponseSuccess(res) {
|
|
|
366354
366363
|
}
|
|
366355
366364
|
|
|
366356
366365
|
// node_modules/.pnpm/@cspell+cspell-service-bus@8.8.4/node_modules/@cspell/cspell-service-bus/dist/esm/bus.js
|
|
366357
|
-
var
|
|
366366
|
+
var MAX_DEPTH2 = 10;
|
|
366358
366367
|
var ServiceBus = class {
|
|
366359
366368
|
handlers = [];
|
|
366360
366369
|
constructor(handlers = []) {
|
|
@@ -366372,7 +366381,7 @@ var ServiceBus = class {
|
|
|
366372
366381
|
const handler2 = this.reduceHandlers(this.handlers, request2, dispatcher, this.defaultHandler);
|
|
366373
366382
|
function dispatch(request3) {
|
|
366374
366383
|
++depth2;
|
|
366375
|
-
if (depth2 >=
|
|
366384
|
+
if (depth2 >= MAX_DEPTH2) {
|
|
366376
366385
|
return createResponseFail(request3, new ErrorServiceRequestDepthExceeded(request3, depth2));
|
|
366377
366386
|
}
|
|
366378
366387
|
const response = handler2(request3);
|