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

errorhandler

Package Overview
Dependencies
Maintainers
6
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

errorhandler - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

11

HISTORY.md

@@ -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 @@ ==================

12

package.json
{
"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

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