@tramvai/tinkoff-request-http-client-adapter 0.12.65 → 0.12.96
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.
|
@@ -95,6 +95,9 @@ function createTinkoffRequest(options) {
|
|
|
95
95
|
return next();
|
|
96
96
|
},
|
|
97
97
|
});
|
|
98
|
+
if (retryOptions) {
|
|
99
|
+
plugins.push(retry(retryOptions));
|
|
100
|
+
}
|
|
98
101
|
if (validator || errorValidator) {
|
|
99
102
|
plugins.push(validate({
|
|
100
103
|
validator,
|
|
@@ -102,9 +105,6 @@ function createTinkoffRequest(options) {
|
|
|
102
105
|
allowFallback: true,
|
|
103
106
|
}));
|
|
104
107
|
}
|
|
105
|
-
if (retryOptions) {
|
|
106
|
-
plugins.push(retry(retryOptions));
|
|
107
|
-
}
|
|
108
108
|
// Executes only on server
|
|
109
109
|
if (etagCacheOptions?.enabled) {
|
|
110
110
|
plugins.push(etagCache({
|
|
@@ -95,6 +95,9 @@ function createTinkoffRequest(options) {
|
|
|
95
95
|
return next();
|
|
96
96
|
},
|
|
97
97
|
});
|
|
98
|
+
if (retryOptions) {
|
|
99
|
+
plugins.push(retry(retryOptions));
|
|
100
|
+
}
|
|
98
101
|
if (validator || errorValidator) {
|
|
99
102
|
plugins.push(validate({
|
|
100
103
|
validator,
|
|
@@ -102,9 +105,6 @@ function createTinkoffRequest(options) {
|
|
|
102
105
|
allowFallback: true,
|
|
103
106
|
}));
|
|
104
107
|
}
|
|
105
|
-
if (retryOptions) {
|
|
106
|
-
plugins.push(retry(retryOptions));
|
|
107
|
-
}
|
|
108
108
|
// Executes only on server
|
|
109
109
|
if (etagCacheOptions?.enabled) {
|
|
110
110
|
plugins.push(etagCache({
|
|
@@ -113,6 +113,9 @@ function createTinkoffRequest(options) {
|
|
|
113
113
|
return next();
|
|
114
114
|
},
|
|
115
115
|
});
|
|
116
|
+
if (retryOptions) {
|
|
117
|
+
plugins.push(retry__default["default"](retryOptions));
|
|
118
|
+
}
|
|
116
119
|
if (validator || errorValidator) {
|
|
117
120
|
plugins.push(validate__default["default"]({
|
|
118
121
|
validator,
|
|
@@ -120,9 +123,6 @@ function createTinkoffRequest(options) {
|
|
|
120
123
|
allowFallback: true,
|
|
121
124
|
}));
|
|
122
125
|
}
|
|
123
|
-
if (retryOptions) {
|
|
124
|
-
plugins.push(retry__default["default"](retryOptions));
|
|
125
|
-
}
|
|
126
126
|
// Executes only on server
|
|
127
127
|
if (etagCacheOptions?.enabled) {
|
|
128
128
|
plugins.push(etagCache__default["default"]({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tinkoff-request-http-client-adapter",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.96",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@tinkoff/request-core": "^0.10.0",
|
|
24
|
-
"@tinkoff/request-plugin-cache-deduplicate": "^0.10.
|
|
25
|
-
"@tinkoff/request-plugin-cache-etag": "^0.4.
|
|
26
|
-
"@tinkoff/request-plugin-cache-memory": "^0.10.
|
|
24
|
+
"@tinkoff/request-plugin-cache-deduplicate": "^0.10.3",
|
|
25
|
+
"@tinkoff/request-plugin-cache-etag": "^0.4.3",
|
|
26
|
+
"@tinkoff/request-plugin-cache-memory": "^0.10.2",
|
|
27
27
|
"@tinkoff/request-plugin-circuit-breaker": "^0.4.0",
|
|
28
28
|
"@tinkoff/request-plugin-log": "^0.10.0",
|
|
29
29
|
"@tinkoff/request-plugin-protocol-http": "^0.12.1",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@tinkoff/request-plugin-validate": "^0.10.0",
|
|
33
33
|
"@tinkoff/utils": "^2.1.2",
|
|
34
34
|
"@tramvai/http-client": "0.5.2",
|
|
35
|
-
"@tramvai/tokens-common": "5.
|
|
35
|
+
"@tramvai/tokens-common": "5.40.0",
|
|
36
36
|
"tslib": "^2.4.0"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|