@arex95/vue-core 3.0.0 → 3.0.1

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.
@@ -1,4 +1,4 @@
1
- import { AxiosServiceOptions } from "@/types/AxiosServiceOptions";
1
+ import { AxiosServiceOptions } from "../../types/AxiosServiceOptions";
2
2
  import { AxiosInstance } from "axios";
3
3
  /**
4
4
  * Configures the singleton Axios service instance for the application.
package/dist/index.mjs CHANGED
@@ -1994,9 +1994,8 @@ const configAxios = (config) => {
1994
1994
  timeout: config.timeout,
1995
1995
  withCredentials: config.withCredentials
1996
1996
  });
1997
- // Configure auth fetcher factory to avoid circular dependency
1998
- const { setDefaultAuthFetcherFactory } = require("@/config/auth/authFetcher");
1999
- const { createAxiosFetcher } = require("@/fetchers/axios");
1997
+ // Configure auth fetcher factory lazily to avoid circular dependency
1998
+ // The factory function is only called when getDefaultAuthFetcher() is invoked
2000
1999
  setDefaultAuthFetcherFactory(() => {
2001
2000
  return createAxiosFetcher(axiosServiceInstance.getAxiosInstance());
2002
2001
  });
@@ -2026,9 +2025,8 @@ const getConfiguredAxiosInstance = () => {
2026
2025
  withCredentials: false
2027
2026
  });
2028
2027
  }
2029
- // Configure auth fetcher factory to avoid circular dependency
2030
- const { setDefaultAuthFetcherFactory } = require("@/config/auth/authFetcher");
2031
- const { createAxiosFetcher } = require("@/fetchers/axios");
2028
+ // Configure auth fetcher factory lazily to avoid circular dependency
2029
+ // The factory function is only called when getDefaultAuthFetcher() is invoked
2032
2030
  setDefaultAuthFetcherFactory(() => {
2033
2031
  return createAxiosFetcher(axiosServiceInstance.getAxiosInstance());
2034
2032
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arex95/vue-core",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Opinionated Vue Core",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",