@entropic-bond/firebase 1.13.23 → 1.13.24

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.
@@ -14168,14 +14168,13 @@ class Wa {
14168
14168
  }
14169
14169
  updateProps(e, t) {
14170
14170
  const r = this._collectionsToWatch[e];
14171
- if (r)
14172
- return this.onDocumentChange(t, r);
14171
+ return r ? this.onDocumentChange(t, r) : Promise.resolve();
14173
14172
  }
14174
14173
  async onDocumentChange(e, t) {
14175
14174
  const r = jt.toPersistentDocumentChange(e);
14176
14175
  this._beforeDocumentChange?.(r, t);
14177
14176
  const s = {};
14178
- r.before && (r.after?.id && this._disabledChangeListeners.has(r.after?.id) || (await Promise.all(t.map(async (i) => {
14177
+ e.type !== "update" || !r.before || r.after?.id && this._disabledChangeListeners.has(r.after?.id) || (await Promise.all(t.map(async (i) => {
14179
14178
  const a = Wa.ownerCollectionPath(pe.createInstance(i.ownerClassName()), i, r.params), c = await this._resolveCollectionPaths(a);
14180
14179
  await Promise.all(c.map(async (l) => {
14181
14180
  const d = TT.getModel(l);
@@ -14206,7 +14205,7 @@ class Wa {
14206
14205
  })
14207
14206
  ]);
14208
14207
  }));
14209
- })), this._afterDocumentChange?.(s, t)));
14208
+ })), this._afterDocumentChange?.(s, t));
14210
14209
  }
14211
14210
  disableChangeListener(e) {
14212
14211
  this._disabledChangeListeners.add(e.id);