@sebspark/openapi-client 2.1.10 → 2.2.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.
package/dist/index.js CHANGED
@@ -201,7 +201,8 @@ var callServer = async (axiosInstance, args) => {
201
201
  paramsSerializer: serializer,
202
202
  data: body,
203
203
  httpsAgent: args.httpsAgent,
204
- httpAgent: args.httpAgent
204
+ httpAgent: args.httpAgent,
205
+ timeout: args.timeout
205
206
  }),
206
207
  args.retry
207
208
  );
@@ -226,7 +227,8 @@ var mergeArgs = (baseUrl, url, method, requestArgs, extras, global) => {
226
227
  retry: retry2,
227
228
  arrayFormat: global?.arrayFormat,
228
229
  httpsAgent: extras?.httpsAgent,
229
- httpAgent: extras?.httpAgent
230
+ httpAgent: extras?.httpAgent,
231
+ timeout: extras?.timeout ?? global?.timeout
230
232
  };
231
233
  return merged;
232
234
  };
package/dist/index.mjs CHANGED
@@ -166,7 +166,8 @@ var callServer = async (axiosInstance, args) => {
166
166
  paramsSerializer: serializer,
167
167
  data: body,
168
168
  httpsAgent: args.httpsAgent,
169
- httpAgent: args.httpAgent
169
+ httpAgent: args.httpAgent,
170
+ timeout: args.timeout
170
171
  }),
171
172
  args.retry
172
173
  );
@@ -191,7 +192,8 @@ var mergeArgs = (baseUrl, url, method, requestArgs, extras, global) => {
191
192
  retry: retry2,
192
193
  arrayFormat: global?.arrayFormat,
193
194
  httpsAgent: extras?.httpsAgent,
194
- httpAgent: extras?.httpAgent
195
+ httpAgent: extras?.httpAgent,
196
+ timeout: extras?.timeout ?? global?.timeout
195
197
  };
196
198
  return merged;
197
199
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/openapi-client",
3
- "version": "2.1.10",
3
+ "version": "2.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",