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

@dimosbotsaris/express-error-handler

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dimosbotsaris/express-error-handler - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorHandler = void 0;
function isHTTPErrorStatus(httpStatus) {

@@ -25,2 +26,2 @@ if (httpStatus < 600 && httpStatus >= 400) {

}
exports.default = errorHandler;
exports.errorHandler = errorHandler;
{
"name": "@dimosbotsaris/express-error-handler",
"version": "1.0.0",
"version": "1.0.1",
"private": false,

@@ -5,0 +5,0 @@ "description": "Simple Express.js middleware middleware to handle errors for APIs and return correct status, error message and trace.",

@@ -30,3 +30,3 @@ <h1 align="center">Welcome to @dimosbotsaris/express-error-handler 👋</h1>

```sh
import errorHandler from '../../test';
import { errorHandler } from '@dimosbotsaris/express-error-handler';

@@ -33,0 +33,0 @@ app.get('/bar', (req: Request, res: Response, next: NextFunction) => {

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