@ngrx/effects
Advanced tools
Comparing version 5.0.1 to 5.1.0
@@ -18,3 +18,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { Observable as Observable$1 } from 'rxjs/Observable'; | ||
import { filter as filter$1 } from 'rxjs/operator/filter'; | ||
import { filter } from 'rxjs/operators'; | ||
import { groupBy as groupBy$1 } from 'rxjs/operator/groupBy'; | ||
@@ -24,2 +24,3 @@ import { mergeMap as mergeMap$1 } from 'rxjs/operator/mergeMap'; | ||
import { dematerialize as dematerialize$1 } from 'rxjs/operator/dematerialize'; | ||
import { filter as filter$2 } from 'rxjs/operator/filter'; | ||
import { Subject as Subject$1 } from 'rxjs/Subject'; | ||
@@ -178,3 +179,3 @@ /** | ||
} | ||
return ofType.apply(void 0, allowedTypes)(/** @type {?} */ (this)); | ||
return (ofType.apply(void 0, allowedTypes)(/** @type {?} */ (this))); | ||
}; | ||
@@ -200,5 +201,3 @@ return Actions; | ||
} | ||
return function ofTypeOperator(source$) { | ||
return filter$1.call(source$, function (action) { return allowedTypes.some(function (type) { return type === action.type; }); }); | ||
}; | ||
return filter(function (action) { return allowedTypes.some(function (type) { return type === action.type; }); }); | ||
} | ||
@@ -288,3 +287,3 @@ /** | ||
var _this = this; | ||
return mergeMap$1.call(groupBy$1.call(this, getSourceForInstance), function (source$) { return dematerialize$1.call(filter$1.call(map$1.call(exhaustMap$1.call(source$, resolveEffectSource), function (output) { | ||
return mergeMap$1.call(groupBy$1.call(this, getSourceForInstance), function (source$) { return dematerialize$1.call(filter$2.call(map$1.call(exhaustMap$1.call(source$, resolveEffectSource), function (output) { | ||
verifyOutput(output, _this.errorHandler); | ||
@@ -291,0 +290,0 @@ return output.notification; |
@@ -8,3 +8,3 @@ import { ScannedActionsSubject, Store, StoreFeatureModule, StoreRootModule, compose } from '@ngrx/store'; | ||
import { Observable as Observable$1 } from 'rxjs/Observable'; | ||
import { filter as filter$1 } from 'rxjs/operator/filter'; | ||
import { filter } from 'rxjs/operators'; | ||
import { groupBy as groupBy$1 } from 'rxjs/operator/groupBy'; | ||
@@ -14,2 +14,3 @@ import { mergeMap as mergeMap$1 } from 'rxjs/operator/mergeMap'; | ||
import { dematerialize as dematerialize$1 } from 'rxjs/operator/dematerialize'; | ||
import { filter as filter$2 } from 'rxjs/operator/filter'; | ||
import { Subject as Subject$1 } from 'rxjs/Subject'; | ||
@@ -165,3 +166,3 @@ | ||
ofType(...allowedTypes) { | ||
return ofType(...allowedTypes)(/** @type {?} */ (this)); | ||
return /** @type {?} */ (ofType(...allowedTypes)(/** @type {?} */ (this))); | ||
} | ||
@@ -182,5 +183,3 @@ } | ||
function ofType(...allowedTypes) { | ||
return function ofTypeOperator(source$) { | ||
return filter$1.call(source$, (action) => allowedTypes.some(type => type === action.type)); | ||
}; | ||
return filter((action) => allowedTypes.some(type => type === action.type)); | ||
} | ||
@@ -269,3 +268,3 @@ | ||
toActions() { | ||
return mergeMap$1.call(groupBy$1.call(this, getSourceForInstance), (source$) => dematerialize$1.call(filter$1.call(map$1.call(exhaustMap$1.call(source$, resolveEffectSource), (output) => { | ||
return mergeMap$1.call(groupBy$1.call(this, getSourceForInstance), (source$) => dematerialize$1.call(filter$2.call(map$1.call(exhaustMap$1.call(source$, resolveEffectSource), (output) => { | ||
verifyOutput(output, this.errorHandler); | ||
@@ -272,0 +271,0 @@ return output.notification; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@ngrx/store'), require('rxjs/observable/merge'), require('rxjs/operator/ignoreElements'), require('rxjs/operator/materialize'), require('rxjs/operator/map'), require('@angular/core'), require('rxjs/Observable'), require('rxjs/operator/filter'), require('rxjs/operator/groupBy'), require('rxjs/operator/mergeMap'), require('rxjs/operator/exhaustMap'), require('rxjs/operator/dematerialize'), require('rxjs/Subject')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@ngrx/store', 'rxjs/observable/merge', 'rxjs/operator/ignoreElements', 'rxjs/operator/materialize', 'rxjs/operator/map', '@angular/core', 'rxjs/Observable', 'rxjs/operator/filter', 'rxjs/operator/groupBy', 'rxjs/operator/mergeMap', 'rxjs/operator/exhaustMap', 'rxjs/operator/dematerialize', 'rxjs/Subject'], factory) : | ||
(factory((global.ngrx = global.ngrx || {}, global.ngrx.effects = {}),global.ngrx.store,global.Rx.Observable,global.Rx.Observable.prototype,global.materialize,global.map,global.ng.core,global.Rx,global.Rx.Observable.prototype,global.groupBy,global.mergeMap,global.exhaustMap,global.dematerialize,global.Subject)); | ||
}(this, (function (exports,store,merge,ignoreElements,materialize,map,core,Observable,filter,groupBy,mergeMap,exhaustMap,dematerialize,Subject) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@ngrx/store'), require('rxjs/observable/merge'), require('rxjs/operator/ignoreElements'), require('rxjs/operator/materialize'), require('rxjs/operator/map'), require('@angular/core'), require('rxjs/Observable'), require('rxjs/operators'), require('rxjs/operator/groupBy'), require('rxjs/operator/mergeMap'), require('rxjs/operator/exhaustMap'), require('rxjs/operator/dematerialize'), require('rxjs/operator/filter'), require('rxjs/Subject')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@ngrx/store', 'rxjs/observable/merge', 'rxjs/operator/ignoreElements', 'rxjs/operator/materialize', 'rxjs/operator/map', '@angular/core', 'rxjs/Observable', 'rxjs/operators', 'rxjs/operator/groupBy', 'rxjs/operator/mergeMap', 'rxjs/operator/exhaustMap', 'rxjs/operator/dematerialize', 'rxjs/operator/filter', 'rxjs/Subject'], factory) : | ||
(factory((global.ngrx = global.ngrx || {}, global.ngrx.effects = {}),global.ngrx.store,global.Rx.Observable,global.Rx.Observable.prototype,global.materialize,global.map,global.ng.core,global.Rx,global.operators,global.groupBy,global.mergeMap,global.exhaustMap,global.dematerialize,global.Rx.Observable.prototype,global.Subject)); | ||
}(this, (function (exports,store,merge,ignoreElements,materialize,map,core,Observable,operators,groupBy,mergeMap,exhaustMap,dematerialize,filter$1,Subject) { 'use strict'; | ||
@@ -169,3 +169,3 @@ var __extends = (undefined && undefined.__extends) || (function () { | ||
} | ||
return ofType.apply(void 0, allowedTypes)(/** @type {?} */ (this)); | ||
return (ofType.apply(void 0, allowedTypes)(/** @type {?} */ (this))); | ||
}; | ||
@@ -191,5 +191,3 @@ return Actions; | ||
} | ||
return function ofTypeOperator(source$) { | ||
return filter.filter.call(source$, function (action) { return allowedTypes.some(function (type) { return type === action.type; }); }); | ||
}; | ||
return operators.filter(function (action) { return allowedTypes.some(function (type) { return type === action.type; }); }); | ||
} | ||
@@ -279,3 +277,3 @@ /** | ||
var _this = this; | ||
return mergeMap.mergeMap.call(groupBy.groupBy.call(this, getSourceForInstance), function (source$) { return dematerialize.dematerialize.call(filter.filter.call(map.map.call(exhaustMap.exhaustMap.call(source$, resolveEffectSource), function (output) { | ||
return mergeMap.mergeMap.call(groupBy.groupBy.call(this, getSourceForInstance), function (source$) { return dematerialize.dematerialize.call(filter$1.filter.call(map.map.call(exhaustMap.exhaustMap.call(source$, resolveEffectSource), function (output) { | ||
verifyOutput(output, _this.errorHandler); | ||
@@ -282,0 +280,0 @@ return output.notification; |
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@ngrx/store"),require("rxjs/observable/merge"),require("rxjs/operator/ignoreElements"),require("rxjs/operator/materialize"),require("rxjs/operator/map"),require("@angular/core"),require("rxjs/Observable"),require("rxjs/operator/filter"),require("rxjs/operator/groupBy"),require("rxjs/operator/mergeMap"),require("rxjs/operator/exhaustMap"),require("rxjs/operator/dematerialize"),require("rxjs/Subject")):"function"==typeof define&&define.amd?define(["exports","@ngrx/store","rxjs/observable/merge","rxjs/operator/ignoreElements","rxjs/operator/materialize","rxjs/operator/map","@angular/core","rxjs/Observable","rxjs/operator/filter","rxjs/operator/groupBy","rxjs/operator/mergeMap","rxjs/operator/exhaustMap","rxjs/operator/dematerialize","rxjs/Subject"],r):r((e.ngrx=e.ngrx||{},e.ngrx.effects={}),e.ngrx.store,e.Rx.Observable,e.Rx.Observable.prototype,e.materialize,e.map,e.ng.core,e.Rx,e.Rx.Observable.prototype,e.groupBy,e.mergeMap,e.exhaustMap,e.dematerialize,e.Subject)}(this,function(e,r,t,o,n,c,a,i,u,s,f,p,l,d){"use strict";function y(e){var r=(void 0===e?{dispatch:!0}:e).dispatch;return function(e,t){!function(e,r){var t=e.constructor,o=t.hasOwnProperty(E)?t[E]:Object.defineProperty(t,E,{value:[]})[E];Array.prototype.push.apply(o,r)}(e,[{propertyName:t,dispatch:r}])}}function g(e){return Object.getPrototypeOf(e)}function h(e){var r=g(e).constructor.name,a=O(e).map(function(t){var a=t.propertyName,i=t.dispatch,u="function"==typeof e[a]?e[a]():e[a];if(!1===i)return o.ignoreElements.call(u);var s=n.materialize.call(u);return c.map.call(s,function(t){return{effect:e[a],notification:t,propertyName:a,sourceName:r,sourceInstance:e}})});return t.merge.apply(void 0,a)}function x(e){var r=h(e);return function(e){var r=g(e);return S in r&&"function"==typeof r[S]}(e)?e.ngrxOnRunEffects(r):r}function m(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(r){return u.filter.call(r,function(r){return e.some(function(e){return e===r.type})})}}function v(e,r){!function(e,r){"E"===e.notification.kind&&r.handleError(e.notification.error)}(e,r),function(e,r){if("N"===e.notification.kind){var t=e.notification.value;!function(e){return e&&e.type&&"string"==typeof e.type}(t)&&r.handleError(new Error("Effect "+function(e){var r=e.propertyName,t=e.sourceInstance,o=e.sourceName,n="function"==typeof t[r];return'"'+o+"."+r+(n?"()":"")+'"'}(e)+" dispatched an invalid action: "+t))}}(e,r)}function b(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e}var j=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])};return function(r,t){function o(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}(),E="__@ngrx/effects__",O=r.compose(function(e){return e.constructor[E]||[]},g),S="ngrxOnRunEffects",M=function(e){function r(r){var t=e.call(this)||this;return r&&(t.source=r),t}return j(r,e),r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.ofType=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return m.apply(void 0,e)(this)},r}(i.Observable);M.decorators=[{type:a.Injectable}],M.ctorParameters=function(){return[{type:i.Observable,decorators:[{type:a.Inject,args:[r.ScannedActionsSubject]}]}]};var _=function(e){function r(r){var t=e.call(this)||this;return t.errorHandler=r,t}return j(r,e),r.prototype.addEffects=function(e){this.next(e)},r.prototype.toActions=function(){var e=this;return f.mergeMap.call(s.groupBy.call(this,g),function(r){return l.dematerialize.call(u.filter.call(c.map.call(p.exhaustMap.call(r,x),function(r){return v(r,e.errorHandler),r.notification}),function(e){return"N"===e.kind}))})},r}(d.Subject);_.decorators=[{type:a.Injectable}],_.ctorParameters=function(){return[{type:a.ErrorHandler}]};new a.InjectionToken("ngrx/effects: Immediate Effects");var I=new a.InjectionToken("ngrx/effects: Root Effects"),q=new a.InjectionToken("ngrx/effects: Feature Effects"),N=function(){function e(e,r){this.effectSources=e,this.store=r,this.effectsSubscription=null}return e.prototype.start=function(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))},e.prototype.ngOnDestroy=function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)},e}();N.decorators=[{type:a.Injectable}],N.ctorParameters=function(){return[{type:_},{type:r.Store}]};var P="@ngrx/effects/init",R=function(){function e(e,r,t,o,n,c){this.sources=e,r.start(),o.forEach(function(r){return e.addEffects(r)}),t.dispatch({type:P})}return e.prototype.addEffects=function(e){this.sources.addEffects(e)},e}();R.decorators=[{type:a.NgModule,args:[{}]}],R.ctorParameters=function(){return[{type:_},{type:N},{type:r.Store},{type:Array,decorators:[{type:a.Inject,args:[I]}]},{type:r.StoreRootModule,decorators:[{type:a.Optional}]},{type:r.StoreFeatureModule,decorators:[{type:a.Optional}]}]};var w=function(){return function(e,r,t,o){this.root=e,r.forEach(function(r){return r.forEach(function(r){return e.addEffects(r)})})}}();w.decorators=[{type:a.NgModule,args:[{}]}],w.ctorParameters=function(){return[{type:R},{type:Array,decorators:[{type:a.Inject,args:[q]}]},{type:r.StoreRootModule,decorators:[{type:a.Optional}]},{type:r.StoreFeatureModule,decorators:[{type:a.Optional}]}]};var z=function(){function e(){}return e.forFeature=function(e){return{ngModule:w,providers:[e,{provide:q,multi:!0,deps:e,useFactory:b}]}},e.forRoot=function(e){return{ngModule:R,providers:[N,_,M,e,{provide:I,deps:e,useFactory:b}]}},e}();z.decorators=[{type:a.NgModule,args:[{}]}],z.ctorParameters=function(){return[]},e.Effect=y,e.getEffectsMetadata=function(e){var r={};return O(e).forEach(function(e){var t=e.propertyName,o=e.dispatch;r[t]={dispatch:o}}),r},e.mergeEffects=h,e.Actions=M,e.ofType=m,e.EffectsModule=z,e.EffectSources=_,e.ROOT_EFFECTS_INIT=P,e.ɵc=w,e.ɵa=b,e.ɵb=R,e.ɵf=N,e.ɵe=q,e.ɵd=I,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@ngrx/store"),require("rxjs/observable/merge"),require("rxjs/operator/ignoreElements"),require("rxjs/operator/materialize"),require("rxjs/operator/map"),require("@angular/core"),require("rxjs/Observable"),require("rxjs/operators"),require("rxjs/operator/groupBy"),require("rxjs/operator/mergeMap"),require("rxjs/operator/exhaustMap"),require("rxjs/operator/dematerialize"),require("rxjs/operator/filter"),require("rxjs/Subject")):"function"==typeof define&&define.amd?define(["exports","@ngrx/store","rxjs/observable/merge","rxjs/operator/ignoreElements","rxjs/operator/materialize","rxjs/operator/map","@angular/core","rxjs/Observable","rxjs/operators","rxjs/operator/groupBy","rxjs/operator/mergeMap","rxjs/operator/exhaustMap","rxjs/operator/dematerialize","rxjs/operator/filter","rxjs/Subject"],e):e((r.ngrx=r.ngrx||{},r.ngrx.effects={}),r.ngrx.store,r.Rx.Observable,r.Rx.Observable.prototype,r.materialize,r.map,r.ng.core,r.Rx,r.operators,r.groupBy,r.mergeMap,r.exhaustMap,r.dematerialize,r.Rx.Observable.prototype,r.Subject)}(this,function(r,e,t,o,n,a,c,i,u,s,f,p,l,d,y){"use strict";function g(r){var e=(void 0===r?{dispatch:!0}:r).dispatch;return function(r,t){!function(r,e){var t=r.constructor,o=t.hasOwnProperty(O)?t[O]:Object.defineProperty(t,O,{value:[]})[O];Array.prototype.push.apply(o,e)}(r,[{propertyName:t,dispatch:e}])}}function x(r){return Object.getPrototypeOf(r)}function h(r){var e=x(r).constructor.name,c=S(r).map(function(t){var c=t.propertyName,i=t.dispatch,u="function"==typeof r[c]?r[c]():r[c];if(!1===i)return o.ignoreElements.call(u);var s=n.materialize.call(u);return a.map.call(s,function(t){return{effect:r[c],notification:t,propertyName:c,sourceName:e,sourceInstance:r}})});return t.merge.apply(void 0,c)}function m(r){var e=h(r);return function(r){var e=x(r);return M in e&&"function"==typeof e[M]}(r)?r.ngrxOnRunEffects(e):e}function v(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return u.filter(function(e){return r.some(function(r){return r===e.type})})}function j(r,e){!function(r,e){"E"===r.notification.kind&&e.handleError(r.notification.error)}(r,e),function(r,e){if("N"===r.notification.kind){var t=r.notification.value;!function(r){return r&&r.type&&"string"==typeof r.type}(t)&&e.handleError(new Error("Effect "+function(r){var e=r.propertyName,t=r.sourceInstance,o=r.sourceName,n="function"==typeof t[e];return'"'+o+"."+e+(n?"()":"")+'"'}(r)+" dispatched an invalid action: "+t))}}(r,e)}function b(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return r}var E=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}(),O="__@ngrx/effects__",S=e.compose(function(r){return r.constructor[O]||[]},x),M="ngrxOnRunEffects",_=function(r){function e(e){var t=r.call(this)||this;return e&&(t.source=e),t}return E(e,r),e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.ofType=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return v.apply(void 0,r)(this)},e}(i.Observable);_.decorators=[{type:c.Injectable}],_.ctorParameters=function(){return[{type:i.Observable,decorators:[{type:c.Inject,args:[e.ScannedActionsSubject]}]}]};var q=function(r){function e(e){var t=r.call(this)||this;return t.errorHandler=e,t}return E(e,r),e.prototype.addEffects=function(r){this.next(r)},e.prototype.toActions=function(){var r=this;return f.mergeMap.call(s.groupBy.call(this,x),function(e){return l.dematerialize.call(d.filter.call(a.map.call(p.exhaustMap.call(e,m),function(e){return j(e,r.errorHandler),e.notification}),function(r){return"N"===r.kind}))})},e}(y.Subject);q.decorators=[{type:c.Injectable}],q.ctorParameters=function(){return[{type:c.ErrorHandler}]};new c.InjectionToken("ngrx/effects: Immediate Effects");var I=new c.InjectionToken("ngrx/effects: Root Effects"),N=new c.InjectionToken("ngrx/effects: Feature Effects"),P=function(){function r(r,e){this.effectSources=r,this.store=e,this.effectsSubscription=null}return r.prototype.start=function(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))},r.prototype.ngOnDestroy=function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)},r}();P.decorators=[{type:c.Injectable}],P.ctorParameters=function(){return[{type:q},{type:e.Store}]};var R="@ngrx/effects/init",w=function(){function r(r,e,t,o,n,a){this.sources=r,e.start(),o.forEach(function(e){return r.addEffects(e)}),t.dispatch({type:R})}return r.prototype.addEffects=function(r){this.sources.addEffects(r)},r}();w.decorators=[{type:c.NgModule,args:[{}]}],w.ctorParameters=function(){return[{type:q},{type:P},{type:e.Store},{type:Array,decorators:[{type:c.Inject,args:[I]}]},{type:e.StoreRootModule,decorators:[{type:c.Optional}]},{type:e.StoreFeatureModule,decorators:[{type:c.Optional}]}]};var z=function(){return function(r,e,t,o){this.root=r,e.forEach(function(e){return e.forEach(function(e){return r.addEffects(e)})})}}();z.decorators=[{type:c.NgModule,args:[{}]}],z.ctorParameters=function(){return[{type:w},{type:Array,decorators:[{type:c.Inject,args:[N]}]},{type:e.StoreRootModule,decorators:[{type:c.Optional}]},{type:e.StoreFeatureModule,decorators:[{type:c.Optional}]}]};var A=function(){function r(){}return r.forFeature=function(r){return{ngModule:z,providers:[r,{provide:N,multi:!0,deps:r,useFactory:b}]}},r.forRoot=function(r){return{ngModule:w,providers:[P,q,_,r,{provide:I,deps:r,useFactory:b}]}},r}();A.decorators=[{type:c.NgModule,args:[{}]}],A.ctorParameters=function(){return[]},r.Effect=g,r.getEffectsMetadata=function(r){var e={};return S(r).forEach(function(r){var t=r.propertyName,o=r.dispatch;e[t]={dispatch:o}}),e},r.mergeEffects=h,r.Actions=_,r.ofType=v,r.EffectsModule=A,r.EffectSources=q,r.ROOT_EFFECTS_INIT=R,r.ɵc=z,r.ɵa=b,r.ɵb=w,r.ɵf=P,r.ɵe=N,r.ɵd=I,Object.defineProperty(r,"__esModule",{value:!0})}); |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"function","parameters":["instances"],"value":{"__symbolic":"reference","name":"instances"}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵd"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreRootModule"},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreFeatureModule"}]}],"addEffects":[{"__symbolic":"method"}]}},"Effect":{"__symbolic":"function","parameters":["dispatch"],"defaults":[{"dispatch":true}],"value":{"__symbolic":"error","message":"Function call not supported","line":28,"character":9,"module":"./src/effects_metadata"}},"EffectsMetadata":{"__symbolic":"interface"},"getEffectsMetadata":{"__symbolic":"function"},"mergeEffects":{"__symbolic":"function"},"Actions":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"Observable","module":"rxjs/Observable","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":9,"character":65,"context":{"typeName":"V"},"module":"./src/actions"}]},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@ngrx/store","name":"ScannedActionsSubject"}]}]],"parameters":[{"__symbolic":"reference","name":"Observable","module":"rxjs/Observable","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":9,"character":65,"context":{"typeName":"V"},"module":"./src/actions"}]}]}],"lift":[{"__symbolic":"method"}],"ofType":[{"__symbolic":"method"}]}},"ofType":{"__symbolic":"function","parameters":["allowedTypes"],"value":{"__symbolic":"error","message":"Function call not supported","line":30,"character":9,"module":"./src/actions"}},"EffectsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{},"statics":{"forFeature":{"__symbolic":"function","parameters":["featureEffects"],"value":{"ngModule":{"__symbolic":"reference","name":"ɵc"},"providers":[{"__symbolic":"reference","name":"featureEffects"},{"provide":{"__symbolic":"reference","name":"ɵe"},"multi":true,"deps":{"__symbolic":"reference","name":"featureEffects"},"useFactory":{"__symbolic":"reference","name":"ɵa"}}]}},"forRoot":{"__symbolic":"function","parameters":["rootEffects"],"value":{"ngModule":{"__symbolic":"reference","name":"ɵb"},"providers":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"Actions"},{"__symbolic":"reference","name":"rootEffects"},{"provide":{"__symbolic":"reference","name":"ɵd"},"deps":{"__symbolic":"reference","name":"rootEffects"},"useFactory":{"__symbolic":"reference","name":"ɵa"}}]}}}},"EffectSources":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/Subject","name":"Subject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ErrorHandler"}]}],"addEffects":[{"__symbolic":"method"}],"toActions":[{"__symbolic":"method"}]}},"OnRunEffects":{"__symbolic":"interface"},"EffectNotification":{"__symbolic":"interface"},"ROOT_EFFECTS_INIT":"@ngrx/effects/init","ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵe"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreRootModule"},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreFeatureModule"}]}]}},"ɵd":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ngrx/effects: Root Effects"]},"ɵe":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ngrx/effects: Feature Effects"]},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"start":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./src/effects_module","ɵb":"./src/effects_root_module","Effect":"./src/effects_metadata","EffectsMetadata":"./src/effects_metadata","getEffectsMetadata":"./src/effects_metadata","mergeEffects":"./src/effects_resolver","Actions":"./src/actions","ofType":"./src/actions","EffectsModule":"./src/effects_module","EffectSources":"./src/effect_sources","OnRunEffects":"./src/on_run_effects","EffectNotification":"./src/effect_notification","ROOT_EFFECTS_INIT":"./src/effects_root_module","ɵc":"./src/effects_feature_module","ɵd":"./src/tokens","ɵe":"./src/tokens","ɵf":"./src/effects_runner"},"importAs":"@ngrx/effects"} | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"function","parameters":["instances"],"value":{"__symbolic":"reference","name":"instances"}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵd"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreRootModule"},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreFeatureModule"}]}],"addEffects":[{"__symbolic":"method"}]}},"Effect":{"__symbolic":"function","parameters":["dispatch"],"defaults":[{"dispatch":true}],"value":{"__symbolic":"error","message":"Function call not supported","line":28,"character":9,"module":"./src/effects_metadata"}},"EffectsMetadata":{"__symbolic":"interface"},"getEffectsMetadata":{"__symbolic":"function"},"mergeEffects":{"__symbolic":"function"},"Actions":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"Observable","module":"rxjs/Observable","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":9,"character":65,"context":{"typeName":"V"},"module":"./src/actions"}]},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@ngrx/store","name":"ScannedActionsSubject"}]}]],"parameters":[{"__symbolic":"reference","name":"Observable","module":"rxjs/Observable","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":9,"character":65,"context":{"typeName":"V"},"module":"./src/actions"}]}]}],"lift":[{"__symbolic":"method"}],"ofType":[{"__symbolic":"method"}]}},"ofType":{"__symbolic":"function","parameters":["allowedTypes"],"value":{"__symbolic":"error","message":"Function call not supported","line":30,"character":16,"module":"./src/actions"}},"EffectsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{},"statics":{"forFeature":{"__symbolic":"function","parameters":["featureEffects"],"value":{"ngModule":{"__symbolic":"reference","name":"ɵc"},"providers":[{"__symbolic":"reference","name":"featureEffects"},{"provide":{"__symbolic":"reference","name":"ɵe"},"multi":true,"deps":{"__symbolic":"reference","name":"featureEffects"},"useFactory":{"__symbolic":"reference","name":"ɵa"}}]}},"forRoot":{"__symbolic":"function","parameters":["rootEffects"],"value":{"ngModule":{"__symbolic":"reference","name":"ɵb"},"providers":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"Actions"},{"__symbolic":"reference","name":"rootEffects"},{"provide":{"__symbolic":"reference","name":"ɵd"},"deps":{"__symbolic":"reference","name":"rootEffects"},"useFactory":{"__symbolic":"reference","name":"ɵa"}}]}}}},"EffectSources":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/Subject","name":"Subject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ErrorHandler"}]}],"addEffects":[{"__symbolic":"method"}],"toActions":[{"__symbolic":"method"}]}},"OnRunEffects":{"__symbolic":"interface"},"EffectNotification":{"__symbolic":"interface"},"ROOT_EFFECTS_INIT":"@ngrx/effects/init","ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵe"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreRootModule"},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreFeatureModule"}]}]}},"ɵd":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ngrx/effects: Root Effects"]},"ɵe":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ngrx/effects: Feature Effects"]},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"start":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./src/effects_module","ɵb":"./src/effects_root_module","Effect":"./src/effects_metadata","EffectsMetadata":"./src/effects_metadata","getEffectsMetadata":"./src/effects_metadata","mergeEffects":"./src/effects_resolver","Actions":"./src/actions","ofType":"./src/actions","EffectsModule":"./src/effects_module","EffectSources":"./src/effect_sources","OnRunEffects":"./src/on_run_effects","EffectNotification":"./src/effect_notification","ROOT_EFFECTS_INIT":"./src/effects_root_module","ɵc":"./src/effects_feature_module","ɵd":"./src/tokens","ɵe":"./src/tokens","ɵf":"./src/effects_runner"},"importAs":"@ngrx/effects"} |
{ | ||
"name": "@ngrx/effects", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"description": "Side effect model for @ngrx/store", | ||
@@ -5,0 +5,0 @@ "module": "@ngrx/effects.es5.js", |
@@ -9,2 +9,2 @@ import { Action } from '@ngrx/store'; | ||
} | ||
export declare function ofType<T extends Action>(...allowedTypes: string[]): (source$: Actions<T>) => Actions<T>; | ||
export declare function ofType<T extends Action>(...allowedTypes: string[]): (source: Observable<Action>) => Observable<T>; |
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
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
147254
1608