conventional-changelog-storm-software 0.3.173 → 0.3.174
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/dist/index.cjs +18 -9
- package/dist/index.js +18 -9
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -528,22 +528,31 @@ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.
|
|
|
528
528
|
};
|
|
529
529
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
530
530
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
531
|
-
var MAX_DEPTH =
|
|
531
|
+
var MAX_DEPTH = 10;
|
|
532
532
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
533
533
|
if (depth2 > MAX_DEPTH) {
|
|
534
534
|
return "<max depth>";
|
|
535
535
|
}
|
|
536
|
-
const prefix = options.prefix ?? "
|
|
536
|
+
const prefix = options.prefix ?? "";
|
|
537
537
|
const skip = options.skip ?? [];
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
${
|
|
541
|
-
(
|
|
538
|
+
const sort = options.sort ?? true;
|
|
539
|
+
return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
|
|
540
|
+
${message.map(
|
|
541
|
+
(item, index) => ` ${prefix}> #${index} = ${formatLogMessage(
|
|
542
|
+
item,
|
|
543
|
+
{ prefix: `${prefix}--`, skip, sort },
|
|
544
|
+
depth2 + 1
|
|
545
|
+
)}`
|
|
546
|
+
).join("\n")}` : typeof message === "object" ? `
|
|
547
|
+
${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a3, b2) => a3.localeCompare(b2) : void 0).map(
|
|
548
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
549
|
+
(key2) => !skip.includes(key2)
|
|
550
|
+
).length === 0 ? "{}" : formatLogMessage(
|
|
542
551
|
message[key],
|
|
543
|
-
{ prefix: `${prefix}
|
|
552
|
+
{ prefix: `${prefix}--`, skip, sort },
|
|
544
553
|
depth2 + 1
|
|
545
554
|
) : message[key]}`
|
|
546
|
-
).join("\n")}` : message;
|
|
555
|
+
).join("\n")}` : String(message);
|
|
547
556
|
};
|
|
548
557
|
var _isFunction = (value) => {
|
|
549
558
|
try {
|
|
@@ -1550,7 +1559,7 @@ ${formatLogMessage(config)}`,
|
|
|
1550
1559
|
return config;
|
|
1551
1560
|
};
|
|
1552
1561
|
|
|
1553
|
-
// ../config-tools/dist/chunk-
|
|
1562
|
+
// ../config-tools/dist/chunk-TIH4RSTL.js
|
|
1554
1563
|
function getConfig(workspaceRoot, skipLogs = false) {
|
|
1555
1564
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1556
1565
|
}
|
package/dist/index.js
CHANGED
|
@@ -501,22 +501,31 @@ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.
|
|
|
501
501
|
};
|
|
502
502
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
503
503
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
504
|
-
var MAX_DEPTH =
|
|
504
|
+
var MAX_DEPTH = 10;
|
|
505
505
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
506
506
|
if (depth2 > MAX_DEPTH) {
|
|
507
507
|
return "<max depth>";
|
|
508
508
|
}
|
|
509
|
-
const prefix = options.prefix ?? "
|
|
509
|
+
const prefix = options.prefix ?? "";
|
|
510
510
|
const skip = options.skip ?? [];
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
${
|
|
514
|
-
(
|
|
511
|
+
const sort = options.sort ?? true;
|
|
512
|
+
return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
|
|
513
|
+
${message.map(
|
|
514
|
+
(item, index) => ` ${prefix}> #${index} = ${formatLogMessage(
|
|
515
|
+
item,
|
|
516
|
+
{ prefix: `${prefix}--`, skip, sort },
|
|
517
|
+
depth2 + 1
|
|
518
|
+
)}`
|
|
519
|
+
).join("\n")}` : typeof message === "object" ? `
|
|
520
|
+
${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a3, b2) => a3.localeCompare(b2) : void 0).map(
|
|
521
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
522
|
+
(key2) => !skip.includes(key2)
|
|
523
|
+
).length === 0 ? "{}" : formatLogMessage(
|
|
515
524
|
message[key],
|
|
516
|
-
{ prefix: `${prefix}
|
|
525
|
+
{ prefix: `${prefix}--`, skip, sort },
|
|
517
526
|
depth2 + 1
|
|
518
527
|
) : message[key]}`
|
|
519
|
-
).join("\n")}` : message;
|
|
528
|
+
).join("\n")}` : String(message);
|
|
520
529
|
};
|
|
521
530
|
var _isFunction = (value) => {
|
|
522
531
|
try {
|
|
@@ -1523,7 +1532,7 @@ ${formatLogMessage(config)}`,
|
|
|
1523
1532
|
return config;
|
|
1524
1533
|
};
|
|
1525
1534
|
|
|
1526
|
-
// ../config-tools/dist/chunk-
|
|
1535
|
+
// ../config-tools/dist/chunk-TIH4RSTL.js
|
|
1527
1536
|
function getConfig(workspaceRoot, skipLogs = false) {
|
|
1528
1537
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1529
1538
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conventional-changelog-storm-software",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.174",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "This package contains the shared conventional-changelog configuration used in Storm Software projects.",
|
|
6
6
|
"repository": {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
],
|
|
215
215
|
"dependencies": {
|
|
216
216
|
"@storm-software/config": "^1.137.46",
|
|
217
|
-
"@storm-software/config-tools": "^1.190.
|
|
217
|
+
"@storm-software/config-tools": "^1.190.14",
|
|
218
218
|
"compare-func": "^2.0.0",
|
|
219
219
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
220
220
|
"conventional-changelog-writer": "^8.4.0",
|
|
@@ -228,5 +228,5 @@
|
|
|
228
228
|
},
|
|
229
229
|
"publishConfig": { "access": "public" },
|
|
230
230
|
"sideEffects": false,
|
|
231
|
-
"gitHead": "
|
|
231
|
+
"gitHead": "0c334cad4cd3237b830127698face8e1f4f508fb"
|
|
232
232
|
}
|