@storm-software/linting-tools 1.86.1 → 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,10 @@
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
+
1
8
  ## 1.86.1 (2024-10-20)
2
9
 
3
10
 
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.86.0-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,11 +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 = "-") => {
357009
+ var MAX_DEPTH = 4;
357010
+ var formatLogMessage = (message, prefix = "-", depth2 = 0) => {
357011
+ if (depth2 > MAX_DEPTH) {
357012
+ return "<max depth>";
357013
+ }
357010
357014
  return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
357011
- ${message.map((item, index2) => ` ${prefix}> #${index2} = ${formatLogMessage(item)}`).join("\n")}` : typeof message === "object" ? `
357015
+ ${message.map((item, index2) => ` ${prefix}> #${index2} = ${formatLogMessage(item, `${prefix}-`, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
357012
357016
  ${Object.keys(message).map(
357013
- (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]}`
357014
357022
  ).join("\n")}` : message;
357015
357023
  };
357016
357024
  var _isFunction = (value2) => {
@@ -368213,7 +368221,7 @@ function isServiceResponseSuccess(res) {
368213
368221
  }
368214
368222
 
368215
368223
  // node_modules/.pnpm/@cspell+cspell-service-bus@8.8.4/node_modules/@cspell/cspell-service-bus/dist/esm/bus.js
368216
- var MAX_DEPTH = 10;
368224
+ var MAX_DEPTH2 = 10;
368217
368225
  var ServiceBus = class {
368218
368226
  handlers = [];
368219
368227
  constructor(handlers = []) {
@@ -368231,7 +368239,7 @@ var ServiceBus = class {
368231
368239
  const handler2 = this.reduceHandlers(this.handlers, request2, dispatcher, this.defaultHandler);
368232
368240
  function dispatch(request3) {
368233
368241
  ++depth2;
368234
- if (depth2 >= MAX_DEPTH) {
368242
+ if (depth2 >= MAX_DEPTH2) {
368235
368243
  return createResponseFail(request3, new ErrorServiceRequestDepthExceeded(request3, depth2));
368236
368244
  }
368237
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.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,11 +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 = "-") => {
355199
+ var MAX_DEPTH = 4;
355200
+ var formatLogMessage = (message, prefix = "-", depth2 = 0) => {
355201
+ if (depth2 > MAX_DEPTH) {
355202
+ return "<max depth>";
355203
+ }
355200
355204
  return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
355201
- ${message.map((item, index2) => ` ${prefix}> #${index2} = ${formatLogMessage(item)}`).join("\n")}` : typeof message === "object" ? `
355205
+ ${message.map((item, index2) => ` ${prefix}> #${index2} = ${formatLogMessage(item, `${prefix}-`, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
355202
355206
  ${Object.keys(message).map(
355203
- (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]}`
355204
355212
  ).join("\n")}` : message;
355205
355213
  };
355206
355214
  var _isFunction = (value2) => {
@@ -366355,7 +366363,7 @@ function isServiceResponseSuccess(res) {
366355
366363
  }
366356
366364
 
366357
366365
  // node_modules/.pnpm/@cspell+cspell-service-bus@8.8.4/node_modules/@cspell/cspell-service-bus/dist/esm/bus.js
366358
- var MAX_DEPTH = 10;
366366
+ var MAX_DEPTH2 = 10;
366359
366367
  var ServiceBus = class {
366360
366368
  handlers = [];
366361
366369
  constructor(handlers = []) {
@@ -366373,7 +366381,7 @@ var ServiceBus = class {
366373
366381
  const handler2 = this.reduceHandlers(this.handlers, request2, dispatcher, this.defaultHandler);
366374
366382
  function dispatch(request3) {
366375
366383
  ++depth2;
366376
- if (depth2 >= MAX_DEPTH) {
366384
+ if (depth2 >= MAX_DEPTH2) {
366377
366385
  return createResponseFail(request3, new ErrorServiceRequestDepthExceeded(request3, depth2));
366378
366386
  }
366379
366387
  const response = handler2(request3);