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 4.3.4 to 4.3.5

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": "4.3.4",
"version": "4.3.5",
"description": "Strapi's logger",

@@ -41,3 +41,3 @@ "homepage": "https://strapi.io",

},
"gitHead": "28a2a00db8234ffcf644661c4c8092aa82f8c119"
"gitHead": "a52b0535513ff35b4ef46c9daf7be48f2ba71737"
}
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