@escapenavigator/utils 1.10.137 → 1.10.138
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.
|
@@ -88,8 +88,7 @@ function classifyApiError(ctx) {
|
|
|
88
88
|
// 0-status + ECONNABORTED/ETIMEDOUT — наш timeout сработал (по умолчанию
|
|
89
89
|
// 25s для widget, 0 для остальных). Это сигнал «бэк не успел ответить» —
|
|
90
90
|
// critical, чтобы видеть на проде если ручка стала медленной.
|
|
91
|
-
if (!status &&
|
|
92
|
-
(code === 'ECONNABORTED' || code === 'ETIMEDOUT' || code === 'ECONNRESET')) {
|
|
91
|
+
if (!status && (code === 'ECONNABORTED' || code === 'ETIMEDOUT' || code === 'ECONNRESET')) {
|
|
93
92
|
return {
|
|
94
93
|
severity: 'critical',
|
|
95
94
|
level: 'error',
|
package/dist/validate-by-dto.js
CHANGED
|
@@ -11,7 +11,7 @@ function validateByDto(t) {
|
|
|
11
11
|
}
|
|
12
12
|
const text = constraints?.IsNotEmpty || Object.values(constraints || {})[0];
|
|
13
13
|
const errorText = text.substr(text.indexOf(' ') + 1);
|
|
14
|
-
acc[property] =
|
|
14
|
+
acc[property] = t(errorText, { ns: 'validationErrors' });
|
|
15
15
|
return acc;
|
|
16
16
|
}, {});
|
|
17
17
|
const res = getErrors(errors);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/utils",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.138",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.134",
|
|
18
18
|
"axios": "^0.21.4",
|
|
19
19
|
"class-transformer": "^0.5.1",
|
|
20
20
|
"class-validator": "^0.13.2",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"ts-jest": "^29.1.1",
|
|
29
29
|
"typescript": "^5.6"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "5cd7568c6f6a3b137525b6dd36e530f2bec3be09"
|
|
32
32
|
}
|