diff --git a/lib/interfaces/http-module.interface.ts b/lib/interfaces/http-module.interface.ts index 1cf81c0..2d184e7 100644 --- a/lib/interfaces/http-module.interface.ts +++ b/lib/interfaces/http-module.interface.ts @@ -1,9 +1,10 @@ import { ModuleMetadata, Provider, Type } from '@nestjs/common'; import { AxiosRequestConfig } from 'axios'; -import { IAxiosRetryConfig } from 'axios-retry'; +import IAxiosRetry from 'axios-retry'; + export type HttpModuleOptions = AxiosRequestConfig & - IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean }; +IAxiosRetry.IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean }; export interface HttpModuleOptionsFactory { createHttpOptions(): Promise | HttpModuleOptions; diff --git a/package-lock.json b/package-lock.json index 43ad7f2..5bfb537 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-semantically-release", "license": "MIT", "dependencies": { - "axios-retry": "^3.8.1" + "axios-retry": "^3.9.0" }, "devDependencies": { "@nestjs/common": "^10.2.8", @@ -835,9 +835,9 @@ } }, "node_modules/axios-retry": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.8.1.tgz", - "integrity": "sha512-4XseuArB4CEbfLRtMpUods2q8MLBvD4r8ifKgK4SP2FRgzQIPUDpzZ+cjQ/19eu3w2UpKgkJA+myEh2BYDSjqQ==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.9.0.tgz", + "integrity": "sha512-uK9K/GnlExfShu9dB4GuK0j+iGkIR+LRus3ILhE0zSVXY2q6Dxpemr50NPMs5kP7eOKv9Pz4VvUO40ps1F67dA==", "dependencies": { "@babel/runtime": "^7.15.4", "is-retry-allowed": "^2.2.0" diff --git a/package.json b/package.json index 0c5d831..4a2f6d0 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "prepublish:beta": "npm run build" }, "dependencies": { - "axios-retry": "^3.8.1" + "axios-retry": "^3.9.0" }, "devDependencies": { "@nestjs/common": "^10.2.8",