Merge pull request #196 from furality/dependabot/npm_and_yarn/axios-retry-4.0.0
build(deps): bump axios-retry from 3.9.1 to 4.0.0
This commit is contained in:
commit
44ecd49317
4 changed files with 18 additions and 28 deletions
|
@ -87,7 +87,6 @@ export class HttpModule {
|
||||||
return {
|
return {
|
||||||
provide: HTTP_MODULE_OPTIONS,
|
provide: HTTP_MODULE_OPTIONS,
|
||||||
useFactory: options.useFactory,
|
useFactory: options.useFactory,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
||||||
inject: options.inject ?? [],
|
inject: options.inject ?? [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 { AxiosRequestConfig } from 'axios';
|
||||||
import type IAxiosRetry from 'axios-retry';
|
import type { IAxiosRetryConfig } from 'axios-retry';
|
||||||
|
|
||||||
export type HttpModuleOptions = AxiosRequestConfig &
|
export type HttpModuleOptions = AxiosRequestConfig &
|
||||||
IAxiosRetry.IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean };
|
IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean };
|
||||||
|
|
||||||
export interface HttpModuleOptionsFactory {
|
export interface HttpModuleOptionsFactory {
|
||||||
createHttpOptions(): Promise<HttpModuleOptions> | HttpModuleOptions;
|
createHttpOptions(): Promise<HttpModuleOptions> | HttpModuleOptions;
|
||||||
|
@ -14,7 +20,6 @@ export interface HttpModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'>
|
||||||
useClass?: Type<HttpModuleOptionsFactory>;
|
useClass?: Type<HttpModuleOptionsFactory>;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
useFactory?: (...args: any[]) => Promise<HttpModuleOptions> | HttpModuleOptions;
|
useFactory?: (...args: any[]) => Promise<HttpModuleOptions> | HttpModuleOptions;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
inject?: (InjectionToken | OptionalFactoryDependency)[];
|
||||||
inject?: any[];
|
|
||||||
extraProviders?: Provider[];
|
extraProviders?: Provider[];
|
||||||
}
|
}
|
||||||
|
|
28
package-lock.json
generated
28
package-lock.json
generated
|
@ -9,7 +9,7 @@
|
||||||
"version": "0.0.0-semantically-release",
|
"version": "0.0.0-semantically-release",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios-retry": "^3.9.1"
|
"axios-retry": "^4.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nestjs/common": "^10.2.10",
|
"@nestjs/common": "^10.2.10",
|
||||||
|
@ -46,17 +46,6 @@
|
||||||
"node": ">=0.10.0"
|
"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": {
|
"node_modules/@eslint-community/eslint-utils": {
|
||||||
"version": "4.4.0",
|
"version": "4.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
|
||||||
|
@ -858,12 +847,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/axios-retry": {
|
"node_modules/axios-retry": {
|
||||||
"version": "3.9.1",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-4.0.0.tgz",
|
||||||
"integrity": "sha512-8PJDLJv7qTTMMwdnbMvrLYuvB47M81wRtxQmEdV5w4rgbTXTt+vtPkXwajOfOdSyv/wZICJOC+/UhXH4aQ/R+w==",
|
"integrity": "sha512-F6P4HVGITD/v4z9Lw2mIA24IabTajvpDZmKa6zq/gGwn57wN5j1P3uWrAV0+diqnW6kTM2fTqmWNfgYWGmMuiA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.15.4",
|
|
||||||
"is-retry-allowed": "^2.2.0"
|
"is-retry-allowed": "^2.2.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"axios": "0.x || 1.x"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/balanced-match": {
|
"node_modules/balanced-match": {
|
||||||
|
@ -3948,11 +3939,6 @@
|
||||||
"integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==",
|
"integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==",
|
||||||
"dev": true
|
"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": {
|
"node_modules/regexp.prototype.flags": {
|
||||||
"version": "1.5.1",
|
"version": "1.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz",
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
"prepublish:beta": "npm run build"
|
"prepublish:beta": "npm run build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios-retry": "^3.9.1"
|
"axios-retry": "^4.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nestjs/common": "^10.2.10",
|
"@nestjs/common": "^10.2.10",
|
||||||
|
|
Loading…
Reference in a new issue