@qui-cli/log 3.0.1 → 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 CHANGED
@@ -2,6 +2,13 @@
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
+
5
12
  ## [3.0.1](https://github.com/battis/qui-cli/compare/log/3.0.0...log/3.0.1) (2025-08-04)
6
13
 
7
14
 
package/README.md CHANGED
@@ -14,7 +14,7 @@ npm install @qui-cli/log @qui-cli/core
14
14
  ## Usage
15
15
 
16
16
  ```ts
17
- import { Log } from '@qui-cli/env';
17
+ import { Log } from '@qui-cli/log';
18
18
  import { Core } from '@qui-cli/core';
19
19
 
20
20
  // process user-provided command-line arguments
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
- let transports = {
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.0.1",
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,19 +18,19 @@
18
18
  "types": "./dist/index.d.ts",
19
19
  "dependencies": {
20
20
  "ora": "^8.2.0",
21
- "strip-ansi": "^7.1.0",
22
- "winston": "^3.17.0"
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.1.0",
27
- "commit-and-tag-version": "^12.5.2",
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": "^5.9.2",
30
+ "typescript": "~5.8.3",
31
+ "@qui-cli/plugin": "3.0.0",
31
32
  "@qui-cli/colors": "3.0.1",
32
- "@qui-cli/root": "3.0.1",
33
- "@qui-cli/plugin": "3.0.0"
33
+ "@qui-cli/root": "3.0.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@qui-cli/colors": "3.x",