entropic-bond 1.53.15 → 1.53.17
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.
- package/lib/entropic-bond.js +5 -5
- package/lib/entropic-bond.js.map +1 -1
- package/lib/entropic-bond.umd.cjs +1 -1
- package/lib/entropic-bond.umd.cjs.map +1 -1
- package/lib/store/data-source.d.ts +7 -8
- package/lib/store/json-data-source.d.ts +4 -4
- package/lib/store/model.d.ts +3 -3
- package/package.json +2 -2
package/lib/entropic-bond.js
CHANGED
|
@@ -1003,10 +1003,10 @@ class w {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
const s = [];
|
|
1005
1005
|
return Object.entries(r).forEach(([n, o]) => {
|
|
1006
|
-
const a = this.
|
|
1006
|
+
const a = this.subscribeToDocumentChangeListener(n, (c) => w.processDocumentChange(c, o));
|
|
1007
1007
|
if (a)
|
|
1008
1008
|
s.push(a);
|
|
1009
|
-
else if (e.noThrowOnNonImplementedListener) throw new Error("The method
|
|
1009
|
+
else if (e.noThrowOnNonImplementedListener) throw new Error("The method documentChangeListener has not been implemented in the concrete data source");
|
|
1010
1010
|
}), s;
|
|
1011
1011
|
}
|
|
1012
1012
|
/**
|
|
@@ -1017,9 +1017,9 @@ class w {
|
|
|
1017
1017
|
* @param props the properties to be watched in the collection
|
|
1018
1018
|
* @param listener the listener to be called when a document is changed
|
|
1019
1019
|
* @returns a function that uninstalls the listener. If the returned value is undefined
|
|
1020
|
-
* the method
|
|
1020
|
+
* the method documentChangeListener has not been implemented in the concrete data source
|
|
1021
1021
|
*/
|
|
1022
|
-
|
|
1022
|
+
subscribeToDocumentChangeListener(e, t) {
|
|
1023
1023
|
}
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Utility method to convert a query object to a property path query object
|
|
@@ -1173,7 +1173,7 @@ class le extends w {
|
|
|
1173
1173
|
delete: e
|
|
1174
1174
|
} : this._simulateError = e, this);
|
|
1175
1175
|
}
|
|
1176
|
-
|
|
1176
|
+
subscribeToDocumentChangeListener(e, t) {
|
|
1177
1177
|
return delete this._serverCollectionListeners[e], this._serverCollectionListeners[e] = t, {
|
|
1178
1178
|
uninstall: () => delete this._serverCollectionListeners[e],
|
|
1179
1179
|
nativeHandler: t,
|