@getsoren/shared-module 2.51.0 → 2.51.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.
Files changed (2) hide show
  1. package/dist/main.js +3 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -556,6 +556,8 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
556
556
  if (!r) throw Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
557
557
  let c = i(({ tokenType: e, accessToken: t }) => {
558
558
  r.defaults.headers.common.Authorization = `${e} ${t}`;
559
+ }, [r.defaults.headers.common]), l = i(() => {
560
+ r.defaults.headers.common.Authorization = null;
559
561
  }, [r.defaults.headers.common]);
560
562
  return o(() => {
561
563
  if (I) return;
@@ -574,9 +576,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
574
576
  window.removeEventListener("storage", e);
575
577
  };
576
578
  }, [s, c]), {
577
- clearAuthenticationToken: () => {
578
- r.defaults.headers.common.Authorization = null;
579
- },
579
+ clearAuthenticationToken: l,
580
580
  setAuthenticationToken: c
581
581
  };
582
582
  }, we = "New message", Te = (e, t) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getsoren/shared-module",
3
- "version": "2.51.0",
3
+ "version": "2.51.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "types": "./dist/main.d.ts",