Merge pull request #7 from benhason1/beta

Beta
This commit is contained in:
benhason1 2021-12-23 20:16:01 +02:00 committed by GitHub
commit 0b007b79c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ import {
} from './interfaces';
import axiosRetry from 'axios-retry';
const createAxiosRetry = (config: HttpModuleOptions) => {
const createAxiosRetry = (config?: HttpModuleOptions) => {
const axiosInstance = Axios.create(config);
axiosRetry(axiosInstance, config);
return axiosInstance;
@ -25,7 +25,7 @@ const createAxiosRetry = (config: HttpModuleOptions) => {
HttpService,
{
provide: AXIOS_INSTANCE_TOKEN,
useValue: Axios,
useValue: createAxiosRetry(),
},
],
exports: [HttpService],

View file

@ -1,6 +1,6 @@
{
"name": "nestjs-http-promise",
"version": "1.1.0",
"version": "1.1.1",
"keywords": [
"nestjs",
"http",