Comparing version 11.11.0 to 11.12.0
@@ -0,1 +1,13 @@ | ||
<a name="11.12.0"></a> | ||
# [11.12.0](https://github.com/staltz/xstream/compare/v11.11.0...v11.12.0) (2020-05-28) | ||
### Bug Fixes | ||
* **debounce:** clear emit timer interval on stop ([719bcd9](https://github.com/staltz/xstream/commit/719bcd9)), closes [#296](https://github.com/staltz/xstream/issues/296) | ||
* **fromDiagram:** save timers ([f65f6b7](https://github.com/staltz/xstream/commit/f65f6b7)) | ||
* **imitate:** use null for unset this._target ([baf37aa](https://github.com/staltz/xstream/commit/baf37aa)) | ||
<a name="11.11.0"></a> | ||
@@ -248,5 +260,5 @@ # [11.11.0](https://github.com/staltz/xstream/compare/v11.10.0...v11.11.0) (2019-05-04) | ||
* update benchmarks ([b12065d](https://github.com/staltz/xstream/commit/b12065d)) | ||
* **core:** improve performance by encapsulating try/catch ([31fab06](https://github.com/staltz/xstream/commit/31fab06)) | ||
* **core:** merge together core.ts and index.ts ([a03e418](https://github.com/staltz/xstream/commit/a03e418)) | ||
* update benchmarks ([b12065d](https://github.com/staltz/xstream/commit/b12065d)) | ||
@@ -253,0 +265,0 @@ |
@@ -159,7 +159,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.xstream = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
if (p.up(t, this.i)) { | ||
var a = p.vals; | ||
var l = a.length; | ||
var b = Array(l); | ||
for (var i = 0; i < l; ++i) | ||
b[i] = a[i]; | ||
var b = cp(p.vals); | ||
out._n(b); | ||
@@ -793,3 +789,3 @@ } | ||
this._d = false; | ||
this._target = NO; | ||
this._target = null; | ||
this._err = NO; | ||
@@ -866,3 +862,3 @@ } | ||
var ta = this._target; | ||
if (ta !== NO) | ||
if (ta) | ||
return ta._add(il); | ||
@@ -886,3 +882,3 @@ var a = this._ils; | ||
var ta = this._target; | ||
if (ta !== NO) | ||
if (ta) | ||
return ta._remove(il); | ||
@@ -1159,3 +1155,3 @@ var a = this._ils; | ||
var ta = this._target; | ||
if (ta !== NO) | ||
if (ta) | ||
return ta._add(il); | ||
@@ -1162,0 +1158,0 @@ var a = this._ils; |
@@ -1,34 +0,34 @@ | ||
(function(v){"object"===typeof exports&&"undefined"!==typeof module?module.exports=v():"function"===typeof define&&define.amd?define([],v):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).xstream=v()})(function(){return function d(g,k,h){function q(l,m){if(!k[l]){if(!g[l]){var n="function"==typeof require&&require;if(!m&&n)return n(l,!0);if(u)return u(l,!0);m=Error("Cannot find module '"+l+"'");throw m.code="MODULE_NOT_FOUND",m;}m=k[l]={exports:{}}; | ||
g[l][0].call(m.exports,function(c){var d=g[l][1][c];return q(d?d:c)},m,m.exports,d,g,k,h)}return k[l].exports}for(var u="function"==typeof require&&require,n=0;n<h.length;n++)q(h[n]);return q}({1:[function(g,k,h){function d(){}function q(a){for(var b=a.length,e=Array(b),c=0;c<b;++c)e[c]=a[c];return e}function u(a,b){return function(e){return a(e)&&b(e)}}function n(a,b,e){try{return a.f(b)}catch(f){return e._e(f),c}}function l(a){a._start=function(b){b.next=b._n;b.error=b._e;b.complete=b._c;this.start(b)}; | ||
a._stop=a.stop}var m=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var a in e)e.hasOwnProperty(a)&&(b[a]=e[a])};return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}();Object.defineProperty(h,"__esModule",{value:!0});var t=g("symbol-observable"),c={};h.NO=c;var r={_n:d,_e:d,_c:d};h.NO_IL=r;var z= | ||
function(){function a(b,e){this._stream=b;this._listener=e}a.prototype.unsubscribe=function(){this._stream._remove(this._listener)};return a}(),A=function(){function a(b){this._listener=b}a.prototype.next=function(b){this._listener._n(b)};a.prototype.error=function(b){this._listener._e(b)};a.prototype.complete=function(){this._listener._c()};return a}(),B=function(){function a(b){this.type="fromObservable";this.ins=b;this.active=!1}a.prototype._start=function(b){this.out=b;this.active=!0;this._sub= | ||
this.ins.subscribe(new A(b));this.active||this._sub.unsubscribe()};a.prototype._stop=function(){this._sub&&this._sub.unsubscribe();this.active=!1};return a}(),C=function(){function a(b){this.type="merge";this.insArr=b;this.out=c;this.ac=0}a.prototype._start=function(b){this.out=b;b=this.insArr;var e=b.length;this.ac=e;for(var a=0;a<e;a++)b[a]._add(this)};a.prototype._stop=function(){for(var b=this.insArr,a=b.length,f=0;f<a;f++)b[f]._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out; | ||
a!==c&&a._n(b)};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){if(0>=--this.ac){var b=this.out;b!==c&&b._c()}};return a}(),D=function(){function a(b,a,c){this.i=b;this.out=a;this.p=c;c.ils.push(this)}a.prototype._n=function(b){var a=this.p,f=this.out;if(f!==c&&a.up(b,this.i)){b=a.vals;a=b.length;for(var x=Array(a),d=0;d<a;++d)x[d]=b[d];f._n(x)}};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.p;b.out!==c&&0===--b.Nc&& | ||
b.out._c()};return a}(),E=function(){function a(b){this.type="combine";this.insArr=b;this.out=c;this.ils=[];this.Nc=this.Nn=0;this.vals=[]}a.prototype.up=function(b,a){var e=this.vals[a];e=this.Nn?e===c?--this.Nn:this.Nn:0;this.vals[a]=b;return 0===e};a.prototype._start=function(b){this.out=b;var a=this.insArr,f=this.Nc=this.Nn=a.length,d=this.vals=Array(f);if(0===f)b._n([]),b._c();else for(var g=0;g<f;g++)d[g]=c,a[g]._add(new D(g,b,this))};a.prototype._stop=function(){for(var b=this.insArr,a=b.length, | ||
f=this.ils,d=0;d<a;d++)b[d]._remove(f[d]);this.out=c;this.ils=[];this.vals=[]};return a}(),F=function(){function a(b){this.type="fromArray";this.a=b}a.prototype._start=function(b){for(var a=this.a,c=0,d=a.length;c<d;c++)b._n(a[c]);b._c()};a.prototype._stop=function(){};return a}(),G=function(){function a(b){this.type="fromPromise";this.on=!1;this.p=b}a.prototype._start=function(b){var a=this;this.on=!0;this.p.then(function(e){a.on&&(b._n(e),b._c())},function(a){b._e(a)}).then(d,function(b){setTimeout(function(){throw b; | ||
})})};a.prototype._stop=function(){this.on=!1};return a}(),H=function(){function a(b){this.type="periodic";this.period=b;this.intervalID=-1;this.i=0}a.prototype._start=function(b){var a=this;this.intervalID=setInterval(function(){b._n(a.i++)},this.period)};a.prototype._stop=function(){-1!==this.intervalID&&clearInterval(this.intervalID);this.intervalID=-1;this.i=0};return a}(),I=function(){function a(b,a){this.type="debug";this.ins=b;this.out=c;this.s=d;this.l="";"string"===typeof a?this.l=a:"function"=== | ||
typeof a&&(this.s=a)}a.prototype._start=function(b){this.out=b;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;if(a!==c){var f=this.s,g=this.l;if(f!==d)try{f(b)}catch(y){a._e(y)}else g?console.log(g+":",b):console.log(b);a._n(b)}};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),J=function(){function a(b,a){this.type="drop";this.ins=a;this.out= | ||
c;this.max=b;this.dropped=0}a.prototype._start=function(b){this.out=b;this.dropped=0;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;a!==c&&this.dropped++>=this.max&&a._n(b)};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),K=function(){function a(b,a){this.out=b;this.op=a}a.prototype._n=function(){this.op.end()};a.prototype._e=function(b){this.out._e(b)}; | ||
a.prototype._c=function(){this.op.end()};return a}(),L=function(){function a(b,a){this.type="endWhen";this.ins=a;this.out=c;this.o=b;this.oil=r}a.prototype._start=function(b){this.out=b;this.o._add(this.oil=new K(b,this));this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.o._remove(this.oil);this.out=c;this.oil=r};a.prototype.end=function(){var b=this.out;b!==c&&b._c()};a.prototype._n=function(b){var a=this.out;a!==c&&a._n(b)};a.prototype._e=function(b){var a=this.out;a!== | ||
c&&a._e(b)};a.prototype._c=function(){this.end()};return a}(),w=function(){function a(b,a){this.type="filter";this.ins=a;this.out=c;this.f=b}a.prototype._start=function(b){this.out=b;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;if(a!==c){var f=n(this,b,a);f!==c&&f&&a._n(b)}};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),M=function(){function a(b, | ||
a){this.out=b;this.op=a}a.prototype._n=function(b){this.out._n(b)};a.prototype._e=function(b){this.out._e(b)};a.prototype._c=function(){this.op.inner=c;this.op.less()};return a}(),N=function(){function a(b){this.type="flatten";this.ins=b;this.out=c;this.open=!0;this.inner=c;this.il=r}a.prototype._start=function(b){this.out=b;this.open=!0;this.inner=c;this.il=r;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.inner!==c&&this.inner._remove(this.il);this.out=c;this.open= | ||
!0;this.inner=c;this.il=r};a.prototype.less=function(){var b=this.out;b!==c&&(this.open||this.inner!==c||b._c())};a.prototype._n=function(b){var a=this.out;if(a!==c){var f=this.inner,d=this.il;f!==c&&d!==r&&f._remove(d);(this.inner=b)._add(this.il=new M(a,this))}};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){this.open=!1;this.less()};return a}(),O=function(){function a(b,a,f){var e=this;this.type="fold";this.ins=f;this.out=c;this.f=function(a){return b(e.acc, | ||
a)};this.acc=this.seed=a}a.prototype._start=function(b){this.out=b;this.acc=this.seed;b._n(this.acc);this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c;this.acc=this.seed};a.prototype._n=function(b){var a=this.out;a!==c&&(b=n(this,b,a),b!==c&&a._n(this.acc=b))};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),P=function(){function a(b){this.type="last";this.ins=b;this.out=c;this.has=!1;this.val= | ||
c}a.prototype._start=function(b){this.out=b;this.has=!1;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.val=this.out=c};a.prototype._n=function(b){this.has=!0;this.val=b};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&(this.has?(b._n(this.val),b._c()):b._e(Error("last() failed because input stream completed")))};return a}(),Q=function(){function a(b,a){this.type="map";this.ins=a;this.out=c;this.f=b}a.prototype._start= | ||
function(b){this.out=b;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;a!==c&&(b=n(this,b,a),b!==c&&a._n(b))};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),R=function(){function a(b){this.type="remember";this.ins=b;this.out=c}a.prototype._start=function(b){this.out=b;this.ins._add(b)};a.prototype._stop=function(){this.ins._remove(this.out); | ||
this.out=c};return a}(),S=function(){function a(b,a){this.type="replaceError";this.ins=a;this.out=c;this.f=b}a.prototype._start=function(b){this.out=b;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;a!==c&&a._n(b)};a.prototype._e=function(b){var a=this.out;if(a!==c)try{this.ins._remove(this),(this.ins=this.f(b))._add(this)}catch(f){a._e(f)}};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),T=function(){function a(b, | ||
a){this.type="startWith";this.ins=b;this.out=c;this.val=a}a.prototype._start=function(b){this.out=b;this.out._n(this.val);this.ins._add(b)};a.prototype._stop=function(){this.ins._remove(this.out);this.out=c};return a}(),U=function(){function a(b,a){this.type="take";this.ins=a;this.out=c;this.max=b;this.taken=0}a.prototype._start=function(b){this.out=b;this.taken=0;0>=this.max?b._c():this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a= | ||
this.out;if(a!==c){var f=++this.taken;f<this.max?a._n(b):f===this.max&&(a._n(b),a._c())}};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}();g=function(){function a(b){this._prod=b||c;this._ils=[];this._dl=this._stopID=c;this._d=!1;this._err=this._target=c}a.prototype._n=function(b){var a=this._ils,c=a.length;this._d&&this._dl._n(b);if(1==c)a[0]._n(b);else if(0!=c){a=q(a);for(var d=0;d<c;d++)a[d]._n(b)}};a.prototype._e=function(b){if(this._err=== | ||
c){this._err=b;var a=this._ils,f=a.length;this._x();this._d&&this._dl._e(b);if(1==f)a[0]._e(b);else{if(0==f)return;a=q(a);for(var d=0;d<f;d++)a[d]._e(b)}if(!this._d&&0==f)throw this._err;}};a.prototype._c=function(){var b=this._ils,a=b.length;this._x();this._d&&this._dl._c();if(1==a)b[0]._c();else if(0!=a){b=q(b);for(var c=0;c<a;c++)b[c]._c()}};a.prototype._x=function(){0!==this._ils.length&&(this._prod!==c&&this._prod._stop(),this._err=c,this._ils=[])};a.prototype._stopNow=function(){this._prod._stop(); | ||
this._stopID=this._err=c};a.prototype._add=function(b){var a=this._target;if(a!==c)return a._add(b);a=this._ils;a.push(b);1<a.length||(this._stopID!==c?(clearTimeout(this._stopID),this._stopID=c):(b=this._prod,b!==c&&b._start(this)))};a.prototype._remove=function(b){var a=this,d=this._target;if(d!==c)return d._remove(b);d=this._ils;b=d.indexOf(b);-1<b&&(d.splice(b,1),this._prod!==c&&0>=d.length?(this._err=c,this._stopID=setTimeout(function(){return a._stopNow()})):1===d.length&&this._pruneCycles())}; | ||
a.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])};a.prototype._hasNoSinks=function(b,a){if(-1!==a.indexOf(b)||b.out===this)return!0;if(b.out&&b.out!==c)return this._hasNoSinks(b.out,a.concat(b));if(b._ils){for(var e=0,d=b._ils.length;e<d;e++)if(!this._hasNoSinks(b._ils[e],a.concat(b)))return!1;return!0}return!1};a.prototype.ctor=function(){return this instanceof p?p:a};a.prototype.addListener=function(b){b._n=b.next||d;b._e=b.error||d;b._c=b.complete||d;this._add(b)}; | ||
a.prototype.removeListener=function(b){this._remove(b)};a.prototype.subscribe=function(b){this.addListener(b);return new z(this,b)};a.prototype[t.default]=function(){return this};a.create=function(b){if(b){if("function"!==typeof b.start||"function"!==typeof b.stop)throw Error("producer requires both start and stop functions");l(b)}return new a(b)};a.createWithMemory=function(b){b&&l(b);return new p(b)};a.never=function(){return new a({_start:d,_stop:d})};a.empty=function(){return new a({_start:function(b){b._c()}, | ||
_stop:d})};a.throw=function(b){return new a({_start:function(a){a._e(b)},_stop:d})};a.from=function(b){if("function"===typeof b[t.default])return a.fromObservable(b);if("function"===typeof b.then)return a.fromPromise(b);if(Array.isArray(b))return a.fromArray(b);throw new TypeError("Type of input to from() must be an Array, Promise, or Observable");};a.of=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return a.fromArray(b)};a.fromArray=function(b){return new a(new F(b))};a.fromPromise= | ||
function(b){return new a(new G(b))};a.fromObservable=function(b){if(b.endWhen)return b;b="function"===typeof b[t.default]?b[t.default]():b;return new a(new B(b))};a.periodic=function(b){return new a(new H(b))};a.prototype._map=function(b){return new (this.ctor())(new Q(b,this))};a.prototype.map=function(b){return this._map(b)};a.prototype.mapTo=function(b){var a=this.map(function(){return b});a._prod.type="mapTo";return a};a.prototype.filter=function(b){var c=this._prod;return c instanceof w?new a(new w(u(c.f, | ||
b),c.ins)):new a(new w(b,this))};a.prototype.take=function(b){return new (this.ctor())(new U(b,this))};a.prototype.drop=function(b){return new a(new J(b,this))};a.prototype.last=function(){return new a(new P(this))};a.prototype.startWith=function(b){return new p(new T(this,b))};a.prototype.endWhen=function(b){return new (this.ctor())(new L(b,this))};a.prototype.fold=function(b,a){return new p(new O(b,a,this))};a.prototype.replaceError=function(b){return new (this.ctor())(new S(b,this))};a.prototype.flatten= | ||
function(){return new a(new N(this))};a.prototype.compose=function(b){return b(this)};a.prototype.remember=function(){return new p(new R(this))};a.prototype.debug=function(b){return new (this.ctor())(new I(this,b))};a.prototype.imitate=function(b){if(b instanceof p)throw Error("A MemoryStream was given to imitate(), but it only supports a Stream. Read more about this restriction here: https://github.com/staltz/xstream#faq");this._target=b;for(var a=this._ils,c=a.length,d=0;d<c;d++)b._add(a[d]);this._ils= | ||
[]};a.prototype.shamefullySendNext=function(a){this._n(a)};a.prototype.shamefullySendError=function(a){this._e(a)};a.prototype.shamefullySendComplete=function(){this._c()};a.prototype.setDebugListener=function(a){a?(this._d=!0,a._n=a.next||d,a._e=a.error||d,a._c=a.complete||d,this._dl=a):(this._d=!1,this._dl=c)};a.merge=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return new a(new C(b))};a.combine=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return new a(new E(b))}; | ||
return a}();h.Stream=g;var p=function(a){function b(b){b=a.call(this,b)||this;b._has=!1;return b}m(b,a);b.prototype._n=function(b){this._v=b;this._has=!0;a.prototype._n.call(this,b)};b.prototype._add=function(a){var b=this._target;if(b!==c)return b._add(a);b=this._ils;b.push(a);1<b.length?this._has&&a._n(this._v):this._stopID!==c?(this._has&&a._n(this._v),clearTimeout(this._stopID),this._stopID=c):this._has?a._n(this._v):(a=this._prod,a!==c&&a._start(this))};b.prototype._stopNow=function(){this._has= | ||
!1;a.prototype._stopNow.call(this)};b.prototype._x=function(){this._has=!1;a.prototype._x.call(this)};b.prototype.map=function(a){return this._map(a)};b.prototype.mapTo=function(b){return a.prototype.mapTo.call(this,b)};b.prototype.take=function(b){return a.prototype.take.call(this,b)};b.prototype.endWhen=function(b){return a.prototype.endWhen.call(this,b)};b.prototype.replaceError=function(b){return a.prototype.replaceError.call(this,b)};b.prototype.remember=function(){return this};b.prototype.debug= | ||
function(b){return a.prototype.debug.call(this,b)};return b}(g);h.MemoryStream=p;h.default=g},{"symbol-observable":2}],2:[function(g,k,h){var d="undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};Object.defineProperty(h,"__esModule",{value:!0});g=(g=g("./ponyfill.js"))&&g.__esModule?g:{"default":g};k="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof d?d:"undefined"!==typeof k?k:Function("return this")();k=(0, | ||
g["default"])(k);h["default"]=k},{"./ponyfill.js":3}],3:[function(g,k,h){Object.defineProperty(h,"__esModule",{value:!0});h["default"]=function(d){var g=d.Symbol;"function"===typeof g?g.observable?d=g.observable:(d=g("observable"),g.observable=d):d="@@observable";return d}},{}]},{},[1])(1)}); | ||
(function(v){"object"===typeof exports&&"undefined"!==typeof module?module.exports=v():"function"===typeof define&&define.amd?define([],v):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).xstream=v()})(function(){return function d(f,k,h){function p(l,m){if(!k[l]){if(!f[l]){var n="function"==typeof require&&require;if(!m&&n)return n(l,!0);if(u)return u(l,!0);m=Error("Cannot find module '"+l+"'");throw m.code="MODULE_NOT_FOUND",m;}m=k[l]={exports:{}}; | ||
f[l][0].call(m.exports,function(c){var d=f[l][1][c];return p(d?d:c)},m,m.exports,d,f,k,h)}return k[l].exports}for(var u="function"==typeof require&&require,n=0;n<h.length;n++)p(h[n]);return p}({1:[function(f,k,h){function d(){}function p(a){for(var b=a.length,g=Array(b),c=0;c<b;++c)g[c]=a[c];return g}function u(a,b){return function(g){return a(g)&&b(g)}}function n(a,b,g){try{return a.f(b)}catch(e){return g._e(e),c}}function l(a){a._start=function(b){b.next=b._n;b.error=b._e;b.complete=b._c;this.start(b)}; | ||
a._stop=a.stop}var m=this&&this.__extends||function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var g in a)a.hasOwnProperty(g)&&(b[g]=a[g])};return a(b,g)};return function(b,g){function c(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(c.prototype=g.prototype,new c)}}();Object.defineProperty(h,"__esModule",{value:!0});var t=f("symbol-observable"),c={};h.NO=c;var r={_n:d,_e:d,_c:d};h.NO_IL=r;var y= | ||
function(){function a(b,a){this._stream=b;this._listener=a}a.prototype.unsubscribe=function(){this._stream._remove(this._listener)};return a}(),z=function(){function a(b){this._listener=b}a.prototype.next=function(b){this._listener._n(b)};a.prototype.error=function(b){this._listener._e(b)};a.prototype.complete=function(){this._listener._c()};return a}(),A=function(){function a(b){this.type="fromObservable";this.ins=b;this.active=!1}a.prototype._start=function(b){this.out=b;this.active=!0;this._sub= | ||
this.ins.subscribe(new z(b));this.active||this._sub.unsubscribe()};a.prototype._stop=function(){this._sub&&this._sub.unsubscribe();this.active=!1};return a}(),B=function(){function a(b){this.type="merge";this.insArr=b;this.out=c;this.ac=0}a.prototype._start=function(b){this.out=b;b=this.insArr;var a=b.length;this.ac=a;for(var c=0;c<a;c++)b[c]._add(this)};a.prototype._stop=function(){for(var b=this.insArr,a=b.length,e=0;e<a;e++)b[e]._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out; | ||
a!==c&&a._n(b)};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){if(0>=--this.ac){var b=this.out;b!==c&&b._c()}};return a}(),C=function(){function a(b,a,c){this.i=b;this.out=a;this.p=c;c.ils.push(this)}a.prototype._n=function(b){var a=this.p,e=this.out;e!==c&&a.up(b,this.i)&&(b=p(a.vals),e._n(b))};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.p;b.out!==c&&0===--b.Nc&&b.out._c()};return a}(),D=function(){function a(b){this.type= | ||
"combine";this.insArr=b;this.out=c;this.ils=[];this.Nc=this.Nn=0;this.vals=[]}a.prototype.up=function(b,a){var g=this.vals[a];g=this.Nn?g===c?--this.Nn:this.Nn:0;this.vals[a]=b;return 0===g};a.prototype._start=function(b){this.out=b;var a=this.insArr,e=this.Nc=this.Nn=a.length,d=this.vals=Array(e);if(0===e)b._n([]),b._c();else for(var f=0;f<e;f++)d[f]=c,a[f]._add(new C(f,b,this))};a.prototype._stop=function(){for(var b=this.insArr,a=b.length,e=this.ils,d=0;d<a;d++)b[d]._remove(e[d]);this.out=c;this.ils= | ||
[];this.vals=[]};return a}(),E=function(){function a(b){this.type="fromArray";this.a=b}a.prototype._start=function(b){for(var a=this.a,c=0,d=a.length;c<d;c++)b._n(a[c]);b._c()};a.prototype._stop=function(){};return a}(),F=function(){function a(b){this.type="fromPromise";this.on=!1;this.p=b}a.prototype._start=function(b){var a=this;this.on=!0;this.p.then(function(g){a.on&&(b._n(g),b._c())},function(a){b._e(a)}).then(d,function(b){setTimeout(function(){throw b;})})};a.prototype._stop=function(){this.on= | ||
!1};return a}(),G=function(){function a(b){this.type="periodic";this.period=b;this.intervalID=-1;this.i=0}a.prototype._start=function(b){var a=this;this.intervalID=setInterval(function(){b._n(a.i++)},this.period)};a.prototype._stop=function(){-1!==this.intervalID&&clearInterval(this.intervalID);this.intervalID=-1;this.i=0};return a}(),H=function(){function a(b,a){this.type="debug";this.ins=b;this.out=c;this.s=d;this.l="";"string"===typeof a?this.l=a:"function"===typeof a&&(this.s=a)}a.prototype._start= | ||
function(b){this.out=b;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;if(a!==c){var e=this.s,f=this.l;if(e!==d)try{e(b)}catch(x){a._e(x)}else f?console.log(f+":",b):console.log(b);a._n(b)}};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),I=function(){function a(b,a){this.type="drop";this.ins=a;this.out=c;this.max=b;this.dropped=0}a.prototype._start= | ||
function(b){this.out=b;this.dropped=0;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;a!==c&&this.dropped++>=this.max&&a._n(b)};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),J=function(){function a(b,a){this.out=b;this.op=a}a.prototype._n=function(){this.op.end()};a.prototype._e=function(b){this.out._e(b)};a.prototype._c=function(){this.op.end()}; | ||
return a}(),K=function(){function a(b,a){this.type="endWhen";this.ins=a;this.out=c;this.o=b;this.oil=r}a.prototype._start=function(b){this.out=b;this.o._add(this.oil=new J(b,this));this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.o._remove(this.oil);this.out=c;this.oil=r};a.prototype.end=function(){var b=this.out;b!==c&&b._c()};a.prototype._n=function(b){var a=this.out;a!==c&&a._n(b)};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){this.end()}; | ||
return a}(),w=function(){function a(b,a){this.type="filter";this.ins=a;this.out=c;this.f=b}a.prototype._start=function(b){this.out=b;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;if(a!==c){var e=n(this,b,a);e!==c&&e&&a._n(b)}};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),L=function(){function a(b,a){this.out=b;this.op=a}a.prototype._n=function(b){this.out._n(b)}; | ||
a.prototype._e=function(b){this.out._e(b)};a.prototype._c=function(){this.op.inner=c;this.op.less()};return a}(),M=function(){function a(b){this.type="flatten";this.ins=b;this.out=c;this.open=!0;this.inner=c;this.il=r}a.prototype._start=function(b){this.out=b;this.open=!0;this.inner=c;this.il=r;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.inner!==c&&this.inner._remove(this.il);this.out=c;this.open=!0;this.inner=c;this.il=r};a.prototype.less=function(){var b=this.out; | ||
b!==c&&(this.open||this.inner!==c||b._c())};a.prototype._n=function(b){var a=this.out;if(a!==c){var e=this.inner,d=this.il;e!==c&&d!==r&&e._remove(d);(this.inner=b)._add(this.il=new L(a,this))}};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){this.open=!1;this.less()};return a}(),N=function(){function a(b,a,e){var g=this;this.type="fold";this.ins=e;this.out=c;this.f=function(a){return b(g.acc,a)};this.acc=this.seed=a}a.prototype._start=function(b){this.out=b;this.acc= | ||
this.seed;b._n(this.acc);this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c;this.acc=this.seed};a.prototype._n=function(b){var a=this.out;a!==c&&(b=n(this,b,a),b!==c&&a._n(this.acc=b))};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),O=function(){function a(b){this.type="last";this.ins=b;this.out=c;this.has=!1;this.val=c}a.prototype._start=function(b){this.out=b;this.has=!1;this.ins._add(this)}; | ||
a.prototype._stop=function(){this.ins._remove(this);this.val=this.out=c};a.prototype._n=function(b){this.has=!0;this.val=b};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&(this.has?(b._n(this.val),b._c()):b._e(Error("last() failed because input stream completed")))};return a}(),P=function(){function a(b,a){this.type="map";this.ins=a;this.out=c;this.f=b}a.prototype._start=function(b){this.out=b;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this); | ||
this.out=c};a.prototype._n=function(b){var a=this.out;a!==c&&(b=n(this,b,a),b!==c&&a._n(b))};a.prototype._e=function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),Q=function(){function a(b){this.type="remember";this.ins=b;this.out=c}a.prototype._start=function(b){this.out=b;this.ins._add(b)};a.prototype._stop=function(){this.ins._remove(this.out);this.out=c};return a}(),R=function(){function a(b,a){this.type="replaceError";this.ins=a;this.out= | ||
c;this.f=b}a.prototype._start=function(b){this.out=b;this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;a!==c&&a._n(b)};a.prototype._e=function(b){var a=this.out;if(a!==c)try{this.ins._remove(this),(this.ins=this.f(b))._add(this)}catch(e){a._e(e)}};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}(),S=function(){function a(b,a){this.type="startWith";this.ins=b;this.out=c;this.val=a}a.prototype._start=function(b){this.out= | ||
b;this.out._n(this.val);this.ins._add(b)};a.prototype._stop=function(){this.ins._remove(this.out);this.out=c};return a}(),T=function(){function a(b,a){this.type="take";this.ins=a;this.out=c;this.max=b;this.taken=0}a.prototype._start=function(b){this.out=b;this.taken=0;0>=this.max?b._c():this.ins._add(this)};a.prototype._stop=function(){this.ins._remove(this);this.out=c};a.prototype._n=function(b){var a=this.out;if(a!==c){var e=++this.taken;e<this.max?a._n(b):e===this.max&&(a._n(b),a._c())}};a.prototype._e= | ||
function(b){var a=this.out;a!==c&&a._e(b)};a.prototype._c=function(){var b=this.out;b!==c&&b._c()};return a}();f=function(){function a(b){this._prod=b||c;this._ils=[];this._dl=this._stopID=c;this._d=!1;this._target=null;this._err=c}a.prototype._n=function(b){var a=this._ils,c=a.length;this._d&&this._dl._n(b);if(1==c)a[0]._n(b);else if(0!=c){a=p(a);for(var d=0;d<c;d++)a[d]._n(b)}};a.prototype._e=function(b){if(this._err===c){this._err=b;var a=this._ils,e=a.length;this._x();this._d&&this._dl._e(b); | ||
if(1==e)a[0]._e(b);else{if(0==e)return;a=p(a);for(var d=0;d<e;d++)a[d]._e(b)}if(!this._d&&0==e)throw this._err;}};a.prototype._c=function(){var b=this._ils,a=b.length;this._x();this._d&&this._dl._c();if(1==a)b[0]._c();else if(0!=a){b=p(b);for(var c=0;c<a;c++)b[c]._c()}};a.prototype._x=function(){0!==this._ils.length&&(this._prod!==c&&this._prod._stop(),this._err=c,this._ils=[])};a.prototype._stopNow=function(){this._prod._stop();this._stopID=this._err=c};a.prototype._add=function(b){var a=this._target; | ||
if(a)return a._add(b);a=this._ils;a.push(b);1<a.length||(this._stopID!==c?(clearTimeout(this._stopID),this._stopID=c):(b=this._prod,b!==c&&b._start(this)))};a.prototype._remove=function(b){var a=this,e=this._target;if(e)return e._remove(b);e=this._ils;b=e.indexOf(b);-1<b&&(e.splice(b,1),this._prod!==c&&0>=e.length?(this._err=c,this._stopID=setTimeout(function(){return a._stopNow()})):1===e.length&&this._pruneCycles())};a.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])}; | ||
a.prototype._hasNoSinks=function(b,a){if(-1!==a.indexOf(b)||b.out===this)return!0;if(b.out&&b.out!==c)return this._hasNoSinks(b.out,a.concat(b));if(b._ils){for(var g=0,d=b._ils.length;g<d;g++)if(!this._hasNoSinks(b._ils[g],a.concat(b)))return!1;return!0}return!1};a.prototype.ctor=function(){return this instanceof q?q:a};a.prototype.addListener=function(b){b._n=b.next||d;b._e=b.error||d;b._c=b.complete||d;this._add(b)};a.prototype.removeListener=function(b){this._remove(b)};a.prototype.subscribe=function(b){this.addListener(b); | ||
return new y(this,b)};a.prototype[t.default]=function(){return this};a.create=function(b){if(b){if("function"!==typeof b.start||"function"!==typeof b.stop)throw Error("producer requires both start and stop functions");l(b)}return new a(b)};a.createWithMemory=function(b){b&&l(b);return new q(b)};a.never=function(){return new a({_start:d,_stop:d})};a.empty=function(){return new a({_start:function(b){b._c()},_stop:d})};a.throw=function(b){return new a({_start:function(a){a._e(b)},_stop:d})};a.from=function(b){if("function"=== | ||
typeof b[t.default])return a.fromObservable(b);if("function"===typeof b.then)return a.fromPromise(b);if(Array.isArray(b))return a.fromArray(b);throw new TypeError("Type of input to from() must be an Array, Promise, or Observable");};a.of=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return a.fromArray(b)};a.fromArray=function(b){return new a(new E(b))};a.fromPromise=function(b){return new a(new F(b))};a.fromObservable=function(b){if(b.endWhen)return b;b="function"===typeof b[t.default]? | ||
b[t.default]():b;return new a(new A(b))};a.periodic=function(b){return new a(new G(b))};a.prototype._map=function(b){return new (this.ctor())(new P(b,this))};a.prototype.map=function(b){return this._map(b)};a.prototype.mapTo=function(b){var a=this.map(function(){return b});a._prod.type="mapTo";return a};a.prototype.filter=function(b){var c=this._prod;return c instanceof w?new a(new w(u(c.f,b),c.ins)):new a(new w(b,this))};a.prototype.take=function(b){return new (this.ctor())(new T(b,this))};a.prototype.drop= | ||
function(b){return new a(new I(b,this))};a.prototype.last=function(){return new a(new O(this))};a.prototype.startWith=function(b){return new q(new S(this,b))};a.prototype.endWhen=function(b){return new (this.ctor())(new K(b,this))};a.prototype.fold=function(b,a){return new q(new N(b,a,this))};a.prototype.replaceError=function(a){return new (this.ctor())(new R(a,this))};a.prototype.flatten=function(){return new a(new M(this))};a.prototype.compose=function(a){return a(this)};a.prototype.remember=function(){return new q(new Q(this))}; | ||
a.prototype.debug=function(a){return new (this.ctor())(new H(this,a))};a.prototype.imitate=function(a){if(a instanceof q)throw Error("A MemoryStream was given to imitate(), but it only supports a Stream. Read more about this restriction here: https://github.com/staltz/xstream#faq");this._target=a;for(var b=this._ils,c=b.length,d=0;d<c;d++)a._add(b[d]);this._ils=[]};a.prototype.shamefullySendNext=function(a){this._n(a)};a.prototype.shamefullySendError=function(a){this._e(a)};a.prototype.shamefullySendComplete= | ||
function(){this._c()};a.prototype.setDebugListener=function(a){a?(this._d=!0,a._n=a.next||d,a._e=a.error||d,a._c=a.complete||d,this._dl=a):(this._d=!1,this._dl=c)};a.merge=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return new a(new B(b))};a.combine=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return new a(new D(b))};return a}();h.Stream=f;var q=function(a){function b(b){b=a.call(this,b)||this;b._has=!1;return b}m(b,a);b.prototype._n=function(b){this._v= | ||
b;this._has=!0;a.prototype._n.call(this,b)};b.prototype._add=function(a){var b=this._target;if(b)return b._add(a);b=this._ils;b.push(a);1<b.length?this._has&&a._n(this._v):this._stopID!==c?(this._has&&a._n(this._v),clearTimeout(this._stopID),this._stopID=c):this._has?a._n(this._v):(a=this._prod,a!==c&&a._start(this))};b.prototype._stopNow=function(){this._has=!1;a.prototype._stopNow.call(this)};b.prototype._x=function(){this._has=!1;a.prototype._x.call(this)};b.prototype.map=function(a){return this._map(a)}; | ||
b.prototype.mapTo=function(b){return a.prototype.mapTo.call(this,b)};b.prototype.take=function(b){return a.prototype.take.call(this,b)};b.prototype.endWhen=function(b){return a.prototype.endWhen.call(this,b)};b.prototype.replaceError=function(b){return a.prototype.replaceError.call(this,b)};b.prototype.remember=function(){return this};b.prototype.debug=function(b){return a.prototype.debug.call(this,b)};return b}(f);h.MemoryStream=q;h.default=f},{"symbol-observable":2}],2:[function(f,k,h){var d="undefined"!== | ||
typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};Object.defineProperty(h,"__esModule",{value:!0});f=(f=f("./ponyfill.js"))&&f.__esModule?f:{"default":f};k="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof d?d:"undefined"!==typeof k?k:Function("return this")();k=(0,f["default"])(k);h["default"]=k},{"./ponyfill.js":3}],3:[function(f,k,h){Object.defineProperty(h,"__esModule",{value:!0});h["default"]=function(d){var f=d.Symbol; | ||
"function"===typeof f?f.observable?d=f.observable:(d=f("observable"),f.observable=d):d="@@observable";return d}},{}]},{},[1])(1)}); |
@@ -20,3 +20,3 @@ "use strict"; | ||
this.out = null; | ||
this.id = null; | ||
this.clearInterval(); | ||
}; | ||
@@ -105,2 +105,2 @@ DebounceOperator.prototype.clearInterval = function () { | ||
exports.default = debounce; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVib3VuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZXh0cmEvZGVib3VuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrQ0FBOEM7QUFFOUM7SUFNRSwwQkFBbUIsRUFBVSxFQUNWLEdBQWM7UUFEZCxPQUFFLEdBQUYsRUFBRSxDQUFRO1FBQ1YsUUFBRyxHQUFILEdBQUcsQ0FBVztRQU4xQixTQUFJLEdBQUcsVUFBVSxDQUFDO1FBQ2xCLFFBQUcsR0FBYyxJQUFXLENBQUM7UUFDNUIsT0FBRSxHQUFRLElBQUksQ0FBQztRQUNmLE1BQUMsR0FBUSxVQUFFLENBQUM7SUFJcEIsQ0FBQztJQUVELGlDQUFNLEdBQU4sVUFBTyxHQUFjO1FBQ25CLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO1FBQ2YsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDdEIsQ0FBQztJQUVELGdDQUFLLEdBQUw7UUFDRSxJQUFJLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN2QixJQUFJLENBQUMsR0FBRyxHQUFHLElBQVcsQ0FBQztRQUN2QixJQUFJLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQztJQUNqQixDQUFDO0lBRUQsd0NBQWEsR0FBYjtRQUNFLElBQU0sRUFBRSxHQUFHLElBQUksQ0FBQyxFQUFFLENBQUM7UUFDbkIsSUFBSSx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PFQ+IHtcbiAgcmV0dXJuIGZ1bmN0aW9uIGRlYm91bmNlT3BlcmF0b3IoaW5zOiBTdHJlYW08VD4pIHtcbiAgICByZXR1cm4gbmV3IFN0cmVhbTxUPihuZXcgRGVib3VuY2VPcGVyYXRvcihwZXJpb2QsIGlucykpO1xuICB9O1xufVxuIl19 |
@@ -48,2 +48,3 @@ "use strict"; | ||
}, notification.time); | ||
this.tasks.push(id); | ||
}; | ||
@@ -113,2 +114,2 @@ DiagramProducer.prototype._stop = function () { | ||
exports.default = fromDiagram; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbURpYWdyYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZXh0cmEvZnJvbURpYWdyYW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrQ0FBb0U7QUFjcEU7SUFPRSx5QkFBWSxPQUFlLEVBQ2YsR0FBd0I7UUFDbEMsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUMsSUFBSSxFQUFFLENBQUM7UUFDOUIsSUFBSSxDQUFDLFFBQVEsR0FBRyxDQUFDLEdBQUcsSUFBSSxHQUFHLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQztRQUMvRCxJQUFJLENBQUMsUUFBUSxHQUFHLENBQUMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDO1FBQzFELElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxHQUFHLElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUMsQ0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hlIG51bWJlcnMgMTAsIDIwLCAzMCwgNDAuIFRoZSBgb3B0aW9uc2BcbiAqIGFyZ3VtZW50IG1heSBhbHNvIHRha2UgYHRpbWVVbml0YCwgYSBudW1iZXIgdG8gY29uZmlndXJlIGhvdyBtYW55XG4gKiBtaWxsaXNlY29uZHMgZG9lcyBlYWNoIHJlcHJlc2VudHMsIGFuZCBgZXJyb3JWYWx1ZWAsIGEgdmFsdWUgdG8gc2VuZCBvdXQgYXNcbiAqIHRoZSBlcnJvciB3aGljaCBgI2AgcmVwcmVzZW50cy5cbiAqXG4gKiBAZmFjdG9yeSB0cnVlXG4gKiBAcGFyYW0ge3N0cmluZ30gZGlhZ3JhbSBBIHN0cmluZyByZXByZXNlbnRpbmcgYSB0aW1lbGluZSBvZiB2YWx1ZXMsIGVycm9yLFxuICogb3IgY29tcGxldGUgbm90aWZpY2F0aW9ucyB0aGF0IHNob3VsZCBoYXBwZW4gb24gdGhlIG91dHB1dCBzdHJlYW0uXG4gKiBAcGFyYW0gb3B0aW9ucyBBbiBvcHRpb25zIG9iamVjdCB0aGF0IGFsbG93cyB5b3UgdG8gY29uZmlndXJlIHNvbWUgYWRkaXRpb25hbFxuICogZGV0YWlscyBvZiB0aGUgY3JlYXRpb24gb2YgdGhlIHN0cmVhbS5cbiAqIEByZXR1cm4ge1N0cmVhbX1cbiAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gZnJvbURpYWdyYW0oZGlhZ3JhbTogc3RyaW5nLCBvcHRpb25zPzogRnJvbURpYWdyYW1PcHRpb25zKTogU3RyZWFtPGFueT4ge1xuICByZXR1cm4gbmV3IFN0cmVhbTxhbnk+KG5ldyBEaWFncmFtUHJvZHVjZXIoZGlhZ3JhbSwgb3B0aW9ucykpO1xufVxuIl19 |
@@ -75,3 +75,3 @@ declare const NO: {}; | ||
protected _d: boolean; | ||
protected _target: Stream<T>; | ||
protected _target: Stream<T> | null; | ||
protected _err: any; | ||
@@ -78,0 +78,0 @@ constructor(producer?: InternalProducer<T>); |
{ | ||
"name": "xstream", | ||
"version": "11.11.0", | ||
"version": "11.12.0", | ||
"description": "An extremely intuitive, small, and fast functional reactive stream library for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
562596
43
6403