Socket
Socket
Sign inDemoInstall

@vtfk/responsehandlers

Package Overview
Dependencies
21
Maintainers
7
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.15 to 1.0.16

2

package.json
{
"name": "@vtfk/responsehandlers",
"version": "1.0.15",
"version": "1.0.16",
"description": "Handles AZF and Express responses",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,4 +28,9 @@ /*

*/
function shouldLog() {
if(req?.outputError === true || req?.outputError === 'true') return true;
if(req?.headers?.outputerror === true || req?.headers?.outputerror === 'true') return true;
return true;
}
// Using native console logging for color highlighting and easier formatting
if (req?.outputError !== false && req?.headers?.outputerror !== false) {
if (shouldLog()) {
// Define the error message for the logger

@@ -32,0 +37,0 @@ const message = typeof error !== 'object' ? error : `${error.message}\n${JSON.stringify(error, null, 2)}`

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc