@lgsm/modules 1.5.3 → 1.5.4
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/main.js +5 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -7074,9 +7074,11 @@ function zu(e, t, n) {
|
|
|
7074
7074
|
(r) => {
|
|
7075
7075
|
var s, a, i, d, c, u;
|
|
7076
7076
|
const o = r.response.status;
|
|
7077
|
-
if (o == 401
|
|
7078
|
-
|
|
7079
|
-
|
|
7077
|
+
if (o == 401)
|
|
7078
|
+
ir("Unauthorized", "Your session has expired. Please log in again."), setTimeout(() => {
|
|
7079
|
+
ou(n);
|
|
7080
|
+
}, 1500);
|
|
7081
|
+
else if (o > 299) {
|
|
7080
7082
|
const l = ((s = r.config) == null ? void 0 : s.url) || "", b = l.substring(l.lastIndexOf("/"));
|
|
7081
7083
|
ir(
|
|
7082
7084
|
`Error ${(a = r.response) == null ? void 0 : a.status} for ${b}`,
|