@gravity-ui/gateway 3.0.2 → 3.0.4-alpha.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.
@@ -197,8 +197,8 @@ function createRestAction(endpoints, config, serviceKey, actionName, options, Er
197
197
  const startRequestTime = Date.now();
198
198
  let axiosClient = defaultAxiosClient;
199
199
  const customActionTimeout = (_e = (_d = (_c = actionConfig.timeout) !== null && _c !== void 0 ? _c : config.timeout) !== null && _d !== void 0 ? _d : endpointAxiosConfig.timeout) !== null && _e !== void 0 ? _e : timeout;
200
- if (actionConfig.timeout || Object.keys(endpointAxiosConfig).length > 0) {
201
- const customActionAxiosConfig = Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.axiosConfig) || {})), endpointAxiosConfig);
200
+ if (actionConfig.timeout || endpointAxiosConfig) {
201
+ const customActionAxiosConfig = Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.axiosConfig) || {})), (endpointAxiosConfig || {}));
202
202
  axiosClient = (0, axios_1.getAxiosClient)(customActionTimeout, config === null || config === void 0 ? void 0 : config.retries, customActionAxiosConfig);
203
203
  }
204
204
  headers['x-request-timeout'] = customActionTimeout !== null && customActionTimeout !== void 0 ? customActionTimeout : constants_1.DEFAULT_TIMEOUT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/gateway",
3
- "version": "3.0.2",
3
+ "version": "3.0.4-alpha.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "build/index.js",