@webkrafters/react-eagleeye 1.1.0-alpha.16 → 1.1.0-alpha.17

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",
@@ -132,8 +132,13 @@ var StreamerHandle = /*#__PURE__*/function () {
132
132
  }
133
133
  this.resource.endStream();
134
134
  this._chs.finalizer.unregister(this.resource);
135
+ var channel = this._entry.channel;
135
136
  this._entry.channel = null;
136
137
  this._chs.finalize(this._sMapHash);
138
+ setTimeout(function () {
139
+ var _channel$deref;
140
+ return (_channel$deref = channel.deref()) === null || _channel$deref === void 0 ? void 0 : _channel$deref.endStream();
141
+ }, 0);
137
142
  }
138
143
  }, {
139
144
  key: "inc",
@@ -510,5 +515,4 @@ var Utility = exports.Utility = /*#__PURE__*/function () {
510
515
  }();
511
516
  function createContext() {
512
517
  return new ObservableUniverse();
513
- }
514
- {}
518
+ }
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.17",
130
130
  "dependencies": {
131
131
  "@webkrafters/eagleeye": "^1.0.8",
132
132
  "js-sha512": "^0.9.0",