Skip to content

Commit

Permalink
Merge branch 'main' into renovate/actions-checkout-4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbourne authored Mar 12, 2024
2 parents bfc6084 + 7d4cbac commit 38987ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 20.11.0
nodejs 20.11.1
6 changes: 4 additions & 2 deletions src/interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export type InternalAxiosHeaders = Record<
Record<string, string>
>;

const removeUndefined = (obj: Record<string, any>) => {
const newObj: Record<string, any> = {};
const removeUndefined = <T>(obj: Record<string, T>) => {
const newObj: Record<string, T> = {};

for (const [key, value] of Object.entries(obj)) {
if (value !== undefined) {
Expand All @@ -94,6 +94,8 @@ const removeUndefined = (obj: Record<string, any>) => {
* @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 = <D = any>({
instance = axios,
credentials,
Expand Down

0 comments on commit 38987ee

Please sign in to comment.