entropic-bond 1.55.6 → 1.56.0

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.
@@ -75,7 +75,7 @@ var K = Object.defineProperty, X = (i, e, t, r) => {
75
75
  (o = i[n]) && (s = o(e, t, s) || s);
76
76
  return s && K(e, t, s), s;
77
77
  }, h;
78
- const W = (h = class {
78
+ const Q = (h = class {
79
79
  /**
80
80
  * Registers a class to be used by the persistence engine.
81
81
  * @param className the name of the class to be registered
@@ -399,8 +399,8 @@ const W = (h = class {
399
399
  }, h._factoryMap = {}, h);
400
400
  X([
401
401
  U
402
- ], W.prototype, "_id");
403
- let d = W;
402
+ ], Q.prototype, "_id");
403
+ let d = Q;
404
404
  function U(i, e) {
405
405
  return _()(i, e);
406
406
  }
@@ -941,6 +941,9 @@ class te {
941
941
  getQueryObject() {
942
942
  return this.queryObject;
943
943
  }
944
+ getQueryModel() {
945
+ return this.model;
946
+ }
944
947
  }
945
948
  const v = class v {
946
949
  constructor() {
@@ -1017,7 +1020,7 @@ class M {
1017
1020
  throw new Error("The method subscribeToDocumentChangeListener has not been implemented in the concrete data source");
1018
1021
  }, this._resolveCollectionPaths = () => {
1019
1022
  throw new Error("The method collectionsMatchingTemplate has not been implemented in the concrete data source");
1020
- }, e && (this.beforeUpdate = e.beforeUpdateDocument, this.afterUpdate = e.afterUpdateDocument, this.onAllPropsUpdatedCallback = e.onAllPropsUpdated);
1023
+ }, e && (this.beforeUpdate = e.beforeUpdateDocument, this.afterUpdate = e.afterUpdateDocument, this.onAllPropsUpdatedCallback = e.onAllPropsUpdated, this._beforeQueryOwnerCollection = e.beforeQueryOwnerCollection);
1021
1024
  }
1022
1025
  installUpdaters() {
1023
1026
  const e = d.getSystemRegisteredReferencesWithCachedProps(), t = {};
@@ -1052,6 +1055,9 @@ class M {
1052
1055
  set documentChangeListenerSubscriber(e) {
1053
1056
  this.subscribeToDocumentChangeListener = e;
1054
1057
  }
1058
+ set beforeQueryOwnerCollection(e) {
1059
+ this._beforeQueryOwnerCollection = e;
1060
+ }
1055
1061
  set resolveCollectionPaths(e) {
1056
1062
  this._resolveCollectionPaths = e;
1057
1063
  }
@@ -1065,7 +1071,7 @@ class M {
1065
1071
  n.cachedProps?.forEach((g) => {
1066
1072
  const S = r.before[g], O = r.after[g];
1067
1073
  S !== O && (P = !0);
1068
- }), P && (n.searchableArray ? c = c.where(n.name, "contains", r.before) : c = c.where(n.name, "==", r.before));
1074
+ }), P && (n.searchableArray ? c = c.where(n.name, "contains", r.before) : c = c.where(n.name, "==", r.before)), c = this._beforeQueryOwnerCollection?.(c) ?? c;
1069
1075
  const E = await c.get();
1070
1076
  return s[l] = {
1071
1077
  totalDocumentsToUpdate: E.length,
@@ -1523,9 +1529,9 @@ j([
1523
1529
  D = j([
1524
1530
  ee("StoredFile")
1525
1531
  ], D);
1526
- class B {
1532
+ class W {
1527
1533
  }
1528
- const p = class p extends B {
1534
+ const p = class p extends W {
1529
1535
  constructor() {
1530
1536
  if (super(), this._onAuthStateChange = new L(), !p._authService) throw new Error(p.error.shouldBeRegistered);
1531
1537
  p._authService.onAuthStateChange(
@@ -1652,7 +1658,7 @@ const p = class p extends B {
1652
1658
  };
1653
1659
  p.error = { shouldBeRegistered: "You should register an auth service before using Auth." }, p._instance = void 0;
1654
1660
  let x = p;
1655
- class Pe extends B {
1661
+ class Pe extends W {
1656
1662
  constructor() {
1657
1663
  super(...arguments), this.pendingPromises = [], this._fakeRegisteredUsers = {};
1658
1664
  }
@@ -1767,9 +1773,9 @@ class ve {
1767
1773
  return e(t);
1768
1774
  }
1769
1775
  }
1770
- class Q {
1776
+ class B {
1771
1777
  }
1772
- const m = class m extends Q {
1778
+ const m = class m extends B {
1773
1779
  constructor() {
1774
1780
  super();
1775
1781
  }
@@ -1795,7 +1801,7 @@ const m = class m extends Q {
1795
1801
  };
1796
1802
  m.error = { shouldBeRegistered: "You should register a Server Auth service before using the Server Auth." }, m._instance = void 0;
1797
1803
  let V = m;
1798
- class we extends Q {
1804
+ class we extends B {
1799
1805
  constructor(e) {
1800
1806
  super(), this._userCredentials = e;
1801
1807
  }
@@ -1843,7 +1849,7 @@ function Oe(i, e) {
1843
1849
  export {
1844
1850
  x as Auth,
1845
1851
  Pe as AuthMock,
1846
- B as AuthService,
1852
+ W as AuthService,
1847
1853
  $ as CloudFunctions,
1848
1854
  ve as CloudFunctionsMock,
1849
1855
  C as CloudStorage,
@@ -1857,7 +1863,7 @@ export {
1857
1863
  te as Query,
1858
1864
  V as ServerAuth,
1859
1865
  we as ServerAuthMock,
1860
- Q as ServerAuthService,
1866
+ B as ServerAuthService,
1861
1867
  I as Store,
1862
1868
  D as StoredFile,
1863
1869
  ae as StoredFileEvent,