@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 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
- [![Version](https://img.shields.io/badge/version-1.85.3-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.86.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
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 formatLogMessage = (message, prefix = "-") => {
357010
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
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(message[key], `${prefix}-`) : message[key]}`
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 MAX_DEPTH = 10;
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 >= MAX_DEPTH) {
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.86.0",
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 formatLogMessage = (message, prefix = "-") => {
355200
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
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(message[key], `${prefix}-`) : message[key]}`
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 MAX_DEPTH = 10;
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 >= MAX_DEPTH) {
366384
+ if (depth2 >= MAX_DEPTH2) {
366376
366385
  return createResponseFail(request3, new ErrorServiceRequestDepthExceeded(request3, depth2));
366377
366386
  }
366378
366387
  const response = handler2(request3);