@pxp-nd/core 1.2.76 → 1.2.77

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.
@@ -50,14 +50,13 @@ const errorMiddleware = (err, req, res) => {
50
50
  const { statusCode, message, stack, tecMessage, errorObject } = err;
51
51
  const extraObj = process.env.NODE_ENV === "production"
52
52
  ? {}
53
- : { extendedMessage: tecMessage, stack };
53
+ : { extendedMessage: tecMessage, stack, errorObject };
54
54
  // @todo if production not show tecMessage and stack
55
55
  return res.status(err.statusCode || 500).json({
56
56
  error: Object.assign({
57
57
  code: statusCode,
58
58
  message,
59
59
  logId: res.logId ? res.logId : undefined,
60
- errorObject,
61
60
  }, extraObj),
62
61
  });
63
62
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/core",
3
- "version": "1.2.76",
3
+ "version": "1.2.77",
4
4
  "description": "Contains main files for pxp-nd",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",