@resolveio/server-lib 4.2.1 → 4.2.2

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.
@@ -599,7 +599,7 @@ var SubscriptionManager = /** @class */ (function () {
599
599
  }
600
600
  else {
601
601
  if (that._publications[sub.publication].fetchFunction) {
602
- if ((_b = that._publications[sub.publication]).fetchFunction.apply(_b, [document].concat(sub.subscriptionData))) {
602
+ if ((_b = that._publications[sub.publication]).fetchFunction.apply(_b, [oplog.doc].concat(sub.subscriptionData))) {
603
603
  if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && ((!a.subscriptionData && !sub.subscriptionData) || JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData))[0]; })) {
604
604
  uniquePubs_1.push(sub);
605
605
  uniqueOplog_1.push(oplog);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {