@strapi/logger
Advanced tools
Comparing version 0.0.0-8581854cb3 to 0.0.0-cd1604968c1b55bb2c4393541f4badd85ca0204d
'use strict'; | ||
const prettyPrint = require('./pretty-print'); | ||
const levelFilter = require('./level-filter'); | ||
module.exports = { | ||
prettyPrint: require('./pretty-print'), | ||
levelFilter: require('./level-filter'), | ||
prettyPrint, | ||
levelFilter, | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = (...levels) => { | ||
return format(info => (levels.some(level => info.level.includes(level)) ? info : false))(); | ||
return format((info) => (levels.some((level) => info.level.includes(level)) ? info : false))(); | ||
}; |
@@ -5,7 +5,5 @@ 'use strict'; | ||
module.exports = format(info => { | ||
module.exports = format((info) => { | ||
if (info instanceof Error) { | ||
return Object.assign({}, info, { | ||
message: `${info.message}${info.stack ? `\n` + info.stack : ''}`, | ||
}); | ||
return { ...info, message: `${info.message}${info.stack ? `\n${info.stack}` : ''}` }; | ||
} | ||
@@ -12,0 +10,0 @@ |
{ | ||
"name": "@strapi/logger", | ||
"version": "0.0.0-8581854cb3", | ||
"version": "0.0.0-cd1604968c1b55bb2c4393541f4badd85ca0204d", | ||
"description": "Strapi's logger", | ||
@@ -41,3 +41,3 @@ "homepage": "https://strapi.io", | ||
}, | ||
"gitHead": "8581854cb3c817ae42b829ea686a1b0702ed9245" | ||
"gitHead": "cd1604968c1b55bb2c4393541f4badd85ca0204d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5083