Socket
Socket
Sign inDemoInstall

express-error-handler

Package Overview
Dependencies
3
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 1.0.0

9

error-handler.js

@@ -56,5 +56,10 @@ /**

'function') {
o.server.close(function () {
try {
o.server.close(function () {
process.exit(o.exitStatus);
});
}
finally {
process.exit(o.exitStatus);
});
}
}

@@ -61,0 +66,0 @@

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

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

express-error-handler
=====================
A graceful error handler for Express applications.
A graceful error handler for Express applications. This also patches a DOS exploit where users can manually trigger bad request errors that shut down your app.
## Quick start:

@@ -160,5 +161,7 @@

## Thanks
## Credit and Thanks
Written by [Eric Elliott](http://ericelliottjs.com/) for the book, ["Programming JavaScript Applications"](http://www.amazon.com/gp/product/1491950293?ie=UTF8&camp=213733&creative=393185&creativeASIN=1491950293&linkCode=shr&tag=eejs-20&linkId=TSFLZ3FJX2X4WZ5H) (O'Reilly)
* [Nam Nguyen](https://github.com/gdbtek) for bringing the Express DOS exploit to my attention.
* [Samuel Reed](https://github.com/strml) for helpful suggestions.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc