New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bunyan-request-logger

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunyan-request-logger - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"name": "bunyan-request-logger",
"version": "0.2.1",
"version": "0.2.2",
"description": "Automated request logging connect middleware for Express. Powered by Bunyan.",

@@ -5,0 +5,0 @@ "main": "request-logger.js",

@@ -153,10 +153,11 @@ 'use strict';

next) {
status = err.status || res && res.status;
// Add the requestId so we can link the
// error back to the originating request.
err.requestId = req.requestId;
err.requestId = req && req.requestId;
// Omit stack from the 4xx range
if (err.status >= 400 &&
err.status <=499 ) {
if (status >= 400 &&
status <=499) {
delete err.stack;

@@ -163,0 +164,0 @@ }

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