grm-shared-library 1.0.34 → 1.0.35

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.
@@ -52,8 +52,7 @@ let AllExceptionsFilter = AllExceptionsFilter_1 = class AllExceptionsFilter {
52
52
  }
53
53
  this.logger.error(customException.getErrorResponse().message, customException.getErrorResponse().details);
54
54
  (0, error_logger_1.logError)(exception, customException.getContext()); // Log to Sentry
55
- const responseError = { ...customException.getErrorResponse() }; // Remove context before sending response
56
- delete responseError.context;
55
+ const responseError = { ...customException.getErrorResponse() };
57
56
  return (0, rxjs_1.throwError)(() => responseError);
58
57
  }
59
58
  };
@@ -25,9 +25,7 @@ let HttpExceptionFilter = class HttpExceptionFilter {
25
25
  status = exception.getStatus();
26
26
  errorResponse = exception.getResponse();
27
27
  }
28
- (0, error_logger_1.logError)(exception, errorResponse.context || {});
29
- console.log('Error Response context:', errorResponse.context);
30
- console.log('Error Response:', errorResponse);
28
+ (0, error_logger_1.logError)(exception, errorResponse.context || {}); // Log to Sentry
31
29
  response.status(status).json({
32
30
  ...errorResponse,
33
31
  path: request.url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [