react-ecosistema-unp 1.3.0-pre-release.6 → 1.3.0-pre-release.8

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.
@@ -21,19 +21,16 @@ const D = ({ server: o }) => {
21
21
  )).ok) {
22
22
  const i = sessionStorage.getItem("user_token");
23
23
  if (i) {
24
- const u = y(i).datos_basicos.rutas, r = c.pathname, d = u.map(
25
- (a) => a.startsWith("/") ? a : `/${a}`
26
- ), f = r.startsWith("/") ? r : `/${r}`;
27
- if (d.includes(f))
28
- s(!0);
29
- else
30
- return s(!1), t("/");
24
+ const u = y(i).datos_basicos.rutas, a = c.pathname, d = u.map(
25
+ (r) => r.startsWith("/") ? r : `/${r}`
26
+ ), f = a.startsWith("/") ? a : `/${a}`;
27
+ d.includes(f) ? s(!0) : (s(!1), t("/"));
31
28
  } else
32
- return s(!1), t("/");
29
+ s(!1), t("/");
33
30
  } else
34
- return t("/");
31
+ t("/");
35
32
  } catch (n) {
36
- return console.error("Validation error:", n), t("/");
33
+ console.error("Validation error:", n), t("/");
37
34
  } finally {
38
35
  }
39
36
  })();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-ecosistema-unp",
3
3
  "author": "Ecosistema de Información - Unidad Nacional de Protección",
4
4
  "private": false,
5
- "version": "1.3.0-pre-release.6",
5
+ "version": "1.3.0-pre-release.8",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {