@resolveio/server-lib 5.2.33 → 5.2.34

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.
@@ -659,7 +659,7 @@ var SubscriptionManager = /** @class */ (function () {
659
659
  return [3 /*break*/, 3];
660
660
  case 2:
661
661
  sub['oplog'] = oplog;
662
- uniquePubs.push(sub);
662
+ uniquePubs.push(common_1.deepCopy(sub));
663
663
  _b.label = 3;
664
664
  case 3:
665
665
  if (this_1._subCache.findIndex(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }) >= 0) {
@@ -688,7 +688,7 @@ var SubscriptionManager = /** @class */ (function () {
688
688
  case 7:
689
689
  if (!uniquePubs.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData) && JSON.stringify(oplog) === JSON.stringify(a.oplog); }).length) {
690
690
  sub['oplog'] = oplog;
691
- uniquePubs.push(sub);
691
+ uniquePubs.push(common_1.deepCopy(sub));
692
692
  }
693
693
  _b.label = 8;
694
694
  case 8: return [3 /*break*/, 16];
@@ -713,7 +713,7 @@ var SubscriptionManager = /** @class */ (function () {
713
713
  return [3 /*break*/, 12];
714
714
  case 11:
715
715
  sub['oplog'] = oplog;
716
- uniquePubs.push(sub);
716
+ uniquePubs.push(common_1.deepCopy(sub));
717
717
  _b.label = 12;
718
718
  case 12: return [3 /*break*/, 16];
719
719
  case 13:
@@ -735,7 +735,7 @@ var SubscriptionManager = /** @class */ (function () {
735
735
  return [3 /*break*/, 16];
736
736
  case 15:
737
737
  sub['oplog'] = oplog;
738
- uniquePubs.push(sub);
738
+ uniquePubs.push(common_1.deepCopy(sub));
739
739
  _b.label = 16;
740
740
  case 16: return [2 /*return*/];
741
741
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.2.33",
3
+ "version": "5.2.34",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {