mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-10-09 09:59:45 +07:00
node_modules: update (#332)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
1 parent
c1dac70e3a
commit
6bf0a2f26a
95 files changed
+1102
-503
No files matched your search
+4
-2
@@ -377,8 +377,10 @@ const getLogger = (options, defaults) => {
|
||||
}
|
||||
const logger = options.logger === true ? createDefaultLogger(levels) : options.logger;
|
||||
levels.forEach(level => {
|
||||
response[level] = (data, message, ...args) => {
|
||||
(0, exports._logFunc)(logger, level, defaults, data, message, ...args);
|
||||
response[level] = (...args) => {
|
||||
// the bunyan forms: a data object first, or the message alone
|
||||
const data = typeof args[0] === 'string' ? undefined : args.shift();
|
||||
(0, exports._logFunc)(logger, level, defaults, data, ...args);
|
||||
};
|
||||
});
|
||||
return response;
|
||||
|
||||
Reference in new issue
Block a user