Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@strapi/logger

Package Overview
Dependencies
Maintainers
7
Versions
1402
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strapi/logger - npm Package Compare versions

Comparing version 0.0.0-8581854cb3 to 0.0.0-cd1604968c1b55bb2c4393541f4badd85ca0204d

7

lib/formats/index.js
'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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc