express-error-handler
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -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(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24875