@storm-software/tsdown 0.18.3 → 0.19.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/README.md +1 -2
- package/dist/build.cjs +3 -3
- package/dist/build.js +2 -2
- package/dist/{chunk-FROCCR3P.js → chunk-6NMTPFXQ.js} +1 -1
- package/dist/{chunk-IZXAJLBV.js → chunk-D42RFSA4.js} +54 -8
- package/dist/{chunk-EPTKG5AH.cjs → chunk-QYOK2QJA.cjs} +54 -8
- package/dist/{chunk-QEW6XTIO.cjs → chunk-TEQW7DKT.cjs} +86 -86
- package/dist/clean.cjs +2 -2
- package/dist/clean.d.cts +57 -57
- package/dist/clean.d.ts +57 -57
- package/dist/clean.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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
|
|
4
|
-
require('./chunk-
|
|
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 =
|
|
9
|
+
exports.build = _chunkTEQW7DKTcjs.build;
|
package/dist/build.js
CHANGED
|
@@ -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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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");
|