@storm-software/config-tools 1.104.1 → 1.104.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 CHANGED
@@ -1,9 +1,23 @@
1
- ## 1.104.1 (2024-10-22)
1
+ ## 1.104.3 (2024-10-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ - **eslint:** Resolved issues with `parserOptions` configurations ([f35b4739](https://github.com/storm-software/storm-ops/commit/f35b4739))
2
7
 
8
+ ## 1.104.2 (2024-10-22)
9
+
10
+ ### Bug Fixes
11
+
12
+ - **eslint:** Resolve issue with `parserOptions` configuration
13
+ ([4da465aa](https://github.com/storm-software/storm-ops/commit/4da465aa))
14
+
15
+ ## 1.104.1 (2024-10-22)
3
16
 
4
17
  ### Bug Fixes
5
18
 
6
- - **eslint:** Resolved issue with react-hooks plugin ([2dbc2670](https://github.com/storm-software/storm-ops/commit/2dbc2670))
19
+ - **eslint:** Resolved issue with react-hooks plugin
20
+ ([2dbc2670](https://github.com/storm-software/storm-ops/commit/2dbc2670))
7
21
 
8
22
  ## 1.104.0 (2024-10-21)
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.104.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.104.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/declarations.d.ts CHANGED
@@ -106,7 +106,10 @@ export { exitWithSuccess };
106
106
  declare function handleProcess(config?: StormConfig): void;
107
107
  export { handleProcess };
108
108
 
109
- declare function formatLogMessage(message?: any, prefix?: string): string;
109
+ declare function formatLogMessage(
110
+ message?: any,
111
+ options?: { prefix?: string; skip?: string[] }
112
+ ): string;
110
113
  export { formatLogMessage };
111
114
 
112
115
  /**
package/index.cjs CHANGED
@@ -66545,16 +66545,18 @@ var getStopwatch = (name) => {
66545
66545
  };
66546
66546
  };
66547
66547
  var MAX_DEPTH = 4;
66548
- var formatLogMessage = (message, prefix = "-", depth2 = 0) => {
66548
+ var formatLogMessage = (message, options = {}, depth2 = 0) => {
66549
66549
  if (depth2 > MAX_DEPTH) {
66550
66550
  return "<max depth>";
66551
66551
  }
66552
+ const prefix = options.prefix ?? "-";
66553
+ const skip = options.skip ?? [];
66552
66554
  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" ? `
66554
- ${Object.keys(message).map(
66555
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
66556
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
66555
66557
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
66556
66558
  message[key],
66557
- `${prefix}-`,
66559
+ { prefix: `${prefix}-`, skip },
66558
66560
  depth2 + 1
66559
66561
  ) : message[key]}`
66560
66562
  ).join("\n")}` : message;
package/index.js CHANGED
@@ -66502,16 +66502,18 @@ var getStopwatch = (name) => {
66502
66502
  };
66503
66503
  };
66504
66504
  var MAX_DEPTH = 4;
66505
- var formatLogMessage = (message, prefix = "-", depth2 = 0) => {
66505
+ var formatLogMessage = (message, options = {}, depth2 = 0) => {
66506
66506
  if (depth2 > MAX_DEPTH) {
66507
66507
  return "<max depth>";
66508
66508
  }
66509
+ const prefix = options.prefix ?? "-";
66510
+ const skip = options.skip ?? [];
66509
66511
  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" ? `
66511
- ${Object.keys(message).map(
66512
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
66513
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
66512
66514
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
66513
66515
  message[key],
66514
- `${prefix}-`,
66516
+ { prefix: `${prefix}-`, skip },
66515
66517
  depth2 + 1
66516
66518
  ) : message[key]}`
66517
66519
  ).join("\n")}` : message;