@webkrafters/react-eagleeye 1.1.0-alpha.16 → 1.1.0-alpha.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.
@@ -118,7 +118,7 @@ var StreamerHandle = /*#__PURE__*/function () {
118
118
  }, {
119
119
  key: "size",
120
120
  get: function get() {
121
- return this.isValid ? this._entry.numConnections : 0;
121
+ return this.isValid ? this._entry.numConnections : -1;
122
122
  }
123
123
  }, {
124
124
  key: "dec",
@@ -130,10 +130,14 @@ var StreamerHandle = /*#__PURE__*/function () {
130
130
  if (this.size) {
131
131
  return;
132
132
  }
133
- this.resource.endStream();
134
133
  this._chs.finalizer.unregister(this.resource);
134
+ var channel = this._entry.channel;
135
135
  this._entry.channel = null;
136
136
  this._chs.finalize(this._sMapHash);
137
+ setTimeout(function () {
138
+ var _channel$deref;
139
+ return (_channel$deref = channel.deref()) === null || _channel$deref === void 0 ? void 0 : _channel$deref.endStream();
140
+ }, 0);
137
141
  }
138
142
  }, {
139
143
  key: "inc",
@@ -510,5 +514,4 @@ var Utility = exports.Utility = /*#__PURE__*/function () {
510
514
  }();
511
515
  function createContext() {
512
516
  return new ObservableUniverse();
513
- }
514
- {}
517
+ }
package/package.json CHANGED
@@ -126,7 +126,7 @@
126
126
  "test:watch": "eslint --fix && jest --updateSnapshot --watchAll"
127
127
  },
128
128
  "types": "dist/index.d.ts",
129
- "version": "1.1.0-alpha.16",
129
+ "version": "1.1.0-alpha.18",
130
130
  "dependencies": {
131
131
  "@webkrafters/eagleeye": "^1.0.8",
132
132
  "js-sha512": "^0.9.0",