bt-core-app 1.4.708 → 1.4.710

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.
@@ -7349,12 +7349,13 @@ function Uk(e) {
7349
7349
  var g;
7350
7350
  const r = z({}), i = z({}), o = e.storageMode == "local-cache", s = nn(), d = e.buildUrl ?? ((g = e.api) == null ? void 0 : g.buildUrl) ?? qg;
7351
7351
  function u(m) {
7352
- var c, x, S, C, p;
7352
+ var c, x, S, C, p, T;
7353
7353
  let y = "blob_";
7354
7354
  ((c = e.demo) == null ? void 0 : c.isDemoing.value) == !0 && (y = `${y}demo_`);
7355
7355
  let h = {
7356
- itemID: m.id ?? ((x = m.data) == null ? void 0 : x.id),
7357
- userID: (S = e.auth) == null ? void 0 : S.credentials.value.userID,
7356
+ credentials: (x = e.auth) == null ? void 0 : x.credentials.value,
7357
+ itemID: m.id ?? ((S = m.data) == null ? void 0 : S.id),
7358
+ userID: (C = e.auth) == null ? void 0 : C.credentials.value.userID,
7358
7359
  storeName: e.storeName
7359
7360
  };
7360
7361
  if (m.getStorageKey != null)
@@ -7363,7 +7364,7 @@ function Uk(e) {
7363
7364
  return `${y}${e.getStorageKey(h)}`;
7364
7365
  let v = "";
7365
7366
  const b = m.params ?? {};
7366
- return b != null && (v = Object.entries(b).sort(Wa.firstBy((T) => T[0])).map((T) => `${T[0]}=${JSON.stringify(T[1])}`).join("&")), `${y}${e.storeName ?? "base"}_${((C = e.auth) == null ? void 0 : C.credentials.value.userID) ?? "no-user-id"}_${m.id ?? ((p = m.data) == null ? void 0 : p.id) ?? "no-item-id"}_${v ?? "no-params"}_${m.storeKey ?? "original-key"}`;
7367
+ return b != null && (v = Object.entries(b).sort(Wa.firstBy((k) => k[0])).map((k) => `${k[0]}=${JSON.stringify(k[1])}`).join("&")), `${y}${e.storeName ?? "base"}_${((p = e.auth) == null ? void 0 : p.credentials.value.userID) ?? "no-user-id"}_${m.id ?? ((T = m.data) == null ? void 0 : T.id) ?? "no-item-id"}_${v ?? "no-params"}_${m.storeKey ?? "original-key"}`;
7367
7368
  }
7368
7369
  async function f(m) {
7369
7370
  m.additionalUrl ?? (m.additionalUrl = "/get"), d(m);
@@ -7404,12 +7405,13 @@ function Ok(e) {
7404
7405
  var v;
7405
7406
  const t = Ye.utc().toSeconds() / 86400, a = z({}), n = z({}), l = e.storageMode == "local-cache", r = nn(), i = e.buildUrl ?? ((v = e.api) == null ? void 0 : v.buildUrl) ?? qg, o = e.idSelector ?? ((b) => b.id);
7406
7407
  function s(b) {
7407
- var p, T, k, _, L;
7408
+ var p, T, k, _, L, V;
7408
7409
  let c = "ses_";
7409
7410
  ((p = e.demo) == null ? void 0 : p.isDemoing.value) == !0 && (c = `${c}demo_`);
7410
7411
  let x = {
7411
- itemID: b.id ?? ((T = b.data) == null ? void 0 : T.id),
7412
- userID: (k = e.auth) == null ? void 0 : k.credentials.value.userID,
7412
+ credentials: (T = e.auth) == null ? void 0 : T.credentials.value,
7413
+ itemID: b.id ?? ((k = b.data) == null ? void 0 : k.id),
7414
+ userID: (_ = e.auth) == null ? void 0 : _.credentials.value.userID,
7413
7415
  storeName: e.storeName
7414
7416
  };
7415
7417
  if (b.getStorageKey != null)
@@ -7418,7 +7420,7 @@ function Ok(e) {
7418
7420
  return `${c}${e.getStorageKey(x)}`;
7419
7421
  let S = "";
7420
7422
  const C = b.params ?? {};
7421
- return C != null && (S = Object.entries(C).sort(Wa.firstBy((V) => V[0])).map((V) => `${V[0]}=${JSON.stringify(V[1])}`).join("&")), `${c}${e.storeName ?? "base"}_${((_ = e.auth) == null ? void 0 : _.credentials.value.userID) ?? "no-user-id"}_${b.id ?? ((L = b.data) == null ? void 0 : L.id) ?? "no-item-id"}_${S ?? "no-params"}_${b.storeKey ?? "original-key"}`;
7423
+ return C != null && (S = Object.entries(C).sort(Wa.firstBy((E) => E[0])).map((E) => `${E[0]}=${JSON.stringify(E[1])}`).join("&")), `${c}${e.storeName ?? "base"}_${((L = e.auth) == null ? void 0 : L.credentials.value.userID) ?? "no-user-id"}_${b.id ?? ((V = b.data) == null ? void 0 : V.id) ?? "no-item-id"}_${S ?? "no-params"}_${b.storeKey ?? "original-key"}`;
7422
7424
  }
7423
7425
  function d() {
7424
7426
  a.value = {}, n.value = {};
@@ -7628,14 +7630,15 @@ function Yk(e) {
7628
7630
  t.value = void 0, a.value = 0, o.value = {};
7629
7631
  }
7630
7632
  function d() {
7631
- var C, p, T;
7633
+ var C, p, T, k;
7632
7634
  let x = "wlu_";
7633
7635
  ((C = e.demo) == null ? void 0 : C.isDemoing.value) == !0 && (x = `${x}demo_`);
7634
7636
  let S = {
7635
- userID: (p = e.auth) == null ? void 0 : p.credentials.value.userID,
7637
+ credentials: (p = e.auth) == null ? void 0 : p.credentials.value,
7638
+ userID: (T = e.auth) == null ? void 0 : T.credentials.value.userID,
7636
7639
  storeName: e.storeName
7637
7640
  };
7638
- return e.getStorageKey != null ? `${x}${e.getStorageKey(S)}` : `${x}${e.storeName}_${((T = e.auth) == null ? void 0 : T.credentials.value.userID) ?? "no-user-id"}`;
7641
+ return e.getStorageKey != null ? `${x}${e.getStorageKey(S)}` : `${x}${e.storeName}_${((k = e.auth) == null ? void 0 : k.credentials.value.userID) ?? "no-user-id"}`;
7639
7642
  }
7640
7643
  async function u() {
7641
7644
  if (l == !0) {
@@ -7870,14 +7873,15 @@ function jk(e) {
7870
7873
  t.value = void 0, a.value = 0, d.value = {};
7871
7874
  }
7872
7875
  function f() {
7873
- var L, V, E;
7876
+ var L, V, E, A;
7874
7877
  let k = "plu";
7875
7878
  ((L = e.demo) == null ? void 0 : L.isDemoing.value) == !0 && (k = `${k}_demo`);
7876
7879
  let _ = {
7877
- userID: (V = e.auth) == null ? void 0 : V.credentials.value.userID,
7880
+ credentials: (V = e.auth) == null ? void 0 : V.credentials.value,
7881
+ userID: (E = e.auth) == null ? void 0 : E.credentials.value.userID,
7878
7882
  storeName: e.storeName
7879
7883
  };
7880
- return e.getStorageKey != null ? `${k}_${e.getStorageKey(_)}` : `${e.storeName}_${k}_${((E = e.auth) == null ? void 0 : E.credentials.value.userID) ?? "no-user-id"}`;
7884
+ return e.getStorageKey != null ? `${k}_${e.getStorageKey(_)}` : `${e.storeName}_${k}_${((A = e.auth) == null ? void 0 : A.credentials.value.userID) ?? "no-user-id"}`;
7881
7885
  }
7882
7886
  async function g() {
7883
7887
  if (l == !0) {
package/dist/index.d.ts CHANGED
@@ -800,6 +800,7 @@ declare interface GetRawXYOptions<T> {
800
800
  }
801
801
 
802
802
  export declare interface GetStorageKeyOptions {
803
+ credentials?: any;
803
804
  itemID?: string;
804
805
  storeName?: string;
805
806
  userID?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.708",
3
+ "version": "1.4.710",
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": {