ingeniuscliq-core 0.2.1 → 0.2.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/index.js +6 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -25463,7 +25463,11 @@ function nb() {
25463
25463
  setError: l,
25464
25464
  setLoading: m,
25465
25465
  reset: v
25466
- } = e2(), g = Fe(async (C) => {
25466
+ } = e2();
25467
+ xn(() => {
25468
+ (e.current || !n) && (e.current = !1, p());
25469
+ }, [n, a]);
25470
+ const g = Fe(async (C) => {
25467
25471
  try {
25468
25472
  m(!0), l(null);
25469
25473
  const N = await C(), { user: _, token: k, refreshToken: R } = N.data;
@@ -25473,11 +25477,7 @@ function nb() {
25473
25477
  } finally {
25474
25478
  m(!1);
25475
25479
  }
25476
- }, []), p = Fe(async () => g(() => eo.getUser()), [g]);
25477
- xn(() => {
25478
- e.current && !n && (e.current = !1, p());
25479
- }, [p]);
25480
- const y = Fe(async (C) => g(() => eo.login(C)), [g]), b = Fe(async (C) => g(() => eo.register(C)), [g]), w = Fe(async () => {
25480
+ }, []), p = Fe(async () => g(() => eo.getUser()), [g]), y = Fe(async (C) => g(() => eo.login(C)), [g]), b = Fe(async (C) => g(() => eo.register(C)), [g]), w = Fe(async () => {
25481
25481
  try {
25482
25482
  m(!0), await eo.logout();
25483
25483
  } catch (C) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",