@lgsm/modules 1.5.1 → 1.5.2

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.
Files changed (2) hide show
  1. package/dist/main.js +1 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -7066,7 +7066,7 @@ function Uu(e, t) {
7066
7066
  }), Me.interceptors.request.use(
7067
7067
  (n) => {
7068
7068
  const r = t == null ? void 0 : t();
7069
- return n.headers.Authorization = r ? `Bearer ${r}` : void 0, n.withCredentials = !0, n;
7069
+ return n.headers = n.headers || {}, r ? n.headers.Authorization = `Bearer ${r}` : delete n.headers.Authorization, n.withCredentials = !0, n;
7070
7070
  },
7071
7071
  (n) => Promise.reject(n)
7072
7072
  ), Me.interceptors.response.use(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lgsm/modules",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "vite build",