diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 919c1b0..ddf72c4 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,12 @@ # @zolplay/react +## 0.2.5 + +### Patch Changes + +- Updated dependencies + - @zolplay/utils@1.3.4 + ## 0.2.4 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index f4f763b..888b873 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@zolplay/react", - "version": "0.2.4", + "version": "0.2.5", "main": "dist/index.js", "types": "dist/index.d.ts", "module": "dist/index.mjs", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index c54990b..5a7c158 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @zolplay/utils +## 1.3.4 + +### Patch Changes + +- Fix(utils/api): axios instance + ## 1.3.3 ### Patch Changes diff --git a/packages/utils/package.json b/packages/utils/package.json index c798cb3..be61e5a 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@zolplay/utils", - "version": "1.3.3", + "version": "1.3.4", "main": "dist/index.js", "types": "dist/index.d.ts", "module": "dist/index.mjs", diff --git a/packages/utils/src/api.ts b/packages/utils/src/api.ts index 3da8afd..0414831 100644 --- a/packages/utils/src/api.ts +++ b/packages/utils/src/api.ts @@ -1,7 +1,7 @@ import type { AxiosRequestConfig } from 'axios' -import { Axios } from 'axios' +import axios from 'axios' -export const API = new Axios({ +export const API = axios.create({ baseURL: '/api', headers: { 'X-Requested-With': 'XMLHttpRequest',