@deepsel/admin 1.4.1 → 1.4.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.
- package/dist/{index-DZq9Oo_a.js → index-B8JjIk5G.js} +26 -13
- package/dist/{index-DZq9Oo_a.js.map → index-B8JjIk5G.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{web-BwY2FMtF.js → web-BpYAKYoH.js} +2 -2
- package/dist/{web-BwY2FMtF.js.map → web-BpYAKYoH.js.map} +1 -1
- package/dist/{web-Chl2J0SI.js → web-DQa9rm7S.js} +2 -2
- package/dist/{web-Chl2J0SI.js.map → web-DQa9rm7S.js.map} +1 -1
- package/package.json +1 -1
|
@@ -18381,12 +18381,12 @@ Xv("CapacitorHttp", {
|
|
|
18381
18381
|
web: () => new wK()
|
|
18382
18382
|
});
|
|
18383
18383
|
const mo = Xv("Preferences", {
|
|
18384
|
-
web: () => import("./web-
|
|
18384
|
+
web: () => import("./web-DQa9rm7S.js").then((e) => new e.PreferencesWeb())
|
|
18385
18385
|
}), AL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18386
18386
|
__proto__: null,
|
|
18387
18387
|
Preferences: mo
|
|
18388
18388
|
}, Symbol.toStringTag, { value: "Module" })), xK = Xv("Device", {
|
|
18389
|
-
web: () => import("./web-
|
|
18389
|
+
web: () => import("./web-BpYAKYoH.js").then((e) => new e.DeviceWeb())
|
|
18390
18390
|
}), Jr = [];
|
|
18391
18391
|
for (let e = 0; e < 256; ++e)
|
|
18392
18392
|
Jr.push((e + 256).toString(16).slice(1));
|
|
@@ -18466,10 +18466,14 @@ function kK(e) {
|
|
|
18466
18466
|
credentials: "include",
|
|
18467
18467
|
body: `username=${N}&password=${M}&otp=${k}`
|
|
18468
18468
|
});
|
|
18469
|
-
if (R.
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18469
|
+
if (!R.ok) {
|
|
18470
|
+
let P = "Login failed";
|
|
18471
|
+
try {
|
|
18472
|
+
const $ = await R.json();
|
|
18473
|
+
P = typeof $.detail == "string" ? $.detail : JSON.stringify($.detail);
|
|
18474
|
+
} catch {
|
|
18475
|
+
}
|
|
18476
|
+
throw c(P), new Error(P);
|
|
18473
18477
|
}
|
|
18474
18478
|
const F = await R.json(), { is_require_user_config_2fa: z, user: O } = F || {};
|
|
18475
18479
|
if (O != null && O.organization_id && O.organization_id !== o && i && i(O.organization_id), z)
|
|
@@ -18494,10 +18498,14 @@ function kK(e) {
|
|
|
18494
18498
|
organization_id: (n == null ? void 0 : n.organization_id) || o
|
|
18495
18499
|
})
|
|
18496
18500
|
});
|
|
18497
|
-
if (N.
|
|
18498
|
-
|
|
18499
|
-
|
|
18500
|
-
|
|
18501
|
+
if (!N.ok) {
|
|
18502
|
+
let M = "Signup failed";
|
|
18503
|
+
try {
|
|
18504
|
+
const R = await N.json();
|
|
18505
|
+
M = typeof R.detail == "string" ? R.detail : JSON.stringify(R.detail);
|
|
18506
|
+
} catch {
|
|
18507
|
+
}
|
|
18508
|
+
throw c(M), new Error(M);
|
|
18501
18509
|
}
|
|
18502
18510
|
return _ ? S({ username: C, password: k }) : N.json();
|
|
18503
18511
|
} finally {
|
|
@@ -18520,8 +18528,13 @@ function kK(e) {
|
|
|
18520
18528
|
const _ = await fetch(`${t}/passwordless-login?token=${E}`, {
|
|
18521
18529
|
credentials: "include"
|
|
18522
18530
|
});
|
|
18523
|
-
if (_.
|
|
18524
|
-
|
|
18531
|
+
if (!_.ok) {
|
|
18532
|
+
let N = "Login failed";
|
|
18533
|
+
try {
|
|
18534
|
+
const M = await _.json();
|
|
18535
|
+
N = typeof M.detail == "string" ? M.detail : JSON.stringify(M.detail);
|
|
18536
|
+
} catch {
|
|
18537
|
+
}
|
|
18525
18538
|
throw c(N), new Error(N);
|
|
18526
18539
|
}
|
|
18527
18540
|
const C = await _.json(), { user: k } = C || {};
|
|
@@ -115376,4 +115389,4 @@ export {
|
|
|
115376
115389
|
GOe as A,
|
|
115377
115390
|
PL as W
|
|
115378
115391
|
};
|
|
115379
|
-
//# sourceMappingURL=index-
|
|
115392
|
+
//# sourceMappingURL=index-B8JjIk5G.js.map
|