@resolveio/server-lib 4.0.16 → 4.0.18

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.
@@ -28,7 +28,7 @@ var schema = {
28
28
  subscription: {
29
29
  type: String
30
30
  },
31
- collection: {
31
+ collection_name: {
32
32
  type: String
33
33
  }
34
34
  };
@@ -502,8 +502,10 @@ var SubscriptionManager = /** @class */ (function () {
502
502
  SubscriptionManager.prototype.runOpLogQueue = function () {
503
503
  var _this = this;
504
504
  setInterval(function () {
505
- var oplog = _this._oplogQueue.pop();
506
- _this.checkPubsForChanges(oplog.collection, oplog.doc, oplog.type);
505
+ if (_this._oplogQueue.length) {
506
+ var oplog = _this._oplogQueue.pop();
507
+ _this.checkPubsForChanges(oplog.collection, oplog.doc, oplog.type);
508
+ }
507
509
  // let oplogQueue = deepCopy(this._oplogQueue);
508
510
  // let uniqueCollectionOplogQueue = oplogQueue.map(a => a.collection).filter((elem, index, self) => {
509
511
  // return index === self.indexOf(elem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "4.0.16",
3
+ "version": "4.0.18",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {