Skip to content

Commit

Permalink
Merge pull request #15 from b3hniya/dev
Browse files Browse the repository at this point in the history
Fix: fix config.
  • Loading branch information
b3hniya authored Nov 30, 2023
2 parents 72d264a + af3e848 commit 2000dd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/helper/generateAxiosInstance.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const generateAxiosBaseConfig = (config: EasyCallInstanceConfig): CreateAxiosDef
headers: config.headers,
timeout: config.timeout,
responseType: config.responseType,
validateStatus: !config.validateStatus ? defaultValidateStatus : config.validateStatus,
validateStatus: config.validateStatus ?? defaultValidateStatus,
}

export const generateAxiosInstance = (config: EasyCallInstanceConfig): AxiosInstance => {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easycall",
"version": "0.0.52",
"version": "0.0.53",
"description": "easyapi, is a framework to call api and store results painlessly.",
"keywords": [
"easycall",
Expand Down Expand Up @@ -41,6 +41,7 @@
"typescript": "^5.1.6"
},
"volta": {
"yarn": "1.22.17",
"node": "18.17.1"
}
}

0 comments on commit 2000dd4

Please sign in to comment.