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

express-error-handler

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-error-handler - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

12

error-handler.js

@@ -199,8 +199,2 @@ /**

return res.format({
text: function () {
res.send(status);
},
html: function () {
res.send(status);
},
json: function () {

@@ -216,2 +210,8 @@ var body = mixIn({}, err, {

res.send(status, body);
},
text: function () {
res.send(status);
},
html: function () {
res.send(status);
}

@@ -218,0 +218,0 @@ });

{
"name": "express-error-handler",
"version": "0.5.0",
"version": "0.5.1",
"description": "A graceful error handler for Express applications.",

@@ -5,0 +5,0 @@ "main": "error-handler.js",

@@ -326,3 +326,3 @@ 'use strict';

t.equal(obj.links[0].self, '/foo',
'Should be able to define a custom' +
'Should be able to define a custom ' +
'serializer for error responses.');

@@ -329,0 +329,0 @@ t.end();

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