bt-core-app 2.0.110 → 2.0.112

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.
@@ -7814,10 +7814,10 @@ function iP(e) {
7814
7814
  if (e.getStorageKey != null)
7815
7815
  return e.getStorageKey(y);
7816
7816
  if (!oa(y.itemID))
7817
- return `${s(y)}_${oa(y.itemID) ? "no-item-id" : y.itemID}`;
7817
+ return `${s(y)}_${y.itemID}`;
7818
7818
  let k = "";
7819
7819
  const C = b.params ?? {};
7820
- return C != null && (k = Object.entries(C).sort(vl.firstBy((M) => M[0])).map((M) => `${M[0]}=${JSON.stringify(M[1])}`).join("&")), `${s(y)}_${k ?? "no-params"}`;
7820
+ return C != null && (k = Object.entries(C).sort(vl.firstBy((M) => M[0])).map((M) => `${M[0]}=${JSON.stringify(M[1])}`).join("&")), `${s(y)}_${oa(k) ? "no-params" : k}`;
7821
7821
  }
7822
7822
  function d() {
7823
7823
  a.value = {}, n.value = {};
@@ -7902,14 +7902,19 @@ function iP(e) {
7902
7902
  }
7903
7903
  async function g(b, y, k, C) {
7904
7904
  var $;
7905
- let M = p_(($ = a.value[b]) == null ? void 0 : $.data, y, e.updateIgnoreProps, "all-obj2-props"), D = {
7905
+ console.log(b), console.log(y), console.log(k);
7906
+ let M = p_((($ = a.value[b]) == null ? void 0 : $.data) ?? {}, y, e.updateIgnoreProps, "all-obj2-props");
7907
+ console.log(M);
7908
+ let D = {
7906
7909
  meta: { storedOn: t.toString() },
7907
7910
  data: M
7908
7911
  };
7909
7912
  C == "update" ? a.value[b] = D : C == "remove" && delete a.value[b], l == !0 && (C == "update" ? await r.setItem(b, Wt(D)) : C == "remove" && await r.removeItem(b));
7910
7913
  var A = await r.keys();
7911
7914
  let V = c(k), L = s(V), P = `${L}_${oa(V.itemID) ? "no-item-id" : V.itemID}`;
7912
- A = A.filter((R) => (R.startsWith(L) || R.startsWith(P)) && R != b), Object.entries(a.value).filter((R) => A.some((I) => R[0] == I)).forEach((R) => {
7915
+ A = A.filter((R) => (R.startsWith(L) || R.startsWith(P)) && R != b);
7916
+ let E = Object.entries(a.value).filter((R) => A.some((I) => R[0] == I));
7917
+ console.log("cc"), E.forEach((R) => {
7913
7918
  const I = R[1].data;
7914
7919
  if (I != null)
7915
7920
  if (Array.isArray(I))
@@ -7917,7 +7922,7 @@ function iP(e) {
7917
7922
  o(I[W]) == o(M) && (C == "update" ? I.splice(W, 1, M) : C == "remove" && I.splice(W, 1));
7918
7923
  else
7919
7924
  o(I) == o(M) && (C == "update" ? a.value[R[0]] = D : C == "remove" && delete a.value[R[0]]);
7920
- });
7925
+ }), console.log("cdd");
7921
7926
  for (let R = 0; R < A.length; R++) {
7922
7927
  const I = A[R];
7923
7928
  let W = await r.getItem(I);
@@ -7930,7 +7935,7 @@ function iP(e) {
7930
7935
  } else
7931
7936
  o(W.data) == o(M) && (C == "update" ? (W.data = M, await r.setItem(I, W)) : C == "remove" && await r.removeItem(I));
7932
7937
  }
7933
- return D.data;
7938
+ return console.log("aa"), D.data;
7934
7939
  }
7935
7940
  async function m(b) {
7936
7941
  b.additionalUrl ?? (b.additionalUrl = "/patch"), i(b);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.110",
3
+ "version": "2.0.112",
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": {