@saihu/common 1.2.1 → 1.2.2

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.
@@ -54,7 +54,7 @@ let UnifiedExceptionFilter = UnifiedExceptionFilter_1 = class UnifiedExceptionFi
54
54
  errorCode = exception.code;
55
55
  details = null; // Hide infra details from user
56
56
  }
57
- else if (exception.status) {
57
+ else if (typeof exception.status === 'number') {
58
58
  // Handle standard NestJS HttpExceptions (like 401 Unauthorized)
59
59
  statusCode = exception.status;
60
60
  message = exception.message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saihu/common",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Common utilities for NestJS applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",