@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.
Files changed (2) hide show
  1. package/dist/main.js +5 -3
  2. 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 && (ir("Unauthorized", "Your session has expired. Please log in again."), setTimeout(() => {
7078
- ou(n);
7079
- }, 1500)), o > 299) {
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}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lgsm/modules",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "vite build",