@stoker-platform/web-client 0.5.78 → 0.5.80

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.
Files changed (2) hide show
  1. package/dist/bundle.js +3 -3
  2. package/package.json +3 -3
package/dist/bundle.js CHANGED
@@ -8,7 +8,7 @@ import { getFunctions as $e, httpsCallable as Ye, connectFunctionsEmulator as mp
8
8
  import { ReCaptchaEnterpriseProvider as pp, initializeAppCheck as Hn, onTokenChanged as Kn } from "firebase/app-check";
9
9
  import { getPerformance as gp } from "firebase/performance";
10
10
  import { getRemoteConfig as yp, fetchAndActivate as _p } from "firebase/remote-config";
11
- const vp = "0.5.77", wp = (t) => !!t.auth, ct = (t, e) => {
11
+ const vp = "0.5.79", wp = (t) => !!t.auth, ct = (t, e) => {
12
12
  if (e?.operations)
13
13
  return e.operations.includes(t);
14
14
  }, In = (t, e) => e ? e.Role ? t.access?.includes(e.Role) : !1 : !0, bp = (t, e) => e ? !e.Role || t.restrictCreate === !0 ? !1 : typeof t.restrictCreate == "object" ? t.restrictCreate?.includes(e.Role) : !0 : !0, Op = (t, e) => e ? !e.Role || t.restrictUpdate === !0 ? !1 : typeof t.restrictUpdate == "object" ? t.restrictUpdate?.includes(e.Role) : !0 : !0, ne = (t, e) => t.filter((r) => r.name === e)[0], _e = (t) => ["OneToOne", "OneToMany", "ManyToOne", "ManyToMany"].includes(t.type), Id = (t, e) => {
@@ -12036,7 +12036,7 @@ const xw = () => {
12036
12036
  Nr = "Offline", ve(e.onConnectionStatusChange, [Nr]);
12037
12037
  }, 5e3));
12038
12038
  });
12039
- }, Wt = () => Nr, Nw = () => navigator.onLine ? "Online" : "Offline", Cm = async () => {
12039
+ }, Wt = () => Nr ?? "Online", Nw = () => navigator.onLine ? "Online" : "Offline", Cm = async () => {
12040
12040
  const t = Ie(), e = dr(), r = e.currentUser;
12041
12041
  if (t.preLogout && await ve(t.preLogout, [r]) === !1)
12042
12042
  throw new Error("Operation cancelled by preLogout");
@@ -12900,7 +12900,7 @@ const eb = async (t, e, r, n) => {
12900
12900
  W.id ||= L.id, W = { ...W, ...G }, delete W.Collection_Path_String;
12901
12901
  const j = N.get(L.id) || /* @__PURE__ */ new Map(), H = j.get(Y) || /* @__PURE__ */ new Set();
12902
12902
  hm(G, H), j.set(Y, H), N.set(L.id, j), P.set(L.id, W);
12903
- }, We = n?.only === "cache" || y;
12903
+ }, We = n?.only === "cache" || y && n?.only !== "default";
12904
12904
  y && n?.tempCache && await sr(d.collection, n.tempCache?.constraints, void 0, void 0, void 0, n.tempCache?.label);
12905
12905
  for (const Y of R) {
12906
12906
  let W = !0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-client",
3
- "version": "0.5.78",
3
+ "version": "0.5.80",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [
@@ -24,8 +24,8 @@
24
24
  "test": "echo \"Error: no test specified\""
25
25
  },
26
26
  "dependencies": {
27
- "@stoker-platform/types": "0.5.55",
28
- "@stoker-platform/utils": "0.5.67",
27
+ "@stoker-platform/types": "0.5.56",
28
+ "@stoker-platform/utils": "0.5.68",
29
29
  "@types/lodash": "^4.17.24",
30
30
  "@types/luxon": "^3.7.1",
31
31
  "firebase": "^12.14.0",