@coana-tech/cli 14.12.56 → 14.12.58

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.56",
3
+ "version": "14.12.58",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -72321,6 +72321,7 @@ import { readFile as readFile13, writeFile as writeFile8 } from "fs/promises";
72321
72321
  var import_winston = __toESM(require_winston(), 1);
72322
72322
  import { Console } from "console";
72323
72323
  import { createWriteStream } from "fs";
72324
+ import { readFile } from "fs/promises";
72324
72325
 
72325
72326
  // ../web-compat-utils/src/util-formatter.ts
72326
72327
  import { format } from "util";
@@ -72336,21 +72337,24 @@ function utilFormatter() {
72336
72337
  }
72337
72338
 
72338
72339
  // ../web-compat-utils/src/logger-singleton.ts
72339
- import { readFile } from "fs/promises";
72340
72340
  var CLILogger = class {
72341
72341
  logger = console;
72342
72342
  writeStream;
72343
72343
  // Spinner registers itself as wrapper in order to suspend spinning when logging -- default to the empty wrapper
72344
72344
  wrapper = (cb) => cb();
72345
72345
  initWinstonLogger(debug, logFilePath) {
72346
+ if (this.logger instanceof import_winston.Logger) {
72347
+ return;
72348
+ }
72346
72349
  const transports = [new import_winston.transports.Console()];
72347
72350
  if (logFilePath) {
72348
72351
  this.writeStream = createWriteStream(logFilePath, { flags: "a" });
72349
- transports.push(new import_winston.transports.Stream({ stream: this.writeStream, level: debug ? "debug" : "file" }));
72352
+ transports.push(new import_winston.transports.Stream({ stream: this.writeStream, level: "file" }));
72350
72353
  }
72351
72354
  const customLevels = {
72352
72355
  ...import_winston.config.npm.levels,
72353
- file: 3.5
72356
+ // 5.5 includes 'debug' but not 'silly'
72357
+ file: 5.5
72354
72358
  };
72355
72359
  const customColors = {
72356
72360
  file: "gray"