bt-core-app 1.4.395 → 1.4.397

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.
@@ -9511,7 +9511,7 @@ function Yx(e) {
9511
9511
  let v;
9512
9512
  if (m.finalUrl != null) {
9513
9513
  const g = new URL(m.finalUrl, "https://demo");
9514
- v = l.find((u) => u.path == g.pathname || u.path == g.pathname + g.search);
9514
+ console.log(`searching for path ${g.pathname} or ${g.pathname + g.search}`), v = l.find((u) => u.path == g.pathname || u.path == g.pathname + g.search);
9515
9515
  }
9516
9516
  return v == null && (v = l.find((g) => Array.isArray(g.nav) ? g.nav.some((u) => u == m.nav) : g.nav == m.nav)), v == null && console.log(`No api group found for ${m.nav} and path: ${m.additionalUrl}`), v;
9517
9517
  }
@@ -9531,14 +9531,14 @@ function Yx(e) {
9531
9531
  });
9532
9532
  }
9533
9533
  function c(m) {
9534
- var k, w, C;
9534
+ var k, w;
9535
9535
  if (l == null)
9536
9536
  throw new Error("no demo data available for this api");
9537
9537
  const v = m.id ?? ((k = m.data) == null ? void 0 : k.id), g = o(m);
9538
9538
  let u;
9539
- return g != null && (g.data ?? (g.data = []), g.getAction != null ? u = g.getAction(g.data, v) : v != null ? u = (w = g.data) == null ? void 0 : w.find((S) => S.id == v) : g.path != null && ((C = g.data) == null ? void 0 : C.length) == 1 && (u = g.data[0])), u == null ? Promise.resolve(void 0) : new Promise((S) => {
9539
+ return g != null && (g.data ?? (g.data = []), g.getAction != null ? u = g.getAction(g.data, v) : v != null ? u = (w = g.data) == null ? void 0 : w.find((C) => C.id == v) : g.path != null && (u = g.data)), u == null ? Promise.resolve(void 0) : new Promise((C) => {
9540
9540
  setTimeout(() => {
9541
- S({
9541
+ C({
9542
9542
  data: u
9543
9543
  });
9544
9544
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.395",
3
+ "version": "1.4.397",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {