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

dexpress-finalhandler

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dexpress-finalhandler - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

9

index.js

@@ -52,3 +52,3 @@ /*!

// get error callback
var onerror = opts.onerror
var { onerror, onservererror } = opts

@@ -70,2 +70,3 @@ // get error transformer, transforms error before handling as error

var rawErr = err
err = errortransform(err)

@@ -93,2 +94,6 @@

if ((!status || status >= 500) && onservererror) {
onservererror(rawErr)
}
// get error message

@@ -151,3 +156,3 @@ body = getErrorBody(err, status)

for (var key in err) {
if([ 'message', 'reason', 'status', 'statusCode', 'expose' ].includes(key)) {
if([ 'message', 'reason', 'status', 'statusCode', 'expose', 'name' ].includes(key)) {
continue;

@@ -154,0 +159,0 @@ }

{
"name": "dexpress-finalhandler",
"description": "Node.js final http responder",
"version": "0.1.1",
"version": "0.1.2",
"author": "Niels Abildgaard <niels@deranged.dk>",

@@ -6,0 +6,0 @@ "license": "MIT",

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