diff --git a/src/interceptor.ts b/src/interceptor.ts index c3eac619..1c57256e 100644 --- a/src/interceptor.ts +++ b/src/interceptor.ts @@ -70,8 +70,8 @@ export type InternalAxiosHeaders = Record< Record >; -const removeUndefined = (obj: Record) => { - const newObj: Record = {}; +const removeUndefined = (obj: Record) => { + const newObj: Record = {}; for (const [key, value] of Object.entries(obj)) { if (value !== undefined) { @@ -94,6 +94,8 @@ const removeUndefined = (obj: Record) => { * @param options The options to be used when signing a request * @param credentials Credentials to be used to sign the request */ +// this would be a breaking change to the API +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const aws4Interceptor = ({ instance = axios, credentials,