@tomjs/logger 1.2.0 → 1.3.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/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -70,6 +70,10 @@ declare class Logger {
|
|
|
70
70
|
* add the specified yellow prefix or warning symbol before the log content
|
|
71
71
|
*/
|
|
72
72
|
warning(...args: any[]): void;
|
|
73
|
+
/**
|
|
74
|
+
* add the specified yellow prefix or warning symbol before the log content
|
|
75
|
+
*/
|
|
76
|
+
warn(...args: any[]): void;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
export { Logger, type LoggerOptions, Logger as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -70,6 +70,10 @@ declare class Logger {
|
|
|
70
70
|
* add the specified yellow prefix or warning symbol before the log content
|
|
71
71
|
*/
|
|
72
72
|
warning(...args: any[]): void;
|
|
73
|
+
/**
|
|
74
|
+
* add the specified yellow prefix or warning symbol before the log content
|
|
75
|
+
*/
|
|
76
|
+
warn(...args: any[]): void;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
export { Logger, type LoggerOptions, Logger as default };
|
package/dist/index.js
CHANGED
|
@@ -124,6 +124,9 @@ var Logger = class {
|
|
|
124
124
|
const { prefix } = this._opts;
|
|
125
125
|
this._log(prefix ? _chalk2.default.yellow(prefix) : _logsymbols2.default.warning, ...args);
|
|
126
126
|
}
|
|
127
|
+
warn(...args) {
|
|
128
|
+
this.warning(...args);
|
|
129
|
+
}
|
|
127
130
|
};
|
|
128
131
|
var src_default = Logger;
|
|
129
132
|
exports.Logger = Logger;
|
package/dist/index.mjs
CHANGED
|
@@ -95,6 +95,9 @@ var Logger = class {
|
|
|
95
95
|
const { prefix } = this._opts;
|
|
96
96
|
this._log(prefix ? chalk.yellow(prefix) : logSymbols.warning, ...args);
|
|
97
97
|
}
|
|
98
|
+
warn(...args) {
|
|
99
|
+
this.warning(...args);
|
|
100
|
+
}
|
|
98
101
|
};
|
|
99
102
|
var src_default = Logger;
|
|
100
103
|
export { Logger, src_default as default };
|