entropic-bond 1.51.7 → 1.51.8

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.
@@ -989,7 +989,7 @@ class E {
989
989
  });
990
990
  const s = [];
991
991
  return Object.entries(r).forEach(([n, o]) => {
992
- const c = this.subscribeToDocumentChangeListerner(n, o, (h) => this.onDocumentChange(h, o));
992
+ const c = this.subscribeToDocumentChangeListerner(n, (h) => this.onDocumentChange(h, o));
993
993
  if (c)
994
994
  s.push(c);
995
995
  else if (e.noThrowOnNonImplementedListener)
@@ -1000,13 +1000,13 @@ class E {
1000
1000
  * Installs a document change listener
1001
1001
  * Implement the required logic to install a listener that will be called
1002
1002
  * when a document is changed in your concrete the data source
1003
- * @param collectionNameToListen the name of the collection to be watched
1003
+ * @param collectionPathToListen the name of the collection to be watched
1004
1004
  * @param props the properties to be watched in the collection
1005
1005
  * @param listener the listener to be called when a document is changed
1006
1006
  * @returns a function that uninstalls the listener. If the returned value is undefined
1007
1007
  * the method documentChangeListerner has not been implemented in the concrete data source
1008
1008
  */
1009
- subscribeToDocumentChangeListerner(e, t, r) {
1009
+ subscribeToDocumentChangeListerner(e, t) {
1010
1010
  }
1011
1011
  /**
1012
1012
  * Utility method to convert a query object to a property path query object
@@ -1065,7 +1065,7 @@ class E {
1065
1065
  (a = r.prop.cachedProps) == null || a.forEach(async (u) => {
1066
1066
  var I;
1067
1067
  const b = e.before[u], R = e.after[u];
1068
- b !== R && (h[`_${r.prop.name}`][`_${u}`] = R, await s.save(h), (I = this.onUpdate) == null || I.call(this, h, r.prop, e.collectionPath));
1068
+ b !== R && (h[`_${r.prop.name}`][`_${u}`] = R, await s.save(h), (I = this.onUpdate) == null || I.call(this, h, r.prop));
1069
1069
  });
1070
1070
  })
1071
1071
  ]);
@@ -1160,10 +1160,10 @@ class pe extends E {
1160
1160
  delete: e
1161
1161
  } : this._simulateError = e, this);
1162
1162
  }
1163
- subscribeToDocumentChangeListerner(e, t, r) {
1164
- return delete this._listener[e], this._listener[e] = r, {
1163
+ subscribeToDocumentChangeListerner(e, t) {
1164
+ return delete this._listener[e], this._listener[e] = t, {
1165
1165
  uninstall: () => delete this._listener[e],
1166
- nativeHandler: r,
1166
+ nativeHandler: t,
1167
1167
  collectionPath: e
1168
1168
  };
1169
1169
  }