Skip to content

Commit

Permalink
build(deps): bump axios-retry from 3.9.1 to 4.0.0
Browse files Browse the repository at this point in the history
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](softonic/axios-retry@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] <[email protected]>
  • Loading branch information
dependabot[bot] authored and ttshivers committed Nov 27, 2023
1 parent 9770cef commit 177d1ee
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 27 deletions.
1 change: 0 additions & 1 deletion lib/http.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? [],
};
}
Expand Down
14 changes: 10 additions & 4 deletions lib/interfaces/http-module.interface.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -15,6 +21,6 @@ export interface HttpModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'>
// 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 changes: 7 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 177d1ee

Please sign in to comment.