@biorate/nestjs-tools 2.3.2 → 2.4.0
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.
|
@@ -62,7 +62,7 @@ let AllExceptionsFilter = class AllExceptionsFilter {
|
|
|
62
62
|
}
|
|
63
63
|
log(exception) {
|
|
64
64
|
if (exception instanceof axios_1.AxiosError)
|
|
65
|
-
console.error(new errors_1.AxiosRequestError(exception?.response?.data?.statusCode, exception?.response?.data?.error, exception?.response?.data?.message).stack);
|
|
65
|
+
console.error(new errors_1.AxiosRequestError(exception?.response?.data?.statusCode ?? exception.status, exception?.response?.data?.error ?? exception.code, exception?.response?.data?.message ?? exception.message).stack);
|
|
66
66
|
else
|
|
67
67
|
console.error(exception.stack);
|
|
68
68
|
}
|
|
@@ -59,7 +59,7 @@ let AllExceptionsFilter = class AllExceptionsFilter {
|
|
|
59
59
|
}
|
|
60
60
|
log(exception) {
|
|
61
61
|
if (exception instanceof AxiosError)
|
|
62
|
-
console.error(new AxiosRequestError(exception?.response?.data?.statusCode, exception?.response?.data?.error, exception?.response?.data?.message).stack);
|
|
62
|
+
console.error(new AxiosRequestError(exception?.response?.data?.statusCode ?? exception.status, exception?.response?.data?.error ?? exception.code, exception?.response?.data?.message ?? exception.message).stack);
|
|
63
63
|
else
|
|
64
64
|
console.error(exception.stack);
|
|
65
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biorate/nestjs-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "NestJS tools",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"keywords": [],
|
|
46
46
|
"author": "llevkin",
|
|
47
47
|
"license": "MIT",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "09ccd82d8fba90cb37750dccf41469452880b129",
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@nestjs/common": ">=10.4.15",
|
|
51
51
|
"@nestjs/core": ">=10.4.15",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"ws": ">=8.18.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@biorate/axios": "
|
|
63
|
-
"@biorate/config": "
|
|
64
|
-
"@biorate/errors": "
|
|
65
|
-
"@biorate/inversion": "
|
|
66
|
-
"@biorate/opentelemetry": "
|
|
67
|
-
"@biorate/prometheus": "
|
|
68
|
-
"@biorate/tools": "
|
|
62
|
+
"@biorate/axios": "3.4.0",
|
|
63
|
+
"@biorate/config": "3.2.3",
|
|
64
|
+
"@biorate/errors": "3.1.2",
|
|
65
|
+
"@biorate/inversion": "3.1.3",
|
|
66
|
+
"@biorate/opentelemetry": "2.4.2",
|
|
67
|
+
"@biorate/prometheus": "3.1.3",
|
|
68
|
+
"@biorate/tools": "3.1.2",
|
|
69
69
|
"http-proxy": "1.18.1",
|
|
70
70
|
"http-proxy-middleware": "2.0.6",
|
|
71
71
|
"json-stringify-safe": "5.0.1",
|