open-mail-cli 1.0.1 → 1.0.2

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.js CHANGED
@@ -304,6 +304,7 @@ var init_logger = __esm({
304
304
  logFile;
305
305
  levels;
306
306
  currentLevel;
307
+ enableConsole;
307
308
  /**
308
309
  * Create a logger instance.
309
310
  */
@@ -317,6 +318,7 @@ var init_logger = __esm({
317
318
  DEBUG: 3
318
319
  };
319
320
  this.currentLevel = this.levels.INFO;
321
+ this.enableConsole = false;
320
322
  this.ensureLogDir();
321
323
  }
322
324
  /**
@@ -353,7 +355,9 @@ var init_logger = __esm({
353
355
  log(level, message, meta = {}) {
354
356
  if (this.levels[level] <= this.currentLevel) {
355
357
  const formattedMessage = this.formatMessage(level, message, meta);
356
- console.log(formattedMessage);
358
+ if (this.enableConsole) {
359
+ console.log(formattedMessage);
360
+ }
357
361
  this.writeToFile(formattedMessage);
358
362
  }
359
363
  }
@@ -14336,7 +14340,7 @@ var import_commander2 = require("commander");
14336
14340
  // package.json
14337
14341
  var package_default = {
14338
14342
  name: "open-mail-cli",
14339
- version: "1.0.1",
14343
+ version: "1.0.2",
14340
14344
  description: "A command-line email client with IMAP/SMTP support",
14341
14345
  main: "dist/index.js",
14342
14346
  bin: {