@noxfly/noxus 1.1.2 → 1.1.5
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/noxus.d.mts +8 -1
- package/dist/noxus.d.ts +8 -1
- package/dist/noxus.js +1340 -5
- package/dist/noxus.mjs +1262 -5
- package/package.json +1 -1
- package/src/DI/injector-explorer.ts +0 -1
- package/src/decorators/guards.decorator.ts +0 -2
- package/src/decorators/middleware.decorator.ts +0 -2
- package/src/router.ts +1 -2
- package/src/utils/logger.ts +29 -7
- package/tsup.config.ts +2 -1
- package/dist/noxus.mjs.map +0 -1
package/dist/noxus.d.mts
CHANGED
|
@@ -577,7 +577,7 @@ declare const MODULE_METADATA_KEY: unique symbol;
|
|
|
577
577
|
/**
|
|
578
578
|
* Logger is a utility class for logging messages to the console.
|
|
579
579
|
*/
|
|
580
|
-
type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug';
|
|
580
|
+
type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug' | 'comment';
|
|
581
581
|
declare namespace Logger {
|
|
582
582
|
/**
|
|
583
583
|
* Sets the log level for the logger.
|
|
@@ -621,6 +621,13 @@ declare namespace Logger {
|
|
|
621
621
|
* @param args The arguments to log.
|
|
622
622
|
*/
|
|
623
623
|
function debug(...args: any[]): void;
|
|
624
|
+
/**
|
|
625
|
+
* Logs a message to the console with log level COMMENT.
|
|
626
|
+
* This function formats the message with a timestamp, process ID, and the name of the caller function or class.
|
|
627
|
+
* It uses different colors for different log levels to enhance readability.
|
|
628
|
+
* @param args The arguments to log.
|
|
629
|
+
*/
|
|
630
|
+
function comment(...args: any[]): void;
|
|
624
631
|
const colors: {
|
|
625
632
|
black: string;
|
|
626
633
|
grey: string;
|
package/dist/noxus.d.ts
CHANGED
|
@@ -577,7 +577,7 @@ declare const MODULE_METADATA_KEY: unique symbol;
|
|
|
577
577
|
/**
|
|
578
578
|
* Logger is a utility class for logging messages to the console.
|
|
579
579
|
*/
|
|
580
|
-
type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug';
|
|
580
|
+
type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug' | 'comment';
|
|
581
581
|
declare namespace Logger {
|
|
582
582
|
/**
|
|
583
583
|
* Sets the log level for the logger.
|
|
@@ -621,6 +621,13 @@ declare namespace Logger {
|
|
|
621
621
|
* @param args The arguments to log.
|
|
622
622
|
*/
|
|
623
623
|
function debug(...args: any[]): void;
|
|
624
|
+
/**
|
|
625
|
+
* Logs a message to the console with log level COMMENT.
|
|
626
|
+
* This function formats the message with a timestamp, process ID, and the name of the caller function or class.
|
|
627
|
+
* It uses different colors for different log levels to enhance readability.
|
|
628
|
+
* @param args The arguments to log.
|
|
629
|
+
*/
|
|
630
|
+
function comment(...args: any[]): void;
|
|
624
631
|
const colors: {
|
|
625
632
|
black: string;
|
|
626
633
|
grey: string;
|