@resolveio/server-lib 5.0.5 → 5.0.6

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.
@@ -676,8 +676,12 @@ var SubscriptionManager = /** @class */ (function () {
676
676
  }); }, 500);
677
677
  };
678
678
  SubscriptionManager.prototype.resendPubsForDelete = function (collection) {
679
- var _this = this;
680
679
  var that = this;
680
+ for (var jj = this._subCache.length - 1; jj >= 0; jj--) {
681
+ if (this._subCache[jj].collection === collection) {
682
+ this._subCache.splice(jj, 1);
683
+ }
684
+ }
681
685
  that._subscriptions.filter(function (a) { return a.collections.includes(collection); }).forEach(function (sub) {
682
686
  if (that._publications[sub.publication].ws_specific) {
683
687
  sub.clients.forEach(function (client) {
@@ -689,11 +693,6 @@ var SubscriptionManager = /** @class */ (function () {
689
693
  });
690
694
  }
691
695
  else {
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
- }
696
- }
697
696
  that.sendPubData(sub, 'delete', collection);
698
697
  }
699
698
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {