@storm-software/tsdown 0.18.3 → 0.18.4

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/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.18.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.18.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm TSDown Package](#storm-tsdown-package)
package/dist/build.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQEW6XTIOcjs = require('./chunk-QEW6XTIO.cjs');
4
- require('./chunk-EPTKG5AH.cjs');
3
+ var _chunkTEQW7DKTcjs = require('./chunk-TEQW7DKT.cjs');
4
+ require('./chunk-QYOK2QJA.cjs');
5
5
  require('./chunk-5KRF6IVW.cjs');
6
6
  require('./chunk-USNT2KNT.cjs');
7
7
 
8
8
 
9
- exports.build = _chunkQEW6XTIOcjs.build;
9
+ exports.build = _chunkTEQW7DKTcjs.build;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-FROCCR3P.js";
4
- import "./chunk-IZXAJLBV.js";
3
+ } from "./chunk-6NMTPFXQ.js";
4
+ import "./chunk-D42RFSA4.js";
5
5
  import "./chunk-UQLCBJOS.js";
6
6
  import "./chunk-SHUYVCID.js";
7
7
  export {
@@ -20,7 +20,7 @@ import {
20
20
  writeSystem,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-IZXAJLBV.js";
23
+ } from "./chunk-D42RFSA4.js";
24
24
  import {
25
25
  DEFAULT_BUILD_OPTIONS
26
26
  } from "./chunk-UQLCBJOS.js";
@@ -22,6 +22,7 @@ var LogLevelLabel = {
22
22
  FATAL: "fatal",
23
23
  ERROR: "error",
24
24
  WARN: "warn",
25
+ SUCCESS: "success",
25
26
  INFO: "info",
26
27
  DEBUG: "debug",
27
28
  TRACE: "trace",
@@ -166,6 +167,7 @@ var StormConfigSchema = z.object({
166
167
  "fatal",
167
168
  "error",
168
169
  "warn",
170
+ "success",
169
171
  "info",
170
172
  "debug",
171
173
  "trace",
@@ -369,12 +371,17 @@ var chalkDefault = {
369
371
  whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
370
372
  }), "bgHex"),
371
373
  whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright"),
374
+ gray: /* @__PURE__ */ __name((message) => message, "gray"),
372
375
  bold: {
373
376
  hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
374
377
  bgHex: /* @__PURE__ */ __name((_) => ({
375
378
  whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
376
379
  }), "bgHex"),
377
380
  whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
381
+ },
382
+ dim: {
383
+ hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
384
+ gray: /* @__PURE__ */ __name((message) => message, "gray")
378
385
  }
379
386
  };
380
387
  var getChalk = /* @__PURE__ */ __name(() => {
@@ -385,6 +392,38 @@ var getChalk = /* @__PURE__ */ __name(() => {
385
392
  return _chalk;
386
393
  }, "getChalk");
387
394
 
395
+ // ../config-tools/src/logger/is-unicode-supported.ts
396
+ import process2 from "node:process";
397
+ function isUnicodeSupported() {
398
+ const { env } = process2;
399
+ const { TERM, TERM_PROGRAM } = env;
400
+ if (process2.platform !== "win32") {
401
+ return TERM !== "linux";
402
+ }
403
+ return Boolean(env.WT_SESSION) || // Windows Terminal
404
+ Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
405
+ env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
406
+ TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
407
+ }
408
+ __name(isUnicodeSupported, "isUnicodeSupported");
409
+
410
+ // ../config-tools/src/logger/console-icons.ts
411
+ var useIcon = /* @__PURE__ */ __name((c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
412
+ var CONSOLE_ICONS = {
413
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
414
+ [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
415
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
416
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
417
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
418
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
419
+ [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
420
+ };
421
+
422
+ // ../config-tools/src/logger/format-timestamp.ts
423
+ var formatTimestamp = /* @__PURE__ */ __name((date = /* @__PURE__ */ new Date()) => {
424
+ return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
425
+ }, "formatTimestamp");
426
+
388
427
  // ../config-tools/src/logger/get-log-level.ts
389
428
  var getLogLevel = /* @__PURE__ */ __name((label) => {
390
429
  switch (label) {
@@ -437,7 +476,7 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
437
476
  }, "getLogLevelLabel");
438
477
  var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
439
478
  const logLevel = typeof label === "string" ? getLogLevel(label) : label;
440
- return logLevel <= LogLevel.DEBUG;
479
+ return logLevel >= LogLevel.DEBUG;
441
480
  }, "isVerbose");
442
481
 
443
482
  // ../config-tools/src/logger/console.ts
@@ -451,42 +490,49 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
451
490
  }
452
491
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
453
492
  return (message) => {
454
- console.error(`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(" \u{1F480} Fatal ")} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
493
+ console.error(`
494
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
455
495
  `);
456
496
  };
457
497
  }
458
498
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
459
499
  return (message) => {
460
- console.error(`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(" \u2718 Error ")} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
500
+ console.error(`
501
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
461
502
  `);
462
503
  };
463
504
  }
464
505
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
465
506
  return (message) => {
466
- console.warn(`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(" \u26A0 Warn ")} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
507
+ console.warn(`
508
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
467
509
  `);
468
510
  };
469
511
  }
470
512
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
471
513
  return (message) => {
472
- console.info(`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(" \u2713 Success ")} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
514
+ console.info(`
515
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
473
516
  `);
474
517
  };
475
518
  }
476
519
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
477
520
  return (message) => {
478
- console.info(`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(" \u2139 Info ")} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
521
+ console.info(`
522
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
479
523
  `);
480
524
  };
481
525
  }
482
526
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
483
527
  return (message) => {
484
- console.debug(`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(" \u{1F6E0} Debug ")} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
528
+ console.debug(`
529
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
485
530
  `);
486
531
  };
487
532
  }
488
533
  return (message) => {
489
- console.log(`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(" \u2709 System ")} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
534
+ console.log(`
535
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
490
536
  `);
491
537
  };
492
538
  }, "getLogFn");
@@ -22,6 +22,7 @@ var LogLevelLabel = {
22
22
  FATAL: "fatal",
23
23
  ERROR: "error",
24
24
  WARN: "warn",
25
+ SUCCESS: "success",
25
26
  INFO: "info",
26
27
  DEBUG: "debug",
27
28
  TRACE: "trace",
@@ -166,6 +167,7 @@ var StormConfigSchema = _zod2.default.object({
166
167
  "fatal",
167
168
  "error",
168
169
  "warn",
170
+ "success",
169
171
  "info",
170
172
  "debug",
171
173
  "trace",
@@ -369,12 +371,17 @@ var chalkDefault = {
369
371
  whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
370
372
  }), "bgHex"),
371
373
  whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright"),
374
+ gray: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "gray"),
372
375
  bold: {
373
376
  hex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => (message) => message, "hex"),
374
377
  bgHex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => ({
375
378
  whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
376
379
  }), "bgHex"),
377
380
  whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
381
+ },
382
+ dim: {
383
+ hex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => (message) => message, "hex"),
384
+ gray: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "gray")
378
385
  }
379
386
  };
380
387
  var getChalk = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
@@ -385,6 +392,38 @@ var getChalk = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
385
392
  return _chalk;
386
393
  }, "getChalk");
387
394
 
395
+ // ../config-tools/src/logger/is-unicode-supported.ts
396
+ var _process = require('process'); var _process2 = _interopRequireDefault(_process);
397
+ function isUnicodeSupported() {
398
+ const { env } = _process2.default;
399
+ const { TERM, TERM_PROGRAM } = env;
400
+ if (_process2.default.platform !== "win32") {
401
+ return TERM !== "linux";
402
+ }
403
+ return Boolean(env.WT_SESSION) || // Windows Terminal
404
+ Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
405
+ env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
406
+ TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
407
+ }
408
+ _chunkUSNT2KNTcjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
409
+
410
+ // ../config-tools/src/logger/console-icons.ts
411
+ var useIcon = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
412
+ var CONSOLE_ICONS = {
413
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
414
+ [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
415
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
416
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
417
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
418
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
419
+ [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
420
+ };
421
+
422
+ // ../config-tools/src/logger/format-timestamp.ts
423
+ var formatTimestamp = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
424
+ return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
425
+ }, "formatTimestamp");
426
+
388
427
  // ../config-tools/src/logger/get-log-level.ts
389
428
  var getLogLevel = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label) => {
390
429
  switch (label) {
@@ -437,7 +476,7 @@ var getLogLevelLabel = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (lo
437
476
  }, "getLogLevelLabel");
438
477
  var isVerbose = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label = LogLevelLabel.SILENT) => {
439
478
  const logLevel = typeof label === "string" ? getLogLevel(label) : label;
440
- return logLevel <= LogLevel.DEBUG;
479
+ return logLevel >= LogLevel.DEBUG;
441
480
  }, "isVerbose");
442
481
 
443
482
  // ../config-tools/src/logger/console.ts
@@ -451,42 +490,49 @@ var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel =
451
490
  }
452
491
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
453
492
  return (message) => {
454
- console.error(`${_chalk.bold.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a"))).whiteBright(" \u{1F480} Fatal ")} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(formatLogMessage(message))}
493
+ console.error(`
494
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(formatLogMessage(message))}
455
495
  `);
456
496
  };
457
497
  }
458
498
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
459
499
  return (message) => {
460
- console.error(`${_chalk.bold.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.danger, () => ( "#f85149"))).whiteBright(" \u2718 Error ")} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(formatLogMessage(message))}
500
+ console.error(`
501
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(formatLogMessage(message))}
461
502
  `);
462
503
  };
463
504
  }
464
505
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
465
506
  return (message) => {
466
- console.warn(`${_chalk.bold.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.warning, () => ( "#e3b341"))).whiteBright(" \u26A0 Warn ")} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(formatLogMessage(message))}
507
+ console.warn(`
508
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(formatLogMessage(message))}
467
509
  `);
468
510
  };
469
511
  }
470
512
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
471
513
  return (message) => {
472
- console.info(`${_chalk.bold.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.success, () => ( "#56d364"))).whiteBright(" \u2713 Success ")} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(formatLogMessage(message))}
514
+ console.info(`
515
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(formatLogMessage(message))}
473
516
  `);
474
517
  };
475
518
  }
476
519
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
477
520
  return (message) => {
478
- console.info(`${_chalk.bold.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.info, () => ( "#58a6ff"))).whiteBright(" \u2139 Info ")} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(formatLogMessage(message))}
521
+ console.info(`
522
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(formatLogMessage(message))}
479
523
  `);
480
524
  };
481
525
  }
482
526
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
483
527
  return (message) => {
484
- console.debug(`${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6"))).whiteBright(" \u{1F6E0} Debug ")} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
528
+ console.debug(`
529
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
485
530
  `);
486
531
  };
487
532
  }
488
533
  return (message) => {
489
- console.log(`${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6"))).whiteBright(" \u2709 System ")} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
534
+ console.log(`
535
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
490
536
  `);
491
537
  };
492
538
  }, "getLogFn");