Skip to content

Commit

Permalink
fix(axios): create different instances instead of using the default
Browse files Browse the repository at this point in the history
telco2011 committed Mar 29, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a93cc03 commit dba2d74
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yggdrasilts/axiosfit",
"version": "0.9.0",
"version": "0.9.1",
"author": "YggdrasilTS Team 🌳",
"contributors": [
"David Lopez <davidlopez.david@gmail.com>"
2 changes: 1 addition & 1 deletion src/decorators/utilities.ts
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ export const createServiceMap = function (constructor) {
const serviceName = constructor.serviceName || constructor.name;
if (!serviceMap[serviceName]) {
serviceMap[serviceName] = new (class extends constructor implements IAxiosfit {
private axiosInstance: AxiosInstance = Axios;
private axiosInstance: AxiosInstance = Axios.create();
private axiosRequestConfig: AxiosRequestConfig = {};

/**

0 comments on commit dba2d74

Please sign in to comment.