@tramvai/tinkoff-request-http-client-adapter 0.8.258 → 0.8.259
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.
- package/lib/index.browser.js +1 -10
- package/lib/index.es.js +1 -10
- package/lib/index.js +1 -10
- package/package.json +2 -2
package/lib/index.browser.js
CHANGED
|
@@ -186,17 +186,8 @@ class HttpClientAdapter extends BaseHttpClient {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
function createAdapter(options) {
|
|
189
|
-
const { logger, name, disableCache, createCache, cacheTime, defaultTimeout, validator, errorValidator, errorModificator, agent, modifyRequest = (req) => req, modifyResponse = (res) => res, modifyError = (err) => err, ...httpClientOptions } = options;
|
|
190
189
|
const tinkoffRequest = createTinkoffRequest(options);
|
|
191
|
-
const httpClientAdapter = new HttpClientAdapter({
|
|
192
|
-
options: {
|
|
193
|
-
modifyRequest,
|
|
194
|
-
modifyResponse,
|
|
195
|
-
modifyError,
|
|
196
|
-
...httpClientOptions,
|
|
197
|
-
},
|
|
198
|
-
tinkoffRequest,
|
|
199
|
-
});
|
|
190
|
+
const httpClientAdapter = new HttpClientAdapter({ options, tinkoffRequest });
|
|
200
191
|
return httpClientAdapter;
|
|
201
192
|
}
|
|
202
193
|
|
package/lib/index.es.js
CHANGED
|
@@ -196,17 +196,8 @@ class HttpClientAdapter extends BaseHttpClient {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
function createAdapter(options) {
|
|
199
|
-
const { logger, name, disableCache, createCache, cacheTime, defaultTimeout, validator, errorValidator, errorModificator, agent, modifyRequest = (req) => req, modifyResponse = (res) => res, modifyError = (err) => err, ...httpClientOptions } = options;
|
|
200
199
|
const tinkoffRequest = createTinkoffRequest(options);
|
|
201
|
-
const httpClientAdapter = new HttpClientAdapter({
|
|
202
|
-
options: {
|
|
203
|
-
modifyRequest,
|
|
204
|
-
modifyResponse,
|
|
205
|
-
modifyError,
|
|
206
|
-
...httpClientOptions,
|
|
207
|
-
},
|
|
208
|
-
tinkoffRequest,
|
|
209
|
-
});
|
|
200
|
+
const httpClientAdapter = new HttpClientAdapter({ options, tinkoffRequest });
|
|
210
201
|
return httpClientAdapter;
|
|
211
202
|
}
|
|
212
203
|
|
package/lib/index.js
CHANGED
|
@@ -215,17 +215,8 @@ class HttpClientAdapter extends httpClient.BaseHttpClient {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
function createAdapter(options) {
|
|
218
|
-
const { logger, name, disableCache, createCache, cacheTime, defaultTimeout, validator, errorValidator, errorModificator, agent, modifyRequest = (req) => req, modifyResponse = (res) => res, modifyError = (err) => err, ...httpClientOptions } = options;
|
|
219
218
|
const tinkoffRequest = createTinkoffRequest(options);
|
|
220
|
-
const httpClientAdapter = new HttpClientAdapter({
|
|
221
|
-
options: {
|
|
222
|
-
modifyRequest,
|
|
223
|
-
modifyResponse,
|
|
224
|
-
modifyError,
|
|
225
|
-
...httpClientOptions,
|
|
226
|
-
},
|
|
227
|
-
tinkoffRequest,
|
|
228
|
-
});
|
|
219
|
+
const httpClientAdapter = new HttpClientAdapter({ options, tinkoffRequest });
|
|
229
220
|
return httpClientAdapter;
|
|
230
221
|
}
|
|
231
222
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tinkoff-request-http-client-adapter",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.259",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@tinkoff/request-plugin-validate": "^0.8.8",
|
|
32
32
|
"@tinkoff/utils": "^2.1.2",
|
|
33
33
|
"@tramvai/http-client": "0.1.25",
|
|
34
|
-
"@tramvai/tokens-common": "1.
|
|
34
|
+
"@tramvai/tokens-common": "1.65.0",
|
|
35
35
|
"tslib": "^2.0.3"
|
|
36
36
|
},
|
|
37
37
|
"sideEffects": false,
|