@bonnethood/common
Advanced tools
@@ -1,2 +0,2 @@ | ||
| import { Request, Response, NextFunction } from 'express'; | ||
| import { Request, Response, NextFunction } from "express"; | ||
| export declare const errorHandler: (err: Error, req: Request, res: Response, next: NextFunction) => Response<any, Record<string, any>> | undefined; |
@@ -9,5 +9,8 @@ "use strict"; | ||
| } | ||
| // Logging errors | ||
| console.log(err); | ||
| // Return | ||
| res.status(400).send({ | ||
| errors: [{ message: 'Something went wrong' }] | ||
| errors: [{ message: "Something went wrong" }], | ||
| }); | ||
| }; |
+1
-1
| { | ||
| "name": "@bonnethood/common", | ||
| "version": "1.0.11", | ||
| "version": "1.0.12", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14660
0.4%349
0.87%0
-100%