ingeniuscliq-core 0.2.0 → 0.2.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.
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25463,11 +25463,7 @@ function nb() {
|
|
|
25463
25463
|
setError: l,
|
|
25464
25464
|
setLoading: m,
|
|
25465
25465
|
reset: v
|
|
25466
|
-
} = e2()
|
|
25467
|
-
xn(() => {
|
|
25468
|
-
(e.current || !n) && (e.current = !1, p());
|
|
25469
|
-
}, [n, a]);
|
|
25470
|
-
const g = Fe(async (C) => {
|
|
25466
|
+
} = e2(), g = Fe(async (C) => {
|
|
25471
25467
|
try {
|
|
25472
25468
|
m(!0), l(null);
|
|
25473
25469
|
const N = await C(), { user: _, token: k, refreshToken: R } = N.data;
|
|
@@ -25477,7 +25473,11 @@ function nb() {
|
|
|
25477
25473
|
} finally {
|
|
25478
25474
|
m(!1);
|
|
25479
25475
|
}
|
|
25480
|
-
}, []), p = Fe(async () => g(() => eo.getUser()), [g])
|
|
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 () => {
|
|
25481
25481
|
try {
|
|
25482
25482
|
m(!0), await eo.logout();
|
|
25483
25483
|
} catch (C) {
|