@sebspark/openapi-core 1.2.0 → 1.3.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.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AxiosError } from 'axios';
2
+ import { OutgoingHttpHeaders } from 'http';
2
3
  import { RetrySettings } from '@sebspark/retry';
3
4
  import { Request, Response, NextFunction } from 'express';
4
5
 
@@ -181,7 +182,8 @@ type PayloadRequestArgs = RequestArgs & {
181
182
  body?: Record<string, string>;
182
183
  };
183
184
  type RequestOptions = {
184
- retry: RetrySettings;
185
+ retry?: RetrySettings;
186
+ headers?: OutgoingHttpHeaders & Record<string, string>;
185
187
  };
186
188
  type ClientOptions = RequestOptions & {};
187
189
  type BaseClient = {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AxiosError } from 'axios';
2
+ import { OutgoingHttpHeaders } from 'http';
2
3
  import { RetrySettings } from '@sebspark/retry';
3
4
  import { Request, Response, NextFunction } from 'express';
4
5
 
@@ -181,7 +182,8 @@ type PayloadRequestArgs = RequestArgs & {
181
182
  body?: Record<string, string>;
182
183
  };
183
184
  type RequestOptions = {
184
- retry: RetrySettings;
185
+ retry?: RetrySettings;
186
+ headers?: OutgoingHttpHeaders & Record<string, string>;
185
187
  };
186
188
  type ClientOptions = RequestOptions & {};
187
189
  type BaseClient = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/openapi-core",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",