x-essential-lib 0.5.34 → 0.5.36

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/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -223,7 +223,7 @@ function Ae(e) {
223
223
  const a = "single-spa-application:" + e, t = (l = document.getElementById(a)) == null ? void 0 : l.classList;
224
224
  t && (t.remove("app-left", "app-right", "app-reset"), (o = window.routeExtras) != null && o.forward ? t.add("app-right") : t.add("app-left"), setTimeout(() => {
225
225
  t.add("app-reset");
226
- }, 0));
226
+ }, 100));
227
227
  }
228
228
  let te = Date.now();
229
229
  function ce() {
@@ -410,7 +410,7 @@ function D(e, a) {
410
410
  const l = z(e), o = z(a), n = (l == null ? void 0 : l.app) === (o == null ? void 0 : o.app), r = (l == null ? void 0 : l.path) === (o == null ? void 0 : o.path), c = ((l == null ? void 0 : l.level) ?? -1) >= ((o == null ? void 0 : o.level) ?? -1);
411
411
  console.info(
412
412
  `~~~~before route change~~~~ ${a} -> ${e} inner=${n} forward=${c}`
413
- ), n ? r ? oe.value = "" : oe.value = c ? "inner-left" : "inner-right" : (window.routeExtras = { forward: c }, Ae(o.app));
413
+ ), n ? r ? oe.value = "" : oe.value = c ? "inner-left" : "inner-right" : (window.routeExtras = { forward: c }, o && Ae(o.app));
414
414
  }
415
415
  function Ee() {
416
416
  return !!R.get("accessToken");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.5.34",
4
+ "version": "0.5.36",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",