bt-core-app 1.4.302 → 1.4.303

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.
@@ -7950,7 +7950,7 @@ function Xc(e) {
7950
7950
  u.nav ?? (u.nav = e == null ? void 0 : e.nav), u.proxyID ?? (u.proxyID = e == null ? void 0 : e.proxyID), u.refresh ?? (u.refresh = e == null ? void 0 : e.refresh), u.storeKey ?? (u.storeKey = e == null ? void 0 : e.storeKey), u.throwError ?? (u.throwError = e == null ? void 0 : e.throwError), u.url ?? (u.url = e == null ? void 0 : e.url), u.confirmationMsg ?? (u.confirmationMsg = u.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
7951
7951
  let w = (u == null ? void 0 : u.store) ?? (e == null ? void 0 : e.store);
7952
7952
  const C = (e == null ? void 0 : e.items) ?? [];
7953
- return u.onGetSaveAsync ?? (u.onGetSaveAsync = (M) => M), u.onCanSaveAsync ?? (u.onCanSaveAsync = () => Promise.resolve(void 0)), w == null && u.nav != null && (w = Sr({ nav: u.nav })), w != null ? u.onSaveAsync ?? (u.onSaveAsync = async (M) => M == null ? null : (u.mode ?? (u.mode = M.id == null ? "new" : "edit"), u.mode == "new" ? await w().post(u) : await w().patch(u))) : u.onSaveAsync ?? (u.onSaveAsync = (M) => {
7953
+ return u.onGetSaveAsync ?? (u.onGetSaveAsync = (M) => M), u.onCanSaveAsync ?? (u.onCanSaveAsync = () => Promise.resolve(void 0)), w == null && u.nav != null && (w = Sr({ nav: u.nav })), w != null ? u.onSaveAsync ?? (u.onSaveAsync = async (M) => M == null ? null : (u.mode ?? (u.mode = M.id == null ? "new" : "edit"), u.data = M, u.mode == "new" ? await w().post(u) : await w().patch(u))) : u.onSaveAsync ?? (u.onSaveAsync = (M) => {
7954
7954
  const x = C.findIndex((k) => k.id == M.id);
7955
7955
  return x >= 0 ? C.splice(x, 1, M) : C.push(M), Promise.resolve(M);
7956
7956
  }), l(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.302",
3
+ "version": "1.4.303",
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": {