@resolveio/server-lib 5.0.12-debug → 5.0.12-debug-1

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.
@@ -933,7 +933,7 @@ var SubscriptionManager = /** @class */ (function () {
933
933
  hasError: false,
934
934
  data: this._subCache.filter(function (a) { return a.publication === subscription.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(subscription.subscriptionData); })[0].res
935
935
  };
936
- console.log('Cache1: ' + 'Found - ' + subscription.publication);
936
+ console.log('Cache1: ' + 'Found - ' + subscription.publication + ' - ' + common_1.getBinarySize(JSON.stringify(this._subCache)));
937
937
  this.sendWS(ws, serverRes);
938
938
  }
939
939
  else {
@@ -951,7 +951,7 @@ var SubscriptionManager = /** @class */ (function () {
951
951
  break;
952
952
  }
953
953
  }
954
- console.log('Cache1: ' + 'Too Big - ' + subscription.publication);
954
+ console.log('Cache1: ' + 'Too Big - ' + subscription.publication + ' - ' + common_1.getBinarySize(JSON.stringify(_this._subCache)));
955
955
  _this._subCache.splice(0, neededSizeIndex);
956
956
  }
957
957
  _this._subCache.push({ collection: collection, publication: subscription.publication, subscriptionData: subscription.subscriptionData, res: res });
@@ -1011,7 +1011,7 @@ var SubscriptionManager = /** @class */ (function () {
1011
1011
  hasError: false,
1012
1012
  data: _this._subCache.filter(function (a) { return a.publication === subscription.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(subscription.subscriptionData); })[0].res
1013
1013
  };
1014
- console.log('Cache: ' + 'Found - ' + subscription.publication);
1014
+ console.log('Cache: ' + 'Found - ' + subscription.publication + ' - ' + common_1.getBinarySize(JSON.stringify(_this._subCache)));
1015
1015
  _this.sendWS(ws, serverRes);
1016
1016
  }
1017
1017
  });
@@ -1032,7 +1032,7 @@ var SubscriptionManager = /** @class */ (function () {
1032
1032
  break;
1033
1033
  }
1034
1034
  }
1035
- console.log('Cache: ' + 'Too Big - ' + subscription.publication);
1035
+ console.log('Cache: ' + 'Too Big - ' + subscription.publication + ' - ' + common_1.getBinarySize(JSON.stringify(_this._subCache)));
1036
1036
  _this._subCache.splice(0, neededSizeIndex);
1037
1037
  }
1038
1038
  _this._subCache.push({ collection: collection, publication: subscription.publication, subscriptionData: subscription.subscriptionData, res: res });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.0.12-debug",
3
+ "version": "5.0.12-debug-1",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {