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.
- package/dist/bt-core-app.js +1 -1
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -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
|
|
496
|
-
getAction?: <T
|
|
497
|
-
patchAction?: <T
|
|
498
|
-
postAction?: <T
|
|
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