warqadui 0.0.43 → 0.0.44

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/index.js CHANGED
@@ -1970,10 +1970,9 @@ var useApi = () => {
1970
1970
  const { api: configApi } = useWarqadConfig();
1971
1971
  const api = (0, import_react12.useMemo)(() => {
1972
1972
  const baseURL = configApi || "/api";
1973
- const isExternal = baseURL.startsWith("http");
1974
1973
  return import_axios.default.create({
1975
1974
  baseURL,
1976
- withCredentials: !isExternal
1975
+ withCredentials: true
1977
1976
  });
1978
1977
  }, [configApi]);
1979
1978
  const [data, setData] = (0, import_react12.useState)();
package/dist/index.mjs CHANGED
@@ -1911,10 +1911,9 @@ var useApi = () => {
1911
1911
  const { api: configApi } = useWarqadConfig();
1912
1912
  const api = useMemo2(() => {
1913
1913
  const baseURL = configApi || "/api";
1914
- const isExternal = baseURL.startsWith("http");
1915
1914
  return axios.create({
1916
1915
  baseURL,
1917
- withCredentials: !isExternal
1916
+ withCredentials: true
1918
1917
  });
1919
1918
  }, [configApi]);
1920
1919
  const [data, setData] = useState11();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warqadui",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",