@qui-cli/log 3.0.0 → 3.1.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 +14 -0
- package/README.md +1 -1
- package/dist/Log.js +9 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.1.0](https://github.com/battis/qui-cli/compare/log/3.0.1...log/3.1.0) (2025-11-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* standardize on modules labeling the options that they add to the usage man page ([eba86cd](https://github.com/battis/qui-cli/commit/eba86cd8a22a93aa6b6f19a3979272d87fe59274))
|
|
11
|
+
|
|
12
|
+
## [3.0.1](https://github.com/battis/qui-cli/compare/log/3.0.0...log/3.0.1) (2025-08-04)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* update lagging peer dependency specs ([c6d2d4d](https://github.com/battis/qui-cli/commit/c6d2d4d141fc9a9389648d6cb2cab4bfc05f9e55))
|
|
18
|
+
|
|
5
19
|
## [3.0.0](https://github.com/battis/qui-cli/compare/log/2.2.2...log/3.0.0) (2025-08-02)
|
|
6
20
|
|
|
7
21
|
|
package/README.md
CHANGED
package/dist/Log.js
CHANGED
|
@@ -14,7 +14,7 @@ let stdoutLevel = 'info';
|
|
|
14
14
|
let fileLevel = 'all';
|
|
15
15
|
let levels = DefaultLevels;
|
|
16
16
|
let root = undefined;
|
|
17
|
-
|
|
17
|
+
const transports = {
|
|
18
18
|
console: new winston.transports.Console({
|
|
19
19
|
format: winston.format.printf(({ message }) => message),
|
|
20
20
|
level: stdoutLevel
|
|
@@ -86,6 +86,12 @@ export function options() {
|
|
|
86
86
|
.join(', ')
|
|
87
87
|
.replace(/, ([^,]+)$/, ', or $1');
|
|
88
88
|
return {
|
|
89
|
+
man: [
|
|
90
|
+
{
|
|
91
|
+
level: 3,
|
|
92
|
+
text: 'Logging options'
|
|
93
|
+
}
|
|
94
|
+
],
|
|
89
95
|
opt: {
|
|
90
96
|
logFilePath: {
|
|
91
97
|
description: `Path to log file (optional)`
|
|
@@ -113,8 +119,10 @@ export function syntaxColor(obj) {
|
|
|
113
119
|
.replace(/: ("([^"]|\\")*")/g, `: ${Colors.quotedValue('$1')}`);
|
|
114
120
|
}
|
|
115
121
|
function namedLogMethod(level) {
|
|
122
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
116
123
|
return (message, ...meta) => {
|
|
117
124
|
if (typeof message != 'string') {
|
|
125
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
118
126
|
if (meta.some((elt) => elt.color === false)) {
|
|
119
127
|
if (message === undefined) {
|
|
120
128
|
message = 'undefined';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qui-cli/log",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "@qui-cli Plugin: Standardized winston wrapper",
|
|
5
5
|
"homepage": "https://github.com/battis/qui-cli/tree/main/packages/log#readme",
|
|
6
6
|
"repository": {
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"ora": "^8.2.0",
|
|
21
|
-
"strip-ansi": "^7.1.
|
|
22
|
-
"winston": "^3.
|
|
21
|
+
"strip-ansi": "^7.1.2",
|
|
22
|
+
"winston": "^3.18.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@tsconfig/node20": "^20.1.6",
|
|
26
|
-
"@types/node": "^24.
|
|
27
|
-
"commit-and-tag-version": "^12.
|
|
26
|
+
"@types/node": "^24.10.0",
|
|
27
|
+
"commit-and-tag-version": "^12.6.0",
|
|
28
28
|
"del-cli": "^6.0.0",
|
|
29
29
|
"npm-run-all": "^4.1.5",
|
|
30
|
-
"typescript": "
|
|
31
|
-
"@qui-cli/
|
|
32
|
-
"@qui-cli/
|
|
33
|
-
"@qui-cli/
|
|
30
|
+
"typescript": "~5.8.3",
|
|
31
|
+
"@qui-cli/plugin": "3.0.0",
|
|
32
|
+
"@qui-cli/colors": "3.0.1",
|
|
33
|
+
"@qui-cli/root": "3.0.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@qui-cli/colors": "
|
|
37
|
-
"@qui-cli/plugin": "
|
|
38
|
-
"@qui-cli/root": "
|
|
36
|
+
"@qui-cli/colors": "3.x",
|
|
37
|
+
"@qui-cli/plugin": "3.x",
|
|
38
|
+
"@qui-cli/root": "3.x"
|
|
39
39
|
},
|
|
40
40
|
"target": "node",
|
|
41
41
|
"scripts": {
|