entropic-bond 1.53.19 → 1.53.20

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.
@@ -637,7 +637,12 @@ const D = class D {
637
637
  return this._stream.onCollectionChange(
638
638
  e.getQueryObject(),
639
639
  this.collectionName,
640
- (r) => t(r.map((s) => u.createInstance(s)))
640
+ (r) => t(r.map((s) => ({
641
+ after: s.after && u.createInstance(s.after),
642
+ before: s.before && u.createInstance(s.before),
643
+ type: s.type,
644
+ params: s.params
645
+ })))
641
646
  );
642
647
  }
643
648
  toPersistentChangeObject(e) {
@@ -1142,7 +1147,12 @@ class le extends w {
1142
1147
  return this._collectionListeners[t] = (s) => {
1143
1148
  if (!s.after) return;
1144
1149
  const n = this.retrieveQueryDocs([s.after], e.operations);
1145
- n.length > 0 && r(n);
1150
+ n.length > 0 && r(n.map((o) => ({
1151
+ before: void 0,
1152
+ after: o,
1153
+ type: s.type,
1154
+ params: s.params
1155
+ })));
1146
1156
  }, () => delete this._serverCollectionListeners[t];
1147
1157
  }
1148
1158
  onDocumentChange(e, t, r) {