errorhandler
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -0,1 +1,12 @@ | ||
1.4.3 / 2016-01-17 | ||
================== | ||
* deps: accepts@~1.3.0 | ||
- deps: mime-types@~2.1.7 | ||
- deps: negotiator@0.6.0 | ||
* deps: escape-html@~1.0.3 | ||
- perf: enable strict mode | ||
- perf: optimize string replacement | ||
- perf: use faster string coercion | ||
1.4.2 / 2015-07-30 | ||
@@ -2,0 +13,0 @@ ================== |
{ | ||
"name": "errorhandler", | ||
"description": "Development-only error handler middleware", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"contributors": [ | ||
@@ -12,10 +12,10 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"dependencies": { | ||
"accepts": "~1.2.12", | ||
"escape-html": "1.0.2" | ||
"accepts": "~1.3.0", | ||
"escape-html": "~1.0.3" | ||
}, | ||
"devDependencies": { | ||
"after": "0.8.1", | ||
"istanbul": "0.3.17", | ||
"mocha": "2.2.5", | ||
"supertest": "1.0.1" | ||
"istanbul": "0.4.2", | ||
"mocha": "2.3.4", | ||
"supertest": "1.1.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "files": [ |
@@ -9,4 +9,20 @@ # errorhandler | ||
Development-only error handler middleware | ||
Development-only error handler middleware. | ||
This middleware is only intended to be used in a development environment, as | ||
the _full error stack traces and internal details of any object passed to this | ||
module_ will be sent back to the client when an error occurs. | ||
When an object is provided to Express as an error, this module will display | ||
as much about this object as possible, and will do so by using content negotiation | ||
for the response between HTML, JSON, and plain text. | ||
* When the object is a standard `Error` object, the string provided by the | ||
`stack` property will be returned in HTML/text responses. | ||
* When the object is a non-`Error` object, the result of | ||
[util.inspect](https://nodejs.org/api/util.html#util_util_inspect_object_options) | ||
will be returned in HTML/text responses. | ||
* For JSON responses, the result will be an object with all enumerable properties | ||
from the object in the response. | ||
## Install | ||
@@ -27,5 +43,2 @@ | ||
Create new middleware to handle errors and respond with content negotiation. | ||
This middleware is only intended to be used in a development environment, as | ||
the full error stack traces will be sent back to the client when an error | ||
occurs. | ||
@@ -32,0 +45,0 @@ #### Options |
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
14401
125
+ Addedaccepts@1.3.8(transitive)
+ Addedescape-html@1.0.3(transitive)
+ Addednegotiator@0.6.3(transitive)
- Removedaccepts@1.2.13(transitive)
- Removedescape-html@1.0.2(transitive)
- Removednegotiator@0.5.3(transitive)
Updatedaccepts@~1.3.0
Updatedescape-html@~1.0.3