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] <support@github.com>
This commit is contained in:
dependabot[bot] 2023-11-27 03:56:15 +00:00 committed by Conicaw
parent 9770cef3e7
commit 13a039edd5
No known key found for this signature in database
GPG key ID: 8DE10AC00159C418
4 changed files with 18 additions and 28 deletions

View file

@ -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 ?? [],
};
}

View file

@ -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> | HttpModuleOptions;
@ -14,7 +20,6 @@ export interface HttpModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'>
useClass?: Type<HttpModuleOptionsFactory>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
useFactory?: (...args: any[]) => Promise<HttpModuleOptions> | HttpModuleOptions;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
inject?: any[];
inject?: (InjectionToken | OptionalFactoryDependency)[];
extraProviders?: Provider[];
}

28
package-lock.json generated
View file

@ -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",

View file

@ -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",