@abdellatifui/react 3.2.179 → 3.2.181

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/nextgen.js +4 -6
  2. package/package.json +1 -1
package/dist/nextgen.js CHANGED
@@ -23067,15 +23067,12 @@ const nf = cn({ name: "", onChange: () => {
23067
23067
  console.log("Force remount useApi"), k((P) => P + 1);
23068
23068
  }, E = ce(() => vp(g || n, {
23069
23069
  retries: 5,
23070
- extraHeaders: {
23071
- Authorization: t
23072
- },
23073
23070
  ...s,
23074
23071
  query: {
23075
23072
  csid: Tc,
23076
23073
  buid: localStorage.getItem("buid") || ""
23077
23074
  }
23078
- }), [g, n]);
23075
+ }), [g, t, n]);
23079
23076
  q(() => {
23080
23077
  if (!E) return;
23081
23078
  const P = () => {
@@ -23110,9 +23107,9 @@ const nf = cn({ name: "", onChange: () => {
23110
23107
  window.open(A, "_self");
23111
23108
  };
23112
23109
  return E.on("/stream/notify", P), E.on("/stream/redirect", v), x?.updateExternalApi("apiNotificationMountRunning", !0), console.log("2-Mounting Notification Listener ...", N()), () => {
23113
- E.disconnect(), console.log("Unmounting Notification Listener ..."), E.off("/stream/notify", P), E.off("/stream/redirect", v), x?.updateExternalApi("apiNotificationMountRunning", !1);
23110
+ console.log("Unmounting Notification Listener ..."), E.off("/stream/notify", P), E.off("/stream/redirect", v), E.close(), x?.updateExternalApi("apiNotificationMountRunning", !1);
23114
23111
  };
23115
- }, [d, S, C]);
23112
+ }, [d, t, S, C]);
23116
23113
  const _ = se((P) => async (...v) => {
23117
23114
  const R = v.find(
23118
23115
  (A) => A && typeof A == "object" && (Object.prototype.hasOwnProperty.call(A, "onRequest") || Object.prototype.hasOwnProperty.call(A, "onResponse"))
@@ -23128,6 +23125,7 @@ const nf = cn({ name: "", onChange: () => {
23128
23125
  return l && l(D), u && u(D), D;
23129
23126
  }
23130
23127
  }, [m, t, a, u, h, l]), F = ce(() => {
23128
+ console.log("Creating new axios instance ...");
23131
23129
  const P = yp.create({
23132
23130
  ...o,
23133
23131
  baseURL: n,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.2.179",
4
+ "version": "3.2.181",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [