@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 +16 -2
- package/README.md +1 -1
- package/index.cjs +12 -3
- package/index.js +12 -3
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/src/utilities/logger.d.ts +1 -1
- package/utilities/logger.cjs +12 -3
- package/utilities/logger.js +12 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
## 1.
|
|
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
|
|
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
|
-
[](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/index.cjs
CHANGED
|
@@ -66544,10 +66544,19 @@ var getStopwatch = (name) => {
|
|
|
66544
66544
|
);
|
|
66545
66545
|
};
|
|
66546
66546
|
};
|
|
66547
|
-
var
|
|
66548
|
-
|
|
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(
|
|
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
|
|
66505
|
-
|
|
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(
|
|
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) => {
|