Comparing version 3.2.2 to 3.2.3
# Changelog | ||
## 3.2.3 | ||
- fix: `distinct` operator should not trigger predicate for first value. | ||
## 3.2.2 | ||
@@ -4,0 +7,0 @@ - fix: `subscribe` function proper signature |
@@ -99,7 +99,3 @@ "use strict"; | ||
if (predicate) { | ||
var currentPredicate_1 = function (p, n) { | ||
currentPredicate_1 = predicate; | ||
return true; | ||
}; | ||
ops.distinct(this, latter$, function (p, n) { return currentPredicate_1(p, n); }); | ||
ops.distinct(this, latter$, predicate); | ||
} | ||
@@ -106,0 +102,0 @@ else { |
@@ -99,7 +99,7 @@ "use strict"; | ||
var result = []; | ||
var processedValues = []; | ||
var compared = []; | ||
var subject = new Atom_1.Atom(pushValues[0]); | ||
subject | ||
.filter(function (value) { | ||
processedValues.push(value); | ||
compared.push(value); | ||
return value > 2; | ||
@@ -110,3 +110,3 @@ }) | ||
expect(result).toEqual([1, 3]); | ||
expect(processedValues).toEqual([2, 3]); | ||
expect(compared).toEqual([2, 3]); | ||
}); | ||
@@ -302,14 +302,12 @@ describe('::scan - can scan messages, and reduce output', function () { | ||
var pushValues = [1, 2, 2, 3, ref, ref, 1]; | ||
var processedValues = []; | ||
var receivedValues = []; | ||
var compared = []; | ||
var values = []; | ||
var subject = new Atom_1.Atom(pushValues[0]); | ||
subject | ||
.distinct(function (prev, next) { | ||
processedValues.push([prev, next]); | ||
return (typeof prev !== typeof next); | ||
}) | ||
.subscribe(function (v) { receivedValues.push(v); }); | ||
.distinct(function (prev, next) { return (compared.push([prev, next]), | ||
typeof prev !== typeof next); }) | ||
.subscribe(function (v) { values.push(v); }); | ||
pushValues.slice(1).forEach(function (v) { return subject.next(v); }); | ||
expect(receivedValues).toEqual([1, ref, 1]); | ||
expect(processedValues).toEqual([ | ||
expect(values).toEqual([1, ref, 1]); | ||
expect(compared).toEqual([ | ||
[1, 2], | ||
@@ -316,0 +314,0 @@ [1, 2], |
@@ -50,3 +50,3 @@ "use strict"; | ||
expect(msg + " WILL NOT HAPPEN").toBe(''); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}; | ||
@@ -66,3 +66,3 @@ }; | ||
expect(value).toBe(5); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, fail(done, 'Error sub trigger'), fail(done, 'Completion sub trigger')); | ||
@@ -77,3 +77,3 @@ }); | ||
expect(value).toBe(5); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}; | ||
@@ -89,3 +89,3 @@ var tester = firstValueTester; | ||
expect(err.message).toBe('666'); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -105,3 +105,3 @@ $.error(new Error('666')); | ||
expect({ subscriptionClosed: sub.closed }).toEqual({ subscriptionClosed: true }); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -131,3 +131,3 @@ $.complete(); | ||
expect(result).toEqual(expectedValues); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}; | ||
@@ -168,3 +168,3 @@ $.subscribe(function (value) { | ||
]); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -178,3 +178,3 @@ }); | ||
if (value === 5) | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -187,3 +187,3 @@ $.next(5); | ||
if (value === 5) | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -196,3 +196,3 @@ $.next(function () { return 2; }); | ||
$.subscribe(null, function () { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -204,3 +204,3 @@ $.error(new Error()); | ||
$.subscribe(null, null, function () { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -230,3 +230,3 @@ $.complete(); | ||
expect(values).toEqual([0, 1, 2]); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -253,3 +253,3 @@ }); | ||
expect(values).toEqual([0, 1, 2]); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -256,0 +256,0 @@ }); |
@@ -15,3 +15,3 @@ "use strict"; | ||
it('can perform a job', function (done) { | ||
new Dispatcher_1.Dispatcher().push(function () { return setTimeout(done); }, 0).run(); | ||
new Dispatcher_1.Dispatcher().push(function () { return setTimeout(done, 0); }, 0).run(); | ||
}); | ||
@@ -29,3 +29,3 @@ it('can perform many jobs', function (done) { | ||
expect(result).toEqual(values); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, 0); | ||
@@ -32,0 +32,0 @@ dispatcher.run(); |
@@ -37,7 +37,7 @@ "use strict"; | ||
}; | ||
__decorate([ | ||
Domain_action_1.action | ||
], DerivativeOfDomain.prototype, "test", null); | ||
return DerivativeOfDomain; | ||
}(Domain_1.Domain)); | ||
__decorate([ | ||
Domain_action_1.action | ||
], DerivativeOfDomain.prototype, "test", null); | ||
var subject = new DerivativeOfDomain(); | ||
@@ -50,3 +50,3 @@ DispatcherInstance_1.dispatch(function () { | ||
expect(subject.tested).toBe(true); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, ALL); | ||
@@ -66,7 +66,7 @@ }); | ||
}; | ||
__decorate([ | ||
Domain_action_1.action | ||
], DerivativeOfDomain.prototype, "test", null); | ||
return DerivativeOfDomain; | ||
}(Domain_1.Domain)); | ||
__decorate([ | ||
Domain_action_1.action | ||
], DerivativeOfDomain.prototype, "test", null); | ||
var subject = new DerivativeOfDomain(); | ||
@@ -77,3 +77,3 @@ DispatcherInstance_1.dispatch(function () { | ||
expect(result).toBe(true); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -80,0 +80,0 @@ expect(subject.tested).toBe(false); |
@@ -119,4 +119,5 @@ "use strict"; | ||
expect(v).toBe(expectedValues.shift()); | ||
if (values.length === 3) | ||
setTimeout(done); | ||
if (values.length === 3) { | ||
setTimeout(done, 0); | ||
} | ||
}); | ||
@@ -123,0 +124,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.immview=e():t.immview=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=15)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ATOM=-2]="ATOM",t[t.OBSERVABLE=1]="OBSERVABLE",t[t.ACTION=2]="ACTION",t[t.BUFFER=3]="BUFFER",t[t.EXTERNAL=4]="EXTERNAL",t[t.DIAGNOSE=5]="DIAGNOSE",t[t.ALL=10]="ALL"}(e.DispatcherPriorities||(e.DispatcherPriorities={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),o=n(0),i=new r.Dispatcher;e.dispatcher=i;var s=function(t,e){i.push(t,e),i.run()};e.dispatch=s;var u=function(){return new Promise(function(t){return s(t,o.DispatcherPriorities.ALL)})};e.flush=u;var a=function(t,e){return new Promise(function(n,r){var o,i,u;s(function(){try{i=t(),o=!0}catch(t){u=t,o=!1}},e),s(function(){o?n(i):r(u)},e)})};e.dispatchAndReturn=a},function(t,e,n){"use strict";var r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){this.list=null,this.tableIsRequested=!1}return Object.defineProperty(t.prototype,"isOn",{get:function(){return void 0!==this.list},enumerable:!0,configurable:!0}),t.prototype.on=function(t){if(void 0===t&&(t={}),!window.performance)throw new Error("Performance measurements are not available in this environment");this.options=r({tableDetails:!0,tableSummary:!0,tableClear:!0,timeline:!0},t),this.list=[]},t.prototype.off=function(){this.list=null,this.tableIsRequested=!1},t.prototype.measure=function(t){var e=this;if(this.list){if((this.options.tableDetails||this.options.tableSummary)&&!this.tableIsRequested){this.tableIsRequested=!0;var n=setInterval(function(){if(!e.tableIsRequested||null===e.list||0===e.list.length)return e.tableIsRequested=!1,void clearInterval(n);var t=e.list.splice(0).reduce(function(t,e){for(var n=0,o=t;n<o.length;n++){var i=o[n],s=function(n){if(n["action name"]===e["action name"])return{value:t.map(function(t){return t!==n?t:r({},n,{"duration in ms":n["duration in ms"]+e["duration in ms"],occurences:n.occurences+1})})}}(i);if("object"==typeof s)return s.value}return t.concat([r({},e,{occurences:1})])},[]);e.options.tableClear&&console.clear(),e.options.tableDetails&&console.table(t.map(function(t){return{"action name":t["action name"],duration:t["duration in ms"]+" ms",occurences:t.occurences,"avg duration":t["duration in ms"]/t.occurences+" ms"}}));var o=t.reduce(function(t,e){return t+e["duration in ms"]},0);e.options.tableSummary&&console.table({all:{"duration in ms":o,"est. duration budget":500,"est. duration budget usage":o/500*100+"%"}})},1e3)}this.options.timeline&&window.performance.mark(t+"_start");var o=(this.options.tableDetails||this.options.tableSummary)&&window.performance.now();return function(){(e.options.tableDetails||e.options.tableSummary)&&e.list.push({"action name":t,"duration in ms":window.performance.now()-o}),e.options.timeline&&(window.performance.mark(t+"_end"),window.performance.measure(t,t+"_start",t+"_end"))}}},t}();e.Diagnose=o,e.diagnose=new o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),i=n(4),s=n(7),u="undefined"!=typeof Symbol?Symbol("AtomSymbol"):"AtomSymbol",a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.from(t)},e.from=function(t){if(t[u]){var n=t[u](),r=new e(n.deref());return n.subscribe(r),r.name=this.name+" ✂📋",r}if(t[Symbol.iterator]){for(var o=t[Symbol.iterator](),i=void 0,s=o.next();!1===s.done;s=o.next())i=s.value;var r=new e(i);return t.toString()&&(r.name=t.toString()),r.complete(),r}throw new Error("Atom.from incorrect input")},e.prototype.toPromise=function(){return this.then()},e.prototype.map=function(t){var n=t(this.deref()),r=new e(n),o=!1;return s.map(this,r,function(e){return o?t(e):(o=!0,n)}),r},e.prototype.flatten=function(){var t=new e(this.deref().deref());return s.flatten(this,t),t},e.prototype.scan=function(t,n){var r=new e(n);return s.scan(this,r,t,n),r},e.prototype.filter=function(t){var n=new e(this.deref()),r=function(e){return r=t,!0};return s.filter(this,n,function(t){return r(t)}),n},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new e(this.deref());return s.merge([this].concat(t),r),r},e.prototype.distinct=function(t){var n=new e(this.deref());if(t){var r=function(e,n){return r=t,!0};s.distinct(this,n,function(t,e){return r(t,e)})}else s.distinct(this,n);return n},e.prototype.buffer=function(t){var n=new e([this.deref()]);return s.buffer(this,n,t),n},e.prototype.materialize=function(t){return this},e.prototype.vaporize=function(){var t=new i.Observable;return this.subscribe(t),t},e}(o.BaseAtom);e.Atom=a,a.prototype[u]=function(){return this}},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),i=n(3),s=n(7),u="undefined"!=typeof Symbol?Symbol("ObservableSymbol"):"ObservableSymbol",a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.from(t)},e.from=function(t){if(t[u]){var n=t[u](),r=new e;return n.subscribe(r),r.name=this.name+" ✂📋",r}if(t[Symbol.iterator]){var r=new e(function(e){for(var n=e.next,r=e.error,o=e.complete,i=t[Symbol.iterator](),s=i.next();!1===s.done;s=i.next())s.value instanceof Error?r(s.value):n(s.value);o()});return t.toString()&&(r.name=t.toString()),r}throw new Error("Observable.from incorrect input")},e.fromPromise=function(t){var n=new e(function(e){t.then(e.next,e.error).then(e.complete)});return n.name="Promise",n},e.prototype.startWith=function(t){var n=new e;return n.next(t),this.subscribe(n),n.name=this.name+" ⏹️➕⏹️⏹️⏹️…",n},e.prototype.reemit=function(){var t=new e;return this.hasRef()&&t.next(this.deref()),this.subscribe(t),t.name=this.name+" 📣",t},e.prototype.toPromise=function(){return this.then()},e.prototype.map=function(t){var n=new e;return s.map(this,n,t),n},e.prototype.flatten=function(){var t=new e;return s.flatten(this,t),t},e.prototype.scan=function(t,n){var r=new e;return s.scan(this,r,t,n),r},e.prototype.filter=function(t){var n=new e;return s.filter(this,n,t),n},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new e;return s.merge([this].concat(t),r),r},e.prototype.distinct=function(t){var n=new e;return s.distinct(this,n,t),n},e.prototype.bufferCount=function(t,n){var r=new e;return s.bufferCount(this,r,t,n),r},e.prototype.buffer=function(t){var n=new e;return s.buffer(this,n,t),n},e.prototype.materialize=function(t){var e=new i.Atom(t);return this.subscribe(e),e.name=this.name+" ⚛️",e},e.prototype.vaporize=function(){return this},e}(o.BaseObservable);e.Observable=a,a.prototype[u]=function(){return this}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NO_VALUE={},function(t){t[t.Next=0]="Next",t[t.Error=1]="Error",t[t.Complete=2]="Complete"}(e.MessageTypes||(e.MessageTypes={}))},function(t,e,n){"use strict";function r(t){if("object"!=typeof t[0]||null===t[0]){var e=t,n=e[0],r=e[1],o=e[2];return{start:i,next:n||i,error:r||i,complete:o||i}}var s=t[0];return s.start=s.start||i,s.next=s.next||i,s.error=s.error||i,s.complete=s.complete||i,s}function o(){return++f}function i(){}Object.defineProperty(e,"__esModule",{value:!0});var s=n(2),u=n(5);!function(){Symbol.asyncIterator=Symbol.asyncIterator||Symbol("Symbol.asyncIterator")}();var a=function(){return!0},c=function(){function t(t){this.dispatch=t,this.closed=!1,this.name=o()+"$",this.observers=[],this.awaitingMessages=[]}return t.prototype.ref=function(t){this.deref=function(){return t},this.hasRef=a,this.observers.forEach(function(e){return e.next(t)})},t.prototype.deref=function(){return null},t.prototype.hasRef=function(){return!1},t.prototype.start=function(t){},t.prototype.next=function(t){this.closed||(this.awaitingMessages.push([u.MessageTypes.Next,t]),this.dispatch(this.flush))},t.prototype.error=function(t){this.closed||(this.awaitingMessages.push([u.MessageTypes.Error,t]),this.dispatch(this.flush))},t.prototype.complete=function(){this.closed||(this.awaitingMessages.push([u.MessageTypes.Complete,void 0]),this.dispatch(this.flush))},t.prototype.addSubscription=function(t){if(this.closed)return{unsubscribe:i,closed:!1};this.observers.push(t);var e=this;return{unsubscribe:function(){var n;(n=e.observers.indexOf(t))<0||e.observers.splice(n,1)},get closed(){return-1===e.observers.indexOf(t)}}},t.prototype.swallow=function(t,e){switch(t){case u.MessageTypes.Next:var n=e;if("function"==typeof n){var r=s.diagnose.isOn&&s.diagnose.measure(this.name+" next("+(n.name||"")+")"),o=n(this.deref());r&&r(),this.ref(o)}else this.ref(n);break;case u.MessageTypes.Error:var i=e;this.observers.forEach(function(t){return t.error(i)});break;case u.MessageTypes.Complete:this.closed=!0,this.awaitingMessages.splice(0),this.observers.splice(0).forEach(function(t){return t.complete()})}},t.prototype[Symbol.asyncIterator]=function(){var t=this,e=[],n=[],r=this.subscribe({next:function(t){for(n.push({done:!1,value:t});n.length&&e.length;)e.shift()(n.shift())},complete:function(){for(n.push({done:!0,value:t.deref()});n.length&&e.length;)e.shift()(n.shift());for(;e.length;)e.shift()({done:!0,value:t.deref()})}});return{next:function(){for(var t=new Promise(function(t){e.push(t)});n.length&&e.length;)e.shift()(n.shift());return t},throw:function(e){return r.unsubscribe(),Promise.resolve({done:!0,value:t.deref()})},return:function(){return r.unsubscribe(),Promise.resolve({done:!0,value:t.deref()})}}},t.prototype.then=function(t,e){var n=this;return new Promise(function(r,o){var i;n.subscribe({start:function(t){i=t},next:function(e){i.unsubscribe();try{r(t?t(e):e)}catch(t){o(t)}},error:function(t){i.unsubscribe(),o(e(t))},complete:function(){i.unsubscribe(),o(new Error("no value emitted"))}})})},t.prototype.catch=function(t){return this.then(null,t)},t}();e.Base=c,e.normalizeToObserver=r;var f=0},function(t,e,n){"use strict";function r(){}function o(t,e,n){var r=null;return t.subscribe({start:function(t){r=t,n.start(r)},next:function(t){if(e.closed)return void r.unsubscribe();n.next(t)},error:function(t){if(e.closed)return void r.unsubscribe();n.error(t)},complete:function(){if(e.closed)return void r.unsubscribe();n.complete()}}),r}function i(t,e,n){o(t,e,{start:r,next:function(t){try{var r=h.diagnose.isOn&&h.diagnose.measure("$> "+e.name),o=n(t);r&&r(),e.next(o)}catch(t){e.error(t)}},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" ➡️ "+n.name}function s(t,e){o(t,e,{start:r,next:function(t){t&&t.subscribe(function(t){e.next(t)},function(t){return e.error(t)})},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" 🗜️"}function u(t,e,n,i){var s=i,u=0;o(t,e,{start:r,next:function(t){try{s=n(s,t,u++),e.next(s)}catch(t){e.error(t)}},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" ⤵️ "+n.name}function a(t,e,n){o(t,e,{start:r,next:function(t){try{n(t)&&e.next(t)}catch(t){e.error(t)}},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" 🔎 "+n.name}function c(t,e){for(var n=0,i={start:r,next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){++n===t.length&&e.complete()}},s=0,u=t;s<u.length;s++)o(u[s],e,i);e.name="(📎 "+t.map(function(t){return t.name}).join(",")+" )"}function f(t,e,n){var i,s=!1;o(t,e,{start:r,next:function(t){if(n){if(!n(i,t))return}else if(s&&i===t)return;s=!0,i=t,e.next(t)},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" 🆚 "+(n?n.name?n.name:"(unnamed)":"(reference)")}function p(t,e,n,i){var s=void 0===i?n:i,u=[];o(t,e,{start:r,next:function(t){u.push(t),u.length===n&&(e.next(u.slice()),u=u.splice(s,n-s))},error:function(t){e.error(t)},complete:function(){u.length>n-s&&e.next(u.slice()),e.complete()}}),e.name=t.name+" 💤"+n+","+s}function l(t,e,n){void 0===n&&(n=0);var i=[];o(t,e,{start:r,next:function(t){i=n>0?[t].concat(i).splice(0,n):[t].concat(i),b.dispatch(function(){0!==i.length&&e.next(i.splice(0).reverse())},m.DispatcherPriorities.BUFFER)},error:function(t){e.error(t)},complete:function(){i.length>0&&e.next(i.splice(0).reverse()),e.complete()}}),e.name=t.name+" 💤"}Object.defineProperty(e,"__esModule",{value:!0});var h=n(2),m=n(0),b=n(1);e.map=i,e.flatten=s,e.scan=u,e.filter=a,e.merge=c,e.distinct=f,e.bufferCount=p,e.buffer=l},function(t,e,n){"use strict";function r(t,e){var n={};return o(t,function(t,r){n[r]=e(t,r)}),n}function o(t,e){for(var n in t){if(!Object.prototype.hasOwnProperty.call(t,n))return;e(t[n],n)}}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var u=n(3),a=function(t){function e(e){var n=this,i=[];return n=t.call(this,r(e,function(t,e){return t.deref()}))||this,n.sources=e,n.subs=[],o(e,function(t,e){i.push({key:e,name:t.name}),n.subs.push(t.subscribe(function(t){n.next(function(n){return s({},n,(r={},r[e]=t,r));var r})},function(t){n.error(t)},function(){n.complete()}))}),n.name="{"+i.map(function(t){var e=t.key,n=t.name;return n||n===e?e:e+": "+n}).join(", ")+"}",n}return i(e,t),e.prototype.complete=function(){this.subs.splice(0).forEach(function(t){!t.closed&&t.unsubscribe()}),u.Atom.prototype.complete.call(this)},e}(u.Atom);e.Combine=a},function(t,e,n){"use strict";function r(t,e,n){var r=n.value;n.value=function(){for(var t=this,n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];return i.dispatchAndReturn(function(){var o=s.diagnose.measure("<$ "+(t.name?t.name+".":"")+e),i=r.apply(t,n);return o&&o(),i},o.DispatcherPriorities.ACTION)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),s=n(2);e.action=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2);!function(){Symbol.asyncIterator=Symbol.asyncIterator||Symbol("Symbol.asyncIterator")}();var s=function(){function t(t){if(this.$=t,!t)throw new Error("Domain cannot be created without a (Observable/Atom/Domain) source")}return t.create=function(e,n,s){var u=new t(e);if(u.name=u.$.name+"$!",n)for(var a in n)!function(t){var e=t;if(!Object.prototype.hasOwnProperty.call(n,t))return"continue";u[t]=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o.dispatchAndReturn(function(){var r=i.diagnose.measure("<$ "+(u.name?u.name+".":"")+e),o=n[t].apply(u,s);return r&&r(),o},r.DispatcherPriorities.ACTION)}}(a);if(s)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(u[c]=s[c]);return u},t.prototype.start=function(t){this.$.start(t)},t.prototype.next=function(t){this.$.next(t)},t.prototype.error=function(t){this.$.error(t)},t.prototype.complete=function(){this.$.complete()},Object.defineProperty(t.prototype,"closed",{get:function(){return this.$.closed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"observers",{get:function(){return this.$.observers},enumerable:!0,configurable:!0}),t.prototype.subscribe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(n=this.$).subscribe.apply(n,t);var n},t.prototype.ref=function(t){this.$.ref(t)},t.prototype.deref=function(){return this.$.deref()},t.prototype.hasRef=function(){return this.$.hasRef()},t.prototype.toPromise=function(){return this.$.toPromise()},t.prototype.map=function(t){return this.$.map(t)},t.prototype.flatten=function(){return this.$.flatten()},t.prototype.scan=function(t,e){return this.$.scan(t,e)},t.prototype.filter=function(t){return this.$.filter(t)},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(n=this.$).merge.apply(n,t);var n},t.prototype.distinct=function(t){return this.distinct(t)},t.prototype.buffer=function(t){return this.$.buffer(t)},t.prototype.materialize=function(t){return this.$.materialize(t)},t.prototype.vaporize=function(){return this.$.vaporize()},t.prototype[Symbol.asyncIterator]=function(){return this.$[Symbol.asyncIterator]()},t.prototype.then=function(t,e){return this.$.toPromise().then(t,e)},t}();e.Domain=s},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,u)}a((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(s=i[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(i,n[1])).done)return s;switch(i=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,i,s,u,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),s=function(){function t(t){var e=this;this.messageBox=new i.Observable,this.closed=!1,this.end=new Promise(function(n){return r(e,void 0,void 0,function(){var e;return o(this,function(r){switch(r.label){case 0:return[4,t.call(void 0,this.messageBox)];case 1:return e=r.sent(),this.sub&&!this.sub.closed&&this.sub.unsubscribe(),this.messageBox.closed||this.messageBox.complete(),n(e),[2]}})})})}return t.prototype.start=function(t){this.sub=t},t.prototype.next=function(t){this.messageBox.next(t)},t.prototype.error=function(t){this.messageBox.error(t)},t.prototype.complete=function(){this.messageBox.complete()},t.prototype.then=function(t,e){return this.end.then(t,e)},t}();e.Process=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),s=n(6),u=function(t){return o.dispatch(t,i.DispatcherPriorities.ATOM)},a=function(t){function e(e){var n=t.call(this,u)||this;return n.flush=function(){if(!n.closed&&0!==n.awaitingMessages.length){var t=n.awaitingMessages.shift(),e=t[0],r=t[1];n.swallow(e,r),n.dispatch(n.flush)}},n.ref(e),n}return r(e,t),e.prototype.subscribe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=s.normalizeToObserver(t),r=this.addSubscription(n);return r.closed||(n.start(r),n.next(this.deref())),r},e}(s.Base);e.BaseAtom=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),s=n(5),u=n(6),a=function(){},c=function(t){return o.dispatch(t,i.DispatcherPriorities.OBSERVABLE)},f=function(t){function e(e){var n=t.call(this,c)||this;if(n.cancelSubscriber=a,n.flush=function(){if(!n.closed&&0!==n.awaitingMessages.length&&0!==n.observers.length){var t=n.awaitingMessages.shift(),e=t[0],r=t[1];n.swallow(e,r),n.dispatch(n.flush)}},e&&"string"==typeof e.name&&e.name.length>0&&(n.name=e.name+"$"),e){var r=n;n.cancelSubscriber=e({start:r.start.bind(r),next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r),get closed(){return r.observers.length>0}})||a}return n}return r(e,t),e.prototype.previous=function(){return console.log("Observable#previous is deprecated! Use Observable#hasRef and Observable#deref."),this.hasRef()?this.deref():s.NO_VALUE},e.prototype.complete=function(){this.cancelSubscriber(),this.cancelSubscriber=a,u.Base.prototype.complete.call(this)},e.prototype.subscribe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=u.normalizeToObserver(t),r=this.addSubscription(n);return r.closed||(n.start(r),this.dispatch(this.flush)),r},e}(u.Base);e.BaseObservable=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){var t=this;this.running=!1,this.subsequentCalls=0,this.tasks=[],this.loop=function(){var e=t.findNextTask();if(!e)return t.running=!1,void(t.subsequentCalls=0);t.subsequentCalls>1024&&(t.tooManyCalls(),t.subsequentCalls=0),t.subsequentCalls++,t.execute(e.execute)}}return Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.running},enumerable:!0,configurable:!0}),t.prototype.push=function(t,e){for(var n=0;n<this.tasks.length;n++)if(this.tasks[n].priority>e)return this.tasks.splice(n,0,{execute:t,priority:e}),this;return this.tasks.push({execute:t,priority:e}),this},t.prototype.run=function(){this.running||(this.running=!0,this.loop())},t.prototype.execute=function(t){try{this.next(t,this.loop)}catch(t){console.error(t.stack||t.message||t)}},t.prototype.tooManyCalls=function(){"If you see this, that means your code streamed many subsequent messages.";"This situation might be harmful, as it may introduce serious lag of your app."},t.prototype.findNextTask=function(){return 0===this.tasks.length?null:this.tasks.splice(0,1)[0]},t.prototype.next=function(t,e){t(),e()},t}();e.Dispatcher=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.dispatcher=r.dispatcher,e.flush=r.flush;var o=n(0);e.priorities=o.DispatcherPriorities;var i=n(5);e.NO_VALUE=i.NO_VALUE;var s=n(4);e.Observable=s.Observable;var u=n(3);e.Atom=u.Atom;var a=n(8);e.Combine=a.Combine;var c=n(10);e.Domain=c.Domain;var f=n(11);e.Process=f.Process;var p=n(9);e.action=p.action;var l=n(2);e.diagnose=l.diagnose;var h=function(t,e){void 0===e&&(e=o.DispatcherPriorities.EXTERNAL),r.dispatch(t,e)};e.dispatch=h}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.immview=e():t.immview=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=15)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ATOM=-2]="ATOM",t[t.OBSERVABLE=1]="OBSERVABLE",t[t.ACTION=2]="ACTION",t[t.BUFFER=3]="BUFFER",t[t.EXTERNAL=4]="EXTERNAL",t[t.DIAGNOSE=5]="DIAGNOSE",t[t.ALL=10]="ALL"}(e.DispatcherPriorities||(e.DispatcherPriorities={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),o=n(0),i=new r.Dispatcher;e.dispatcher=i;var s=function(t,e){i.push(t,e),i.run()};e.dispatch=s;var u=function(){return new Promise(function(t){return s(t,o.DispatcherPriorities.ALL)})};e.flush=u;var a=function(t,e){return new Promise(function(n,r){var o,i,u;s(function(){try{i=t(),o=!0}catch(t){u=t,o=!1}},e),s(function(){o?n(i):r(u)},e)})};e.dispatchAndReturn=a},function(t,e,n){"use strict";var r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){this.list=null,this.tableIsRequested=!1}return Object.defineProperty(t.prototype,"isOn",{get:function(){return void 0!==this.list},enumerable:!0,configurable:!0}),t.prototype.on=function(t){if(void 0===t&&(t={}),!window.performance)throw new Error("Performance measurements are not available in this environment");this.options=r({tableDetails:!0,tableSummary:!0,tableClear:!0,timeline:!0},t),this.list=[]},t.prototype.off=function(){this.list=null,this.tableIsRequested=!1},t.prototype.measure=function(t){var e=this;if(this.list){if((this.options.tableDetails||this.options.tableSummary)&&!this.tableIsRequested){this.tableIsRequested=!0;var n=setInterval(function(){if(!e.tableIsRequested||null===e.list||0===e.list.length)return e.tableIsRequested=!1,void clearInterval(n);var t=e.list.splice(0).reduce(function(t,e){for(var n=0,o=t;n<o.length;n++){var i=o[n],s=function(n){if(n["action name"]===e["action name"])return{value:t.map(function(t){return t!==n?t:r({},n,{"duration in ms":n["duration in ms"]+e["duration in ms"],occurences:n.occurences+1})})}}(i);if("object"==typeof s)return s.value}return t.concat([r({},e,{occurences:1})])},[]);e.options.tableClear&&console.clear(),e.options.tableDetails&&console.table(t.map(function(t){return{"action name":t["action name"],duration:t["duration in ms"]+" ms",occurences:t.occurences,"avg duration":t["duration in ms"]/t.occurences+" ms"}}));var o=t.reduce(function(t,e){return t+e["duration in ms"]},0);e.options.tableSummary&&console.table({all:{"duration in ms":o,"est. duration budget":500,"est. duration budget usage":o/500*100+"%"}})},1e3)}this.options.timeline&&window.performance.mark(t+"_start");var o=(this.options.tableDetails||this.options.tableSummary)&&window.performance.now();return function(){(e.options.tableDetails||e.options.tableSummary)&&e.list.push({"action name":t,"duration in ms":window.performance.now()-o}),e.options.timeline&&(window.performance.mark(t+"_end"),window.performance.measure(t,t+"_start",t+"_end"))}}},t}();e.Diagnose=o,e.diagnose=new o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),i=n(4),s=n(7),u="undefined"!=typeof Symbol?Symbol("AtomSymbol"):"AtomSymbol",a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.from(t)},e.from=function(t){if(t[u]){var n=t[u](),r=new e(n.deref());return n.subscribe(r),r.name=this.name+" ✂📋",r}if(t[Symbol.iterator]){for(var o=t[Symbol.iterator](),i=void 0,s=o.next();!1===s.done;s=o.next())i=s.value;var r=new e(i);return t.toString()&&(r.name=t.toString()),r.complete(),r}throw new Error("Atom.from incorrect input")},e.prototype.toPromise=function(){return this.then()},e.prototype.map=function(t){var n=t(this.deref()),r=new e(n),o=!1;return s.map(this,r,function(e){return o?t(e):(o=!0,n)}),r},e.prototype.flatten=function(){var t=new e(this.deref().deref());return s.flatten(this,t),t},e.prototype.scan=function(t,n){var r=new e(n);return s.scan(this,r,t,n),r},e.prototype.filter=function(t){var n=new e(this.deref()),r=function(e){return r=t,!0};return s.filter(this,n,function(t){return r(t)}),n},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new e(this.deref());return s.merge([this].concat(t),r),r},e.prototype.distinct=function(t){var n=new e(this.deref());return t?s.distinct(this,n,t):s.distinct(this,n),n},e.prototype.buffer=function(t){var n=new e([this.deref()]);return s.buffer(this,n,t),n},e.prototype.materialize=function(t){return this},e.prototype.vaporize=function(){var t=new i.Observable;return this.subscribe(t),t},e}(o.BaseAtom);e.Atom=a,a.prototype[u]=function(){return this}},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),i=n(3),s=n(7),u="undefined"!=typeof Symbol?Symbol("ObservableSymbol"):"ObservableSymbol",a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.from(t)},e.from=function(t){if(t[u]){var n=t[u](),r=new e;return n.subscribe(r),r.name=this.name+" ✂📋",r}if(t[Symbol.iterator]){var r=new e(function(e){for(var n=e.next,r=e.error,o=e.complete,i=t[Symbol.iterator](),s=i.next();!1===s.done;s=i.next())s.value instanceof Error?r(s.value):n(s.value);o()});return t.toString()&&(r.name=t.toString()),r}throw new Error("Observable.from incorrect input")},e.fromPromise=function(t){var n=new e(function(e){t.then(e.next,e.error).then(e.complete)});return n.name="Promise",n},e.prototype.startWith=function(t){var n=new e;return n.next(t),this.subscribe(n),n.name=this.name+" ⏹️➕⏹️⏹️⏹️…",n},e.prototype.reemit=function(){var t=new e;return this.hasRef()&&t.next(this.deref()),this.subscribe(t),t.name=this.name+" 📣",t},e.prototype.toPromise=function(){return this.then()},e.prototype.map=function(t){var n=new e;return s.map(this,n,t),n},e.prototype.flatten=function(){var t=new e;return s.flatten(this,t),t},e.prototype.scan=function(t,n){var r=new e;return s.scan(this,r,t,n),r},e.prototype.filter=function(t){var n=new e;return s.filter(this,n,t),n},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new e;return s.merge([this].concat(t),r),r},e.prototype.distinct=function(t){var n=new e;return s.distinct(this,n,t),n},e.prototype.bufferCount=function(t,n){var r=new e;return s.bufferCount(this,r,t,n),r},e.prototype.buffer=function(t){var n=new e;return s.buffer(this,n,t),n},e.prototype.materialize=function(t){var e=new i.Atom(t);return this.subscribe(e),e.name=this.name+" ⚛️",e},e.prototype.vaporize=function(){return this},e}(o.BaseObservable);e.Observable=a,a.prototype[u]=function(){return this}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NO_VALUE={},function(t){t[t.Next=0]="Next",t[t.Error=1]="Error",t[t.Complete=2]="Complete"}(e.MessageTypes||(e.MessageTypes={}))},function(t,e,n){"use strict";function r(t){if("object"!=typeof t[0]||null===t[0]){var e=t,n=e[0],r=e[1],o=e[2];return{start:i,next:n||i,error:r||i,complete:o||i}}var s=t[0];return s.start=s.start||i,s.next=s.next||i,s.error=s.error||i,s.complete=s.complete||i,s}function o(){return++f}function i(){}Object.defineProperty(e,"__esModule",{value:!0});var s=n(2),u=n(5);!function(){Symbol.asyncIterator=Symbol.asyncIterator||Symbol("Symbol.asyncIterator")}();var a=function(){return!0},c=function(){function t(t){this.dispatch=t,this.closed=!1,this.name=o()+"$",this.observers=[],this.awaitingMessages=[]}return t.prototype.ref=function(t){this.deref=function(){return t},this.hasRef=a,this.observers.forEach(function(e){return e.next(t)})},t.prototype.deref=function(){return null},t.prototype.hasRef=function(){return!1},t.prototype.start=function(t){},t.prototype.next=function(t){this.closed||(this.awaitingMessages.push([u.MessageTypes.Next,t]),this.dispatch(this.flush))},t.prototype.error=function(t){this.closed||(this.awaitingMessages.push([u.MessageTypes.Error,t]),this.dispatch(this.flush))},t.prototype.complete=function(){this.closed||(this.awaitingMessages.push([u.MessageTypes.Complete,void 0]),this.dispatch(this.flush))},t.prototype.addSubscription=function(t){if(this.closed)return{unsubscribe:i,closed:!1};this.observers.push(t);var e=this;return{unsubscribe:function(){var n;(n=e.observers.indexOf(t))<0||e.observers.splice(n,1)},get closed(){return-1===e.observers.indexOf(t)}}},t.prototype.swallow=function(t,e){switch(t){case u.MessageTypes.Next:var n=e;if("function"==typeof n){var r=s.diagnose.isOn&&s.diagnose.measure(this.name+" next("+(n.name||"")+")"),o=n(this.deref());r&&r(),this.ref(o)}else this.ref(n);break;case u.MessageTypes.Error:var i=e;this.observers.forEach(function(t){return t.error(i)});break;case u.MessageTypes.Complete:this.closed=!0,this.awaitingMessages.splice(0),this.observers.splice(0).forEach(function(t){return t.complete()})}},t.prototype[Symbol.asyncIterator]=function(){var t=this,e=[],n=[],r=this.subscribe({next:function(t){for(n.push({done:!1,value:t});n.length&&e.length;)e.shift()(n.shift())},complete:function(){for(n.push({done:!0,value:t.deref()});n.length&&e.length;)e.shift()(n.shift());for(;e.length;)e.shift()({done:!0,value:t.deref()})}});return{next:function(){for(var t=new Promise(function(t){e.push(t)});n.length&&e.length;)e.shift()(n.shift());return t},throw:function(e){return r.unsubscribe(),Promise.resolve({done:!0,value:t.deref()})},return:function(){return r.unsubscribe(),Promise.resolve({done:!0,value:t.deref()})}}},t.prototype.then=function(t,e){var n=this;return new Promise(function(r,o){var i;n.subscribe({start:function(t){i=t},next:function(e){i.unsubscribe();try{r(t?t(e):e)}catch(t){o(t)}},error:function(t){i.unsubscribe(),o(e(t))},complete:function(){i.unsubscribe(),o(new Error("no value emitted"))}})})},t.prototype.catch=function(t){return this.then(null,t)},t}();e.Base=c,e.normalizeToObserver=r;var f=0},function(t,e,n){"use strict";function r(){}function o(t,e,n){var r=null;return t.subscribe({start:function(t){r=t,n.start(r)},next:function(t){if(e.closed)return void r.unsubscribe();n.next(t)},error:function(t){if(e.closed)return void r.unsubscribe();n.error(t)},complete:function(){if(e.closed)return void r.unsubscribe();n.complete()}}),r}function i(t,e,n){o(t,e,{start:r,next:function(t){try{var r=h.diagnose.isOn&&h.diagnose.measure("$> "+e.name),o=n(t);r&&r(),e.next(o)}catch(t){e.error(t)}},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" ➡️ "+n.name}function s(t,e){o(t,e,{start:r,next:function(t){t&&t.subscribe(function(t){e.next(t)},function(t){return e.error(t)})},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" 🗜️"}function u(t,e,n,i){var s=i,u=0;o(t,e,{start:r,next:function(t){try{s=n(s,t,u++),e.next(s)}catch(t){e.error(t)}},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" ⤵️ "+n.name}function a(t,e,n){o(t,e,{start:r,next:function(t){try{n(t)&&e.next(t)}catch(t){e.error(t)}},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" 🔎 "+n.name}function c(t,e){for(var n=0,i={start:r,next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){++n===t.length&&e.complete()}},s=0,u=t;s<u.length;s++)o(u[s],e,i);e.name="(📎 "+t.map(function(t){return t.name}).join(",")+" )"}function f(t,e,n){var i,s=!1;o(t,e,{start:r,next:function(t){if(s)if(n){if(!n(i,t))return}else if(i===t)return;s=!0,i=t,e.next(t)},error:function(t){e.error(t)},complete:function(){e.complete()}}),e.name=t.name+" 🆚 "+(n?n.name?n.name:"(unnamed)":"(reference)")}function p(t,e,n,i){var s=void 0===i?n:i,u=[];o(t,e,{start:r,next:function(t){u.push(t),u.length===n&&(e.next(u.slice()),u=u.splice(s,n-s))},error:function(t){e.error(t)},complete:function(){u.length>n-s&&e.next(u.slice()),e.complete()}}),e.name=t.name+" 💤"+n+","+s}function l(t,e,n){void 0===n&&(n=0);var i=[];o(t,e,{start:r,next:function(t){i=n>0?[t].concat(i).splice(0,n):[t].concat(i),b.dispatch(function(){0!==i.length&&e.next(i.splice(0).reverse())},m.DispatcherPriorities.BUFFER)},error:function(t){e.error(t)},complete:function(){i.length>0&&e.next(i.splice(0).reverse()),e.complete()}}),e.name=t.name+" 💤"}Object.defineProperty(e,"__esModule",{value:!0});var h=n(2),m=n(0),b=n(1);e.map=i,e.flatten=s,e.scan=u,e.filter=a,e.merge=c,e.distinct=f,e.bufferCount=p,e.buffer=l},function(t,e,n){"use strict";function r(t,e){var n={};return o(t,function(t,r){n[r]=e(t,r)}),n}function o(t,e){for(var n in t){if(!Object.prototype.hasOwnProperty.call(t,n))return;e(t[n],n)}}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var u=n(3),a=function(t){function e(e){var n=this,i=[];return n=t.call(this,r(e,function(t,e){return t.deref()}))||this,n.sources=e,n.subs=[],o(e,function(t,e){i.push({key:e,name:t.name}),n.subs.push(t.subscribe(function(t){n.next(function(n){return s({},n,(r={},r[e]=t,r));var r})},function(t){n.error(t)},function(){n.complete()}))}),n.name="{"+i.map(function(t){var e=t.key,n=t.name;return n||n===e?e:e+": "+n}).join(", ")+"}",n}return i(e,t),e.prototype.complete=function(){this.subs.splice(0).forEach(function(t){!t.closed&&t.unsubscribe()}),u.Atom.prototype.complete.call(this)},e}(u.Atom);e.Combine=a},function(t,e,n){"use strict";function r(t,e,n){var r=n.value;n.value=function(){for(var t=this,n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];return i.dispatchAndReturn(function(){var o=s.diagnose.measure("<$ "+(t.name?t.name+".":"")+e),i=r.apply(t,n);return o&&o(),i},o.DispatcherPriorities.ACTION)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),s=n(2);e.action=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2);!function(){Symbol.asyncIterator=Symbol.asyncIterator||Symbol("Symbol.asyncIterator")}();var s=function(){function t(t){if(this.$=t,!t)throw new Error("Domain cannot be created without a (Observable/Atom/Domain) source")}return t.create=function(e,n,s){var u=new t(e);if(u.name=u.$.name+"$!",n)for(var a in n)!function(t){var e=t;if(!Object.prototype.hasOwnProperty.call(n,t))return"continue";u[t]=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o.dispatchAndReturn(function(){var r=i.diagnose.measure("<$ "+(u.name?u.name+".":"")+e),o=n[t].apply(u,s);return r&&r(),o},r.DispatcherPriorities.ACTION)}}(a);if(s)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(u[c]=s[c]);return u},t.prototype.start=function(t){this.$.start(t)},t.prototype.next=function(t){this.$.next(t)},t.prototype.error=function(t){this.$.error(t)},t.prototype.complete=function(){this.$.complete()},Object.defineProperty(t.prototype,"closed",{get:function(){return this.$.closed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"observers",{get:function(){return this.$.observers},enumerable:!0,configurable:!0}),t.prototype.subscribe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(n=this.$).subscribe.apply(n,t);var n},t.prototype.ref=function(t){this.$.ref(t)},t.prototype.deref=function(){return this.$.deref()},t.prototype.hasRef=function(){return this.$.hasRef()},t.prototype.toPromise=function(){return this.$.toPromise()},t.prototype.map=function(t){return this.$.map(t)},t.prototype.flatten=function(){return this.$.flatten()},t.prototype.scan=function(t,e){return this.$.scan(t,e)},t.prototype.filter=function(t){return this.$.filter(t)},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(n=this.$).merge.apply(n,t);var n},t.prototype.distinct=function(t){return this.distinct(t)},t.prototype.buffer=function(t){return this.$.buffer(t)},t.prototype.materialize=function(t){return this.$.materialize(t)},t.prototype.vaporize=function(){return this.$.vaporize()},t.prototype[Symbol.asyncIterator]=function(){return this.$[Symbol.asyncIterator]()},t.prototype.then=function(t,e){return this.$.toPromise().then(t,e)},t}();e.Domain=s},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,u)}a((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(s=i[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(i,n[1])).done)return s;switch(i=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,i,s,u,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),s=function(){function t(t){var e=this;this.messageBox=new i.Observable,this.closed=!1,this.end=new Promise(function(n){return r(e,void 0,void 0,function(){var e;return o(this,function(r){switch(r.label){case 0:return[4,t.call(void 0,this.messageBox)];case 1:return e=r.sent(),this.sub&&!this.sub.closed&&this.sub.unsubscribe(),this.messageBox.closed||this.messageBox.complete(),n(e),[2]}})})})}return t.prototype.start=function(t){this.sub=t},t.prototype.next=function(t){this.messageBox.next(t)},t.prototype.error=function(t){this.messageBox.error(t)},t.prototype.complete=function(){this.messageBox.complete()},t.prototype.then=function(t,e){return this.end.then(t,e)},t}();e.Process=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),s=n(6),u=function(t){return o.dispatch(t,i.DispatcherPriorities.ATOM)},a=function(t){function e(e){var n=t.call(this,u)||this;return n.flush=function(){if(!n.closed&&0!==n.awaitingMessages.length){var t=n.awaitingMessages.shift(),e=t[0],r=t[1];n.swallow(e,r),n.dispatch(n.flush)}},n.ref(e),n}return r(e,t),e.prototype.subscribe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=s.normalizeToObserver(t),r=this.addSubscription(n);return r.closed||(n.start(r),n.next(this.deref())),r},e}(s.Base);e.BaseAtom=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),s=n(5),u=n(6),a=function(){},c=function(t){return o.dispatch(t,i.DispatcherPriorities.OBSERVABLE)},f=function(t){function e(e){var n=t.call(this,c)||this;if(n.cancelSubscriber=a,n.flush=function(){if(!n.closed&&0!==n.awaitingMessages.length&&0!==n.observers.length){var t=n.awaitingMessages.shift(),e=t[0],r=t[1];n.swallow(e,r),n.dispatch(n.flush)}},e&&"string"==typeof e.name&&e.name.length>0&&(n.name=e.name+"$"),e){var r=n;n.cancelSubscriber=e({start:r.start.bind(r),next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r),get closed(){return r.observers.length>0}})||a}return n}return r(e,t),e.prototype.previous=function(){return console.log("Observable#previous is deprecated! Use Observable#hasRef and Observable#deref."),this.hasRef()?this.deref():s.NO_VALUE},e.prototype.complete=function(){this.cancelSubscriber(),this.cancelSubscriber=a,u.Base.prototype.complete.call(this)},e.prototype.subscribe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=u.normalizeToObserver(t),r=this.addSubscription(n);return r.closed||(n.start(r),this.dispatch(this.flush)),r},e}(u.Base);e.BaseObservable=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){var t=this;this.running=!1,this.subsequentCalls=0,this.tasks=[],this.loop=function(){var e=t.findNextTask();if(!e)return t.running=!1,void(t.subsequentCalls=0);t.subsequentCalls>1024&&(t.tooManyCalls(),t.subsequentCalls=0),t.subsequentCalls++,t.execute(e.execute)}}return Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.running},enumerable:!0,configurable:!0}),t.prototype.push=function(t,e){for(var n=0;n<this.tasks.length;n++)if(this.tasks[n].priority>e)return this.tasks.splice(n,0,{execute:t,priority:e}),this;return this.tasks.push({execute:t,priority:e}),this},t.prototype.run=function(){this.running||(this.running=!0,this.loop())},t.prototype.execute=function(t){try{this.next(t,this.loop)}catch(t){console.error(t.stack||t.message||t)}},t.prototype.tooManyCalls=function(){"If you see this, that means your code streamed many subsequent messages.";"This situation might be harmful, as it may introduce serious lag of your app."},t.prototype.findNextTask=function(){return 0===this.tasks.length?null:this.tasks.splice(0,1)[0]},t.prototype.next=function(t,e){t(),e()},t}();e.Dispatcher=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.dispatcher=r.dispatcher,e.flush=r.flush;var o=n(0);e.priorities=o.DispatcherPriorities;var i=n(5);e.NO_VALUE=i.NO_VALUE;var s=n(4);e.Observable=s.Observable;var u=n(3);e.Atom=u.Atom;var a=n(8);e.Combine=a.Combine;var c=n(10);e.Domain=c.Domain;var f=n(11);e.Process=f.Process;var p=n(9);e.action=p.action;var l=n(2);e.diagnose=l.diagnose;var h=function(t,e){void 0===e&&(e=o.DispatcherPriorities.EXTERNAL),r.dispatch(t,e)};e.dispatch=h}])}); | ||
//# sourceMappingURL=immview.js.map |
@@ -46,3 +46,3 @@ "use strict"; | ||
expect(msg + " WILL NOT HAPPEN").toBe(''); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}; | ||
@@ -60,3 +60,3 @@ }; | ||
if (result.length === 3) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -73,3 +73,3 @@ }); | ||
if (result.length === 3) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -132,3 +132,3 @@ }); | ||
expect(value).toBe(3); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}); | ||
@@ -145,3 +145,3 @@ }); | ||
if (result.length === 3) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -158,3 +158,3 @@ }); | ||
if (result.length === 3) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -174,3 +174,3 @@ }); | ||
if (result.length === 3) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -189,3 +189,3 @@ }); | ||
expect(result).toEqual(expectedValues); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, 10); | ||
@@ -202,3 +202,3 @@ }); | ||
expect(result).toEqual(expectedValues); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, 10); | ||
@@ -213,3 +213,3 @@ }); | ||
expect(result).toEqual(expectedValues); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, 10); | ||
@@ -224,3 +224,3 @@ }); | ||
expect(result).toEqual(expectedValues); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, 10); | ||
@@ -235,3 +235,3 @@ }); | ||
expect(result).toEqual(expectedValues); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, 10); | ||
@@ -251,3 +251,3 @@ }); | ||
expect(result).toEqual(expectedValues); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, ALL); | ||
@@ -265,3 +265,3 @@ }); | ||
expect(values).toEqual([1, 2]); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, ALL); | ||
@@ -280,3 +280,3 @@ }); | ||
expect(values).toEqual([1, 2]); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, ALL); | ||
@@ -292,3 +292,3 @@ }); | ||
expect(values).toEqual([1, 2, 'complete']); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, ALL); | ||
@@ -303,3 +303,3 @@ }); | ||
expect(values).toEqual([1, 2, 3, 4, 5, 'complete']); | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
}, ALL); | ||
@@ -320,10 +320,24 @@ }); | ||
var values = []; | ||
var compared = []; | ||
var ref = {}; | ||
Observable_1.Observable | ||
.of(1, 2, 2, 3, ref, ref, 1) | ||
.distinct(function (prev, next) { return (typeof prev !== typeof next); }) | ||
.distinct(function (prev, next) { return (compared.push([prev, next]), typeof prev !== typeof next); }) | ||
.subscribe(function (v) { values.push(v); }); | ||
DispatcherInstance_1.dispatch(function () { | ||
expect(values).toEqual([1, ref, 1]); | ||
done(); | ||
try { | ||
expect(values).toEqual([1, ref, 1]); | ||
expect(compared).toEqual([ | ||
[1, 2], | ||
[1, 2], | ||
[1, 3], | ||
[1, ref], | ||
[ref, ref], | ||
[ref, 1] | ||
]); | ||
done(); | ||
} | ||
catch (e) { | ||
done.fail(e); | ||
} | ||
}, ALL); | ||
@@ -341,3 +355,3 @@ }); | ||
if (result.length === 2) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -354,3 +368,3 @@ }); | ||
if (result.length === 2) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -367,3 +381,3 @@ }); | ||
if (result.length === 1) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -380,3 +394,3 @@ }); | ||
if (result.length === 2) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -393,3 +407,3 @@ }); | ||
if (result.length === 2) { | ||
setTimeout(done); | ||
setTimeout(done, 0); | ||
} | ||
@@ -396,0 +410,0 @@ }); |
@@ -140,10 +140,12 @@ "use strict"; | ||
next: function (value) { | ||
if (comparator) { | ||
if (!comparator(last, value)) | ||
return; | ||
if (everPushed) { | ||
if (comparator) { | ||
if (!comparator(last, value)) | ||
return; | ||
} | ||
else { | ||
if (last === value) | ||
return; | ||
} | ||
} | ||
else { | ||
if (everPushed && last === value) | ||
return; | ||
} | ||
everPushed = true; | ||
@@ -150,0 +152,0 @@ last = value; |
{ | ||
"name": "immview", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "", | ||
@@ -17,3 +17,4 @@ "main": "./dist/index.js", | ||
"preversion": "npm run test && npm run build", | ||
"test": "tsc --noEmit && $(npm bin)/tslint --project ./tsconfig.json --config ./tslint.json --format stylish && jest", | ||
"lint": "tslint --project ./tsconfig.json --config ./tslint.json --fix --format stylish", | ||
"test": "tsc --noEmit && npm run lint && jest", | ||
"debug": "node --inspect --debug-brk ./node_modules/.bin/jest -i --runInBand" | ||
@@ -35,3 +36,2 @@ }, | ||
"tslint": "^4.4.2", | ||
"typescript": "^2.3.2", | ||
"uglify-js": "^2.8.23", | ||
@@ -60,3 +60,5 @@ "uglifyjs-webpack-plugin": "^0.4.3", | ||
}, | ||
"dependencies": {} | ||
"dependencies": { | ||
"typescript": "^2.4.0" | ||
} | ||
} |
@@ -7,6 +7,5 @@ { | ||
"lib": [ | ||
"es6", | ||
"dom", | ||
"es6", | ||
"dom.iterable", | ||
"es2015.promise", | ||
"es2015.iterable", | ||
"esnext.asynciterable" | ||
@@ -13,0 +12,0 @@ ], |
{ | ||
"jsRules": { | ||
"class-name": true, | ||
"comment-format": [ | ||
true, | ||
"check-space" | ||
], | ||
"indent": [ | ||
true, | ||
"spaces" | ||
], | ||
"no-duplicate-variable": true, | ||
"no-eval": true, | ||
"no-trailing-whitespace": true, | ||
"no-unsafe-finally": true, | ||
"one-line": [ | ||
true, | ||
"check-open-brace", | ||
"check-whitespace" | ||
], | ||
"quotemark": [ | ||
true, | ||
"single" | ||
], | ||
"semicolon": [ | ||
true, | ||
"never" | ||
], | ||
"triple-equals": [ | ||
true, | ||
"allow-null-check" | ||
], | ||
"variable-name": [ | ||
true, | ||
"ban-keywords" | ||
], | ||
"whitespace": [ | ||
true, | ||
"check-branch", | ||
"check-decl", | ||
"check-operator", | ||
"check-separator", | ||
"check-type" | ||
] | ||
}, | ||
"rules": { | ||
@@ -99,4 +55,5 @@ "class-name": true, | ||
"check-type" | ||
] | ||
], | ||
"prefer-const": true | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
684210
8
88
10501
1
+ Addedtypescript@^2.4.0
+ Addedtypescript@2.9.2(transitive)