Socket
Socket
Sign inDemoInstall

express-errors-handler

Package Overview
Dependencies
5
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

1

main.js

@@ -20,2 +20,3 @@ 'use strict';

middleware: function(err, req, res, next) {
console.log("Uncaught Error", err);
res.status(500).send({ type: "Uncaught Error", error: err });

@@ -22,0 +23,0 @@ process.exit(1);

2

package.json
{
"name": "express-errors-handler",
"version": "1.0.0",
"version": "1.1.0",
"main": "main.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -5,2 +5,8 @@ # express-errors-handler

## Installation
```sh
npm install --save express-errors-handler
```
## Usage

@@ -27,3 +33,3 @@

// Make sure the middleware is added after your routes otherwise
// Make sure the middleware is added after your routes otherwise you'll lose the errors
app.use(errorMiddleware);

@@ -30,0 +36,0 @@ ```

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