@tramvai/tinkoff-request-http-client-adapter 0.9.339 → 0.9.342

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.
@@ -94,13 +94,13 @@ function createTinkoffRequest(options) {
94
94
  allowFallback: true,
95
95
  }));
96
96
  }
97
+ if (retryOptions) {
98
+ plugins.push(retry(retryOptions));
99
+ }
97
100
  plugins.push(http({
98
101
  agent: agent || defaultAgent,
99
102
  querySerializer: querySerializer || undefined,
100
103
  }));
101
- if (retryOptions) {
102
- plugins.push(retry(retryOptions));
103
- }
104
104
  const makeRequest = request(plugins);
105
105
  return makeRequest;
106
106
  }
@@ -94,13 +94,13 @@ function createTinkoffRequest(options) {
94
94
  allowFallback: true,
95
95
  }));
96
96
  }
97
+ if (retryOptions) {
98
+ plugins.push(retry(retryOptions));
99
+ }
97
100
  plugins.push(http({
98
101
  agent: agent || defaultAgent,
99
102
  querySerializer: querySerializer || undefined,
100
103
  }));
101
- if (retryOptions) {
102
- plugins.push(retry(retryOptions));
103
- }
104
104
  const makeRequest = request(plugins);
105
105
  return makeRequest;
106
106
  }
@@ -111,13 +111,13 @@ function createTinkoffRequest(options) {
111
111
  allowFallback: true,
112
112
  }));
113
113
  }
114
+ if (retryOptions) {
115
+ plugins.push(retry__default["default"](retryOptions));
116
+ }
114
117
  plugins.push(http__default["default"]({
115
118
  agent: agent || defaultAgent,
116
119
  querySerializer: querySerializer || undefined,
117
120
  }));
118
- if (retryOptions) {
119
- plugins.push(retry__default["default"](retryOptions));
120
- }
121
121
  const makeRequest = request__default["default"](plugins);
122
122
  return makeRequest;
123
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tinkoff-request-http-client-adapter",
3
- "version": "0.9.339",
3
+ "version": "0.9.342",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "browser": {
@@ -31,7 +31,7 @@
31
31
  "@tinkoff/request-plugin-retry": "^0.2.3",
32
32
  "@tinkoff/utils": "^2.1.2",
33
33
  "@tramvai/http-client": "0.2.10",
34
- "@tramvai/tokens-common": "2.117.4",
34
+ "@tramvai/tokens-common": "2.119.0",
35
35
  "tslib": "^2.4.0"
36
36
  },
37
37
  "sideEffects": false,