@resolveio/server-lib 5.0.4 → 5.0.5

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.
@@ -689,8 +689,10 @@ var SubscriptionManager = /** @class */ (function () {
689
689
  });
690
690
  }
691
691
  else {
692
- if (_this._subCache.some(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); })) {
693
- _this._subCache.splice(_this._subCache.findIndex(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }), 1);
692
+ for (var jj = _this._subCache.length - 1; jj >= 0; jj--) {
693
+ if (_this._subCache[jj].publication === sub.publication) {
694
+ _this._subCache.splice(jj, 1);
695
+ }
694
696
  }
695
697
  that.sendPubData(sub, 'delete', collection);
696
698
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {