From f3e8f4186e46f84d02a5e772ce7a1d05f7c6ac1e Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 24 Dec 2021 00:13:08 +0200 Subject: [PATCH] renamed createAxiosRetry() to createAxiosInstance() --- lib/http.module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http.module.ts b/lib/http.module.ts index e2d6ad1..d847236 100644 --- a/lib/http.module.ts +++ b/lib/http.module.ts @@ -15,7 +15,7 @@ import { import axiosRetry from 'axios-retry'; import axiosBetterStacktrace from 'axios-better-stacktrace'; -const createAxiosRetry = (config?: HttpModuleOptions) => { +const createAxiosInstance = (config?: HttpModuleOptions) => { const axiosInstance = Axios.create(config); axiosRetry(axiosInstance, config); axiosBetterStacktrace(axiosInstance); @@ -27,7 +27,7 @@ const createAxiosRetry = (config?: HttpModuleOptions) => { HttpService, { provide: AXIOS_INSTANCE_TOKEN, - useValue: createAxiosRetry(), + useValue: createAxiosInstance(), }, ], exports: [HttpService],