@storm-software/config-tools 1.104.2 → 1.105.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 +18 -2
- package/README.md +1 -1
- package/declarations.d.ts +4 -1
- package/index.cjs +6 -4
- package/index.js +6 -4
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/src/utilities/logger.d.ts +5 -1
- package/utilities/logger.cjs +6 -4
- package/utilities/logger.js +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
## 1.
|
|
1
|
+
## 1.105.0 (2024-10-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
- **eslint:** Added the `nx` linting rules configuration option ([cebc611a](https://github.com/storm-software/storm-ops/commit/cebc611a))
|
|
7
|
+
|
|
8
|
+
- **config-tools:** Update the parameters to `formatLogMessage` to accept options object ([e159f35b](https://github.com/storm-software/storm-ops/commit/e159f35b))
|
|
2
9
|
|
|
10
|
+
## 1.104.3 (2024-10-22)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **eslint:** Resolved issues with `parserOptions` configurations
|
|
15
|
+
([f35b4739](https://github.com/storm-software/storm-ops/commit/f35b4739))
|
|
16
|
+
|
|
17
|
+
## 1.104.2 (2024-10-22)
|
|
3
18
|
|
|
4
19
|
### Bug Fixes
|
|
5
20
|
|
|
6
|
-
- **eslint:** Resolve issue with `parserOptions` configuration
|
|
21
|
+
- **eslint:** Resolve issue with `parserOptions` configuration
|
|
22
|
+
([4da465aa](https://github.com/storm-software/storm-ops/commit/4da465aa))
|
|
7
23
|
|
|
8
24
|
## 1.104.1 (2024-10-22)
|
|
9
25
|
|
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/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(
|
|
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,
|
|
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,
|
|
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;
|