@storm-software/config-tools 1.102.1 → 1.103.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,9 +1,23 @@
1
- ## 1.102.1 (2024-10-20)
1
+ ## 1.103.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))
2
7
 
8
+ ## 1.102.2 (2024-10-21)
9
+
10
+ ### Bug Fixes
11
+
12
+ - **config-tools:** Resolved issue printing object arrays to the logs
13
+ ([1590597a](https://github.com/storm-software/storm-ops/commit/1590597a))
14
+
15
+ ## 1.102.1 (2024-10-20)
3
16
 
4
17
  ### Bug Fixes
5
18
 
6
- - **eslint:** Resolve issue with merging ESLint configuration objects ([bb37374a](https://github.com/storm-software/storm-ops/commit/bb37374a))
19
+ - **eslint:** Resolve issue with merging ESLint configuration objects
20
+ ([bb37374a](https://github.com/storm-software/storm-ops/commit/bb37374a))
7
21
 
8
22
  ## 1.102.0 (2024-10-20)
9
23
 
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.102.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.102.2-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/index.cjs CHANGED
@@ -66544,10 +66544,19 @@ var getStopwatch = (name) => {
66544
66544
  );
66545
66545
  };
66546
66546
  };
66547
- var formatLogMessage = (message, prefix = "-") => {
66548
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
66547
+ var MAX_DEPTH = 4;
66548
+ var formatLogMessage = (message, prefix = "-", depth2 = 0) => {
66549
+ if (depth2 > MAX_DEPTH) {
66550
+ return "<max depth>";
66551
+ }
66552
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
66553
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, `${prefix}-`, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
66549
66554
  ${Object.keys(message).map(
66550
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
66555
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
66556
+ message[key],
66557
+ `${prefix}-`,
66558
+ depth2 + 1
66559
+ ) : message[key]}`
66551
66560
  ).join("\n")}` : message;
66552
66561
  };
66553
66562
  var _isFunction = (value2) => {
package/index.js CHANGED
@@ -66501,10 +66501,19 @@ var getStopwatch = (name) => {
66501
66501
  );
66502
66502
  };
66503
66503
  };
66504
- var formatLogMessage = (message, prefix = "-") => {
66505
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
66504
+ var MAX_DEPTH = 4;
66505
+ var formatLogMessage = (message, prefix = "-", depth2 = 0) => {
66506
+ if (depth2 > MAX_DEPTH) {
66507
+ return "<max depth>";
66508
+ }
66509
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
66510
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, `${prefix}-`, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
66506
66511
  ${Object.keys(message).map(
66507
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
66512
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
66513
+ message[key],
66514
+ `${prefix}-`,
66515
+ depth2 + 1
66516
+ ) : message[key]}`
66508
66517
  ).join("\n")}` : message;
66509
66518
  };
66510
66519
  var _isFunction = (value2) => {