@dimosbotsaris/express-error-handler
Advanced tools
Comparing version 1.0.0 to 1.0.1
"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) => { |
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
15902
26