From 13a039edd5d114997c31e3740aeee4092015c6cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 03:56:15 +0000 Subject: [PATCH] build(deps): bump axios-retry from 3.9.1 to 4.0.0 Bumps [axios-retry](https://github.com/softonic/axios-retry) from 3.9.1 to 4.0.0. - [Changelog](https://github.com/softonic/axios-retry/blob/master/CHANGELOG.md) - [Commits](https://github.com/softonic/axios-retry/compare/v3.9.1...v4.0.0) --- updated-dependencies: - dependency-name: axios-retry dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- lib/http.module.ts | 1 - lib/interfaces/http-module.interface.ts | 15 ++++++++----- package-lock.json | 28 +++++++------------------ package.json | 2 +- 4 files changed, 18 insertions(+), 28 deletions(-) diff --git a/lib/http.module.ts b/lib/http.module.ts index a0f66da..2573776 100644 --- a/lib/http.module.ts +++ b/lib/http.module.ts @@ -87,7 +87,6 @@ export class HttpModule { return { provide: HTTP_MODULE_OPTIONS, useFactory: options.useFactory, - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment inject: options.inject ?? [], }; } diff --git a/lib/interfaces/http-module.interface.ts b/lib/interfaces/http-module.interface.ts index 2d0e122..577309e 100644 --- a/lib/interfaces/http-module.interface.ts +++ b/lib/interfaces/http-module.interface.ts @@ -1,9 +1,15 @@ -import type { ModuleMetadata, Provider, Type } from '@nestjs/common'; +import type { + InjectionToken, + ModuleMetadata, + OptionalFactoryDependency, + Provider, + Type, +} from '@nestjs/common'; import type { AxiosRequestConfig } from 'axios'; -import type IAxiosRetry from 'axios-retry'; +import type { IAxiosRetryConfig } from 'axios-retry'; export type HttpModuleOptions = AxiosRequestConfig & - IAxiosRetry.IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean }; + IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean }; export interface HttpModuleOptionsFactory { createHttpOptions(): Promise | HttpModuleOptions; @@ -14,7 +20,6 @@ export interface HttpModuleAsyncOptions extends Pick useClass?: Type; // eslint-disable-next-line @typescript-eslint/no-explicit-any useFactory?: (...args: any[]) => Promise | HttpModuleOptions; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - inject?: any[]; + inject?: (InjectionToken | OptionalFactoryDependency)[]; extraProviders?: Provider[]; } diff --git a/package-lock.json b/package-lock.json index 0a04149..03e6d98 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.9.1" + "axios-retry": "^4.0.0" }, "devDependencies": { "@nestjs/common": "^10.2.10", @@ -46,17 +46,6 @@ "node": ">=0.10.0" } }, - "node_modules/@babel/runtime": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz", - "integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -858,12 +847,14 @@ } }, "node_modules/axios-retry": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.9.1.tgz", - "integrity": "sha512-8PJDLJv7qTTMMwdnbMvrLYuvB47M81wRtxQmEdV5w4rgbTXTt+vtPkXwajOfOdSyv/wZICJOC+/UhXH4aQ/R+w==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-4.0.0.tgz", + "integrity": "sha512-F6P4HVGITD/v4z9Lw2mIA24IabTajvpDZmKa6zq/gGwn57wN5j1P3uWrAV0+diqnW6kTM2fTqmWNfgYWGmMuiA==", "dependencies": { - "@babel/runtime": "^7.15.4", "is-retry-allowed": "^2.2.0" + }, + "peerDependencies": { + "axios": "0.x || 1.x" } }, "node_modules/balanced-match": { @@ -3948,11 +3939,6 @@ "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", "dev": true }, - "node_modules/regenerator-runtime": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", - "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==" - }, "node_modules/regexp.prototype.flags": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", diff --git a/package.json b/package.json index 63c53a2..d8eef3e 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "prepublish:beta": "npm run build" }, "dependencies": { - "axios-retry": "^3.9.1" + "axios-retry": "^4.0.0" }, "devDependencies": { "@nestjs/common": "^10.2.10",