@duvdu-v1/duvdu 1.1.120 → 1.1.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ const globalErrorHandlingMiddleware = (err, req, res, next) => {
11
11
  winston_1.logger.error(err);
12
12
  // custom error
13
13
  if (err instanceof custom_error_1.CustomError) {
14
- return res.status(err.statusCode).json({ errors: err.serializeError() });
14
+ return res.status(err.statusCode).json({ errors: err.serializeError(), details: err });
15
15
  }
16
16
  // mongo dublicate error
17
17
  if (err.name === 'MongoServerError' && err.code == '11000')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.120",
3
+ "version": "1.1.121",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [