@dashadmin/dash-axios-hook 1.3.45 → 1.3.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/useAxios.js +2 -0
- package/package.json +1 -1
- package/src/hooks/useAxios.tsx +2 -0
package/dist/hooks/useAxios.js
CHANGED
|
@@ -186,6 +186,8 @@ const useAxios = (options) => {
|
|
|
186
186
|
return a;
|
|
187
187
|
};
|
|
188
188
|
const createAxiosInstance = (options) => {
|
|
189
|
+
console.log("Creating Axios instance with options:", options);
|
|
190
|
+
console.log("Base URL:", DASHAdminSystemConstants.system.ADMIN_API_URL);
|
|
189
191
|
return initAxios(__spreadValues({
|
|
190
192
|
baseURL: DASHAdminSystemConstants.system.ADMIN_API_URL
|
|
191
193
|
}, options && __spreadValues({}, options)));
|
package/package.json
CHANGED
package/src/hooks/useAxios.tsx
CHANGED
|
@@ -223,6 +223,8 @@ const useAxios = (options?: Partial<AxiosRequestConfig<any>>) => {
|
|
|
223
223
|
|
|
224
224
|
// Non-hook version (for use in classes and regular functions)
|
|
225
225
|
export const createAxiosInstance = (options?: Partial<AxiosRequestConfig<any>>) => {
|
|
226
|
+
console.log('Creating Axios instance with options:', options);
|
|
227
|
+
console.log('Base URL:', DASHAdminSystemConstants.system.ADMIN_API_URL);
|
|
226
228
|
return initAxios({
|
|
227
229
|
baseURL: DASHAdminSystemConstants.system.ADMIN_API_URL,
|
|
228
230
|
...(options) && {...options}
|