bt-core-app 1.4.394 → 1.4.396

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
  }
package/dist/index.d.ts CHANGED
@@ -492,10 +492,10 @@ export declare interface DemoApiGroup {
492
492
  nav?: string | string[];
493
493
  path?: string;
494
494
  data?: any[];
495
- getAllAction?: <T, TReturn>(list: T[], params: any) => TReturn[];
496
- getAction?: <T, TReturn>(list: T[], id?: string) => TReturn | undefined;
497
- patchAction?: <T, TPatch, TReturn>(list: T[], item: TPatch) => TReturn | undefined;
498
- postAction?: <T, TPost, TReturn>(list: T[], item: TPost) => TReturn | undefined;
495
+ getAllAction?: <T>(list: T[], params: any) => T[] | any[];
496
+ getAction?: <T>(list: T[], id?: string) => T | any;
497
+ patchAction?: <T>(list: T[], item: any) => T | any;
498
+ postAction?: <T>(list: T[], item: any) => T | any;
499
499
  }
500
500
 
501
501
  export declare const demoKey: unique symbol;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.394",
3
+ "version": "1.4.396",
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": {