Skip to content

Commit

Permalink
Adopt to changing internal axios types
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 committed Feb 23, 2023
1 parent b7afd8a commit cbb9f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios, { AxiosRequestConfig } from 'axios'
import axios, { AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios'
import axiosRetry from 'axios-retry'
import { ConcurrencyManager } from 'axios-concurrency'
import http from 'http'
Expand Down Expand Up @@ -29,7 +29,7 @@ export const createAxios = (logger: Logger<unknown>, options: ArgumentOptions, c
retryDelay: axiosRetry.exponentialDelay
})

const axiosRequestLogger = (req: AxiosRequestConfig) => {
const axiosRequestLogger = (req: InternalAxiosRequestConfig) => {
logger.debug(`${req.method?.toUpperCase()} ${req.url}`)
logger.debug('request', {
method: req.method?.toUpperCase(),
Expand Down

0 comments on commit cbb9f3b

Please sign in to comment.