@ngrx/effects
Advanced tools
Comparing version 10.0.1 to 10.1.0
@@ -27,2 +27,3 @@ (function (global, factory) { | ||
}), | ||
deps: [], | ||
}; | ||
@@ -29,0 +30,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@ngrx/effects"),require("rxjs")):"function"==typeof define&&define.amd?define("@ngrx/effects/testing",["exports","@ngrx/effects","rxjs"],n):n(((e=e||self).ngrx=e.ngrx||{},e.ngrx.effects=e.ngrx.effects||{},e.ngrx.effects.testing={}),e.ngrx.effects,e.rxjs)}(this,(function(e,n,t){"use strict";e.provideMockActions=function(e){return{provide:n.Actions,useFactory:function(){return"function"==typeof e?new n.Actions(t.defer(e)):new n.Actions(e)}}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@ngrx/effects"),require("rxjs")):"function"==typeof define&&define.amd?define("@ngrx/effects/testing",["exports","@ngrx/effects","rxjs"],n):n(((e=e||self).ngrx=e.ngrx||{},e.ngrx.effects=e.ngrx.effects||{},e.ngrx.effects.testing={}),e.ngrx.effects,e.rxjs)}(this,(function(e,n,t){"use strict";e.provideMockActions=function(e){return{provide:n.Actions,useFactory:function(){return"function"==typeof e?new n.Actions(t.defer(e)):new n.Actions(e)},deps:[]}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngrx-effects-testing.umd.min.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@ngrx/store'), require('rxjs'), require('rxjs/operators'), require('@angular/core')) : | ||
typeof define === 'function' && define.amd ? define('@ngrx/effects', ['exports', '@ngrx/store', 'rxjs', 'rxjs/operators', '@angular/core'], factory) : | ||
(global = global || self, factory((global.ngrx = global.ngrx || {}, global.ngrx.effects = {}), global.store, global.rxjs, global.rxjs.operators, global.ng.core)); | ||
(global = global || self, factory((global.ngrx = global.ngrx || {}, global.ngrx.effects = {}), global.ngrx.store, global.rxjs, global.rxjs.operators, global.ng.core)); | ||
}(this, (function (exports, store, rxjs, operators, core) { 'use strict'; | ||
@@ -1132,7 +1132,2 @@ | ||
{ | ||
provide: _ROOT_EFFECTS_GUARD, | ||
useFactory: _provideForRootGuard, | ||
deps: [[EffectsRunner, new core.Optional(), new core.SkipSelf()]], | ||
}, | ||
{ | ||
provide: EFFECTS_ERROR_HANDLER, | ||
@@ -1150,2 +1145,10 @@ useValue: defaultEffectsErrorHandler, | ||
{ | ||
provide: _ROOT_EFFECTS_GUARD, | ||
useFactory: _provideForRootGuard, | ||
deps: [ | ||
[EffectsRunner, new core.Optional(), new core.SkipSelf()], | ||
[_ROOT_EFFECTS, new core.Self()], | ||
], | ||
}, | ||
{ | ||
provide: USER_PROVIDED_EFFECTS, | ||
@@ -1219,6 +1222,10 @@ multi: true, | ||
* @param {?} runner | ||
* @param {?} rootEffects | ||
* @return {?} | ||
*/ | ||
function _provideForRootGuard(runner) { | ||
if (runner) { | ||
function _provideForRootGuard(runner, rootEffects) { | ||
// check whether any effects are actually passed | ||
/** @type {?} */ | ||
var hasEffects = !(rootEffects.length === 1 && rootEffects[0].length === 0); | ||
if (hasEffects && runner) { | ||
throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead."); | ||
@@ -1225,0 +1232,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@ngrx/store"),require("rxjs"),require("rxjs/operators"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ngrx/effects",["exports","@ngrx/store","rxjs","rxjs/operators","@angular/core"],t):t(((e=e||self).ngrx=e.ngrx||{},e.ngrx.effects={}),e.store,e.rxjs,e.rxjs.operators,e.ng.core)}(this,(function(e,t,r,n,o){"use strict";var c={dispatch:!0,useEffectsErrorHandler:!0};function f(e){return Object.getOwnPropertyNames(e).filter((function(t){return e[t]&&e[t].hasOwnProperty("__@ngrx/effects_create__")})).map((function(t){var r=e[t]["__@ngrx/effects_create__"];return Object.assign({propertyName:t},r)}))}function i(e){return Object.getPrototypeOf(e)}function u(e){return t.compose(s,i)(e)}function a(e){return e.constructor.hasOwnProperty("__@ngrx/effects__")}function s(e){return a(e)?e.constructor["__@ngrx/effects__"]:[]}function p(e){return[u,f].reduce((function(t,r){return t.concat(r(e))}),[])} | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@ngrx/store"),require("rxjs"),require("rxjs/operators"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ngrx/effects",["exports","@ngrx/store","rxjs","rxjs/operators","@angular/core"],t):t(((e=e||self).ngrx=e.ngrx||{},e.ngrx.effects={}),e.ngrx.store,e.rxjs,e.rxjs.operators,e.ng.core)}(this,(function(e,t,r,n,o){"use strict";var c={dispatch:!0,useEffectsErrorHandler:!0};function f(e){return Object.getOwnPropertyNames(e).filter((function(t){return e[t]&&e[t].hasOwnProperty("__@ngrx/effects_create__")})).map((function(t){var r=e[t]["__@ngrx/effects_create__"];return Object.assign({propertyName:t},r)}))}function i(e){return Object.getPrototypeOf(e)}function u(e){return t.compose(s,i)(e)}function a(e){return e.constructor.hasOwnProperty("__@ngrx/effects__")}function s(e){return a(e)?e.constructor["__@ngrx/effects__"]:[]}function p(e){return[u,f].reduce((function(t,r){return t.concat(r(e))}),[])} | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function d(e,t){function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,c=r.call(e),f=[];try{for(;(void 0===t||t-- >0)&&!(n=c.next()).done;)f.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=c.return)&&r.call(c)}finally{if(o)throw o.error}}return f}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}Object.create;function E(e,t,o){var c=i(e).constructor.name,f=p(e).map((function(r){var f=r.propertyName,i=r.dispatch,u=r.useEffectsErrorHandler,a="function"==typeof e[f]?e[f]():e[f],s=u?o(a,t):a;return!1===i?s.pipe(n.ignoreElements()):s.pipe(n.materialize()).pipe(n.map((function(t){return{effect:e[f],notification:t,propertyName:f,sourceName:c,sourceInstance:e}})))}));return r.merge.apply(void 0,v(f))}function h(e,t,r){return void 0===r&&(r=10),e.pipe(n.catchError((function(n){return t&&t.handleError(n),r<=1?e:h(e,t,r-1)})))}var m=function(e){function t(t){var r=e.call(this)||this;return t&&(r.source=t),r}return d(t,e),t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t}(r.Observable);function b(e,t){if("N"===e.notification.kind){var r=e.notification.value;!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(r)&&t.handleError(new Error("Effect "+(o=(n=e).propertyName,c=n.sourceInstance,f=n.sourceName,i="function"==typeof c[o],'"'+f+"."+String(o)+(i?"()":"")+'"')+" dispatched an invalid action: "+function(e){try{return JSON.stringify(e)}catch(t){return e}}(r)))}var n,o,c,f,i}m.decorators=[{type:o.Injectable}],m.ctorParameters=function(){return[{type:r.Observable,decorators:[{type:o.Inject,args:[t.ScannedActionsSubject]}]}]};function j(e){return x(e,"ngrxOnInitEffects")}function x(e,t){return e&&t in e&&"function"==typeof e[t]}var _=new o.InjectionToken("@ngrx/effects Internal Root Guard"),O=(new o.InjectionToken("ngrx/effects: Immediate Effects"),new o.InjectionToken("ngrx/effects: User Provided Effects")),I=new o.InjectionToken("ngrx/effects: Internal Root Effects"),S=new o.InjectionToken("ngrx/effects: Root Effects"),w=new o.InjectionToken("ngrx/effects: Internal Feature Effects"),M=new o.InjectionToken("ngrx/effects: Feature Effects"),N=new o.InjectionToken("ngrx/effects: Effects Error Handler"),R=function(e){function t(t,r){var n=e.call(this)||this;return n.errorHandler=t,n.effectsErrorHandler=r,n}return d(t,e),t.prototype.addEffects=function(e){this.next(e)},t.prototype.toActions=function(){var e=this;return this.pipe(n.groupBy(i),n.mergeMap((function(e){return e.pipe(n.groupBy(F))})),n.mergeMap((function(t){var o=t.pipe(n.exhaustMap((function(t){return(r=e.errorHandler,n=e.effectsErrorHandler,function(e){var t=E(e,r,n);return x(e,"ngrxOnRunEffects")?e.ngrxOnRunEffects(t):t})(t);var r,n})),n.map((function(t){return b(t,e.errorHandler),t.notification})),n.filter((function(e){return"N"===e.kind})),n.dematerialize()),c=t.pipe(n.take(1),n.filter(j),n.map((function(e){return e.ngrxOnInitEffects()})));return r.merge(o,c)})))},t}(r.Subject);function F(e){return x(e,"ngrxOnIdentifyEffects")?e.ngrxOnIdentifyEffects():""}R.decorators=[{type:o.Injectable}],R.ctorParameters=function(){return[{type:o.ErrorHandler},{type:void 0,decorators:[{type:o.Inject,args:[N]}]}]};var P=function(){function e(e,t){this.effectSources=e,this.store=t,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}();P.decorators=[{type:o.Injectable}],P.ctorParameters=function(){return[{type:R},{type:t.Store}]};var T=t.createAction("@ngrx/effects/init"),k=function(){function e(e,t,r,n,o,c,f){this.sources=e,t.start(),n.forEach((function(t){return e.addEffects(t)})),r.dispatch({type:"@ngrx/effects/init"})}return e.prototype.addEffects=function(e){this.sources.addEffects(e)},e}();k.decorators=[{type:o.NgModule,args:[{}]}],k.ctorParameters=function(){return[{type:R},{type:P},{type:t.Store},{type:Array,decorators:[{type:o.Inject,args:[S]}]},{type:t.StoreRootModule,decorators:[{type:o.Optional}]},{type:t.StoreFeatureModule,decorators:[{type:o.Optional}]},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[_]}]}]};var H=function(e,t,r,n){t.forEach((function(t){return t.forEach((function(t){return e.addEffects(t)}))}))};H.decorators=[{type:o.NgModule,args:[{}]}],H.ctorParameters=function(){return[{type:k},{type:Array,decorators:[{type:o.Inject,args:[M]}]},{type:t.StoreRootModule,decorators:[{type:o.Optional}]},{type:t.StoreFeatureModule,decorators:[{type:o.Optional}]}]};var A=function(){function e(){}return e.forFeature=function(e){return void 0===e&&(e=[]),{ngModule:H,providers:[e,{provide:w,multi:!0,useValue:e},{provide:O,multi:!0,useValue:[]},{provide:M,multi:!0,useFactory:V,deps:[o.Injector,w,O]}]}},e.forRoot=function(e){return void 0===e&&(e=[]),{ngModule:k,providers:[{provide:_,useFactory:z,deps:[[P,new o.Optional,new o.SkipSelf]]},{provide:N,useValue:h},P,R,m,e,{provide:I,useValue:[e]},{provide:O,multi:!0,useValue:[]},{provide:S,useFactory:V,deps:[o.Injector,I,O]}]}},e}();function V(e,t,r){var n,o,c,f,i=[];try{for(var u=y(t),a=u.next();!a.done;a=u.next()){var s=a.value;i.push.apply(i,v(s))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var p=y(r),l=p.next();!l.done;l=p.next()){var d=l.value;i.push.apply(i,v(d))}}catch(e){c={error:e}}finally{try{l&&!l.done&&(f=p.return)&&f.call(p)}finally{if(c)throw c.error}}return function(e,t){return t.map((function(t){return e.get(t)}))}(e,i)}function z(e){if(e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}A.decorators=[{type:o.NgModule,args:[{}]}],e.Actions=m,e.EFFECTS_ERROR_HANDLER=N,e.Effect=function(e){return void 0===e&&(e={}),function(t,r){!function(e,t){a(e)?e.constructor["__@ngrx/effects__"].push(t):Object.defineProperty(e.constructor,"__@ngrx/effects__",{value:[t]})}(t,Object.assign(Object.assign(Object.assign({},c),e),{propertyName:r}))}},e.EffectSources=R,e.EffectsFeatureModule=H,e.EffectsModule=A,e.EffectsRootModule=k,e.EffectsRunner=P,e.ROOT_EFFECTS_INIT="@ngrx/effects/init",e.USER_PROVIDED_EFFECTS=O,e.act=function(e,t){var o="function"==typeof e?{project:e,error:t,operator:n.concatMap,complete:void 0,unsubscribe:void 0}:Object.assign(Object.assign({},e),{operator:e.operator||n.concatMap}),c=o.project,f=o.error,i=o.complete,u=o.operator,a=o.unsubscribe;return(function(e){return r.defer((function(){var t=new r.Subject;return r.merge(e.pipe(u((function(e,o){return r.defer((function(){var u=!1,s=!1,p=0;return c(e,o).pipe(n.materialize(),n.map((function(t){switch(t.kind){case"E":return s=!0,new r.Notification("N",f(t.error,e));case"C":return u=!0,i?new r.Notification("N",i(p,e)):void 0;default:return++p,t}})),n.filter((function(e){return null!=e})),n.dematerialize(),n.finalize((function(){u||s||!a||t.next(a(p,e))})))}))}))),t)}))})},e.createEffect=function(e,t){var r=e(),n=Object.assign(Object.assign({},c),t);return Object.defineProperty(r,"__@ngrx/effects_create__",{value:n}),r},e.defaultEffectsErrorHandler=h,e.getEffectsMetadata=function(e){return p(e).reduce((function(e,t){var r=t.propertyName,n=t.dispatch,o=t.useEffectsErrorHandler;return e[r]={dispatch:n,useEffectsErrorHandler:o},e}),{})},e.mergeEffects=E,e.ofType=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.filter((function(t){return e.some((function(e){return"string"==typeof e?e===t.type:e.type===t.type}))}))},e.rootEffectsInit=T,e.ɵa=p,e.ɵb=V,e.ɵc=z,e.ɵd=_,e.ɵe=I,e.ɵf=S,e.ɵg=w,e.ɵh=M,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function d(e,t){function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,c=r.call(e),f=[];try{for(;(void 0===t||t-- >0)&&!(n=c.next()).done;)f.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=c.return)&&r.call(c)}finally{if(o)throw o.error}}return f}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}Object.create;function E(e,t,o){var c=i(e).constructor.name,f=p(e).map((function(r){var f=r.propertyName,i=r.dispatch,u=r.useEffectsErrorHandler,a="function"==typeof e[f]?e[f]():e[f],s=u?o(a,t):a;return!1===i?s.pipe(n.ignoreElements()):s.pipe(n.materialize()).pipe(n.map((function(t){return{effect:e[f],notification:t,propertyName:f,sourceName:c,sourceInstance:e}})))}));return r.merge.apply(void 0,v(f))}function h(e,t,r){return void 0===r&&(r=10),e.pipe(n.catchError((function(n){return t&&t.handleError(n),r<=1?e:h(e,t,r-1)})))}var m=function(e){function t(t){var r=e.call(this)||this;return t&&(r.source=t),r}return d(t,e),t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t}(r.Observable);function b(e,t){if("N"===e.notification.kind){var r=e.notification.value;!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(r)&&t.handleError(new Error("Effect "+(o=(n=e).propertyName,c=n.sourceInstance,f=n.sourceName,i="function"==typeof c[o],'"'+f+"."+String(o)+(i?"()":"")+'"')+" dispatched an invalid action: "+function(e){try{return JSON.stringify(e)}catch(t){return e}}(r)))}var n,o,c,f,i}m.decorators=[{type:o.Injectable}],m.ctorParameters=function(){return[{type:r.Observable,decorators:[{type:o.Inject,args:[t.ScannedActionsSubject]}]}]};function x(e){return j(e,"ngrxOnInitEffects")}function j(e,t){return e&&t in e&&"function"==typeof e[t]}var _=new o.InjectionToken("@ngrx/effects Internal Root Guard"),O=(new o.InjectionToken("ngrx/effects: Immediate Effects"),new o.InjectionToken("ngrx/effects: User Provided Effects")),S=new o.InjectionToken("ngrx/effects: Internal Root Effects"),I=new o.InjectionToken("ngrx/effects: Root Effects"),w=new o.InjectionToken("ngrx/effects: Internal Feature Effects"),M=new o.InjectionToken("ngrx/effects: Feature Effects"),N=new o.InjectionToken("ngrx/effects: Effects Error Handler"),R=function(e){function t(t,r){var n=e.call(this)||this;return n.errorHandler=t,n.effectsErrorHandler=r,n}return d(t,e),t.prototype.addEffects=function(e){this.next(e)},t.prototype.toActions=function(){var e=this;return this.pipe(n.groupBy(i),n.mergeMap((function(e){return e.pipe(n.groupBy(F))})),n.mergeMap((function(t){var o=t.pipe(n.exhaustMap((function(t){return(r=e.errorHandler,n=e.effectsErrorHandler,function(e){var t=E(e,r,n);return j(e,"ngrxOnRunEffects")?e.ngrxOnRunEffects(t):t})(t);var r,n})),n.map((function(t){return b(t,e.errorHandler),t.notification})),n.filter((function(e){return"N"===e.kind})),n.dematerialize()),c=t.pipe(n.take(1),n.filter(x),n.map((function(e){return e.ngrxOnInitEffects()})));return r.merge(o,c)})))},t}(r.Subject);function F(e){return j(e,"ngrxOnIdentifyEffects")?e.ngrxOnIdentifyEffects():""}R.decorators=[{type:o.Injectable}],R.ctorParameters=function(){return[{type:o.ErrorHandler},{type:void 0,decorators:[{type:o.Inject,args:[N]}]}]};var P=function(){function e(e,t){this.effectSources=e,this.store=t,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}();P.decorators=[{type:o.Injectable}],P.ctorParameters=function(){return[{type:R},{type:t.Store}]};var T=t.createAction("@ngrx/effects/init"),k=function(){function e(e,t,r,n,o,c,f){this.sources=e,t.start(),n.forEach((function(t){return e.addEffects(t)})),r.dispatch({type:"@ngrx/effects/init"})}return e.prototype.addEffects=function(e){this.sources.addEffects(e)},e}();k.decorators=[{type:o.NgModule,args:[{}]}],k.ctorParameters=function(){return[{type:R},{type:P},{type:t.Store},{type:Array,decorators:[{type:o.Inject,args:[I]}]},{type:t.StoreRootModule,decorators:[{type:o.Optional}]},{type:t.StoreFeatureModule,decorators:[{type:o.Optional}]},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[_]}]}]};var H=function(e,t,r,n){t.forEach((function(t){return t.forEach((function(t){return e.addEffects(t)}))}))};H.decorators=[{type:o.NgModule,args:[{}]}],H.ctorParameters=function(){return[{type:k},{type:Array,decorators:[{type:o.Inject,args:[M]}]},{type:t.StoreRootModule,decorators:[{type:o.Optional}]},{type:t.StoreFeatureModule,decorators:[{type:o.Optional}]}]};var A=function(){function e(){}return e.forFeature=function(e){return void 0===e&&(e=[]),{ngModule:H,providers:[e,{provide:w,multi:!0,useValue:e},{provide:O,multi:!0,useValue:[]},{provide:M,multi:!0,useFactory:V,deps:[o.Injector,w,O]}]}},e.forRoot=function(e){return void 0===e&&(e=[]),{ngModule:k,providers:[{provide:N,useValue:h},P,R,m,e,{provide:S,useValue:[e]},{provide:_,useFactory:z,deps:[[P,new o.Optional,new o.SkipSelf],[S,new o.Self]]},{provide:O,multi:!0,useValue:[]},{provide:I,useFactory:V,deps:[o.Injector,S,O]}]}},e}();function V(e,t,r){var n,o,c,f,i=[];try{for(var u=y(t),a=u.next();!a.done;a=u.next()){var s=a.value;i.push.apply(i,v(s))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var p=y(r),l=p.next();!l.done;l=p.next()){var d=l.value;i.push.apply(i,v(d))}}catch(e){c={error:e}}finally{try{l&&!l.done&&(f=p.return)&&f.call(p)}finally{if(c)throw c.error}}return function(e,t){return t.map((function(t){return e.get(t)}))}(e,i)}function z(e,t){if(!(1===t.length&&0===t[0].length)&&e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}A.decorators=[{type:o.NgModule,args:[{}]}],e.Actions=m,e.EFFECTS_ERROR_HANDLER=N,e.Effect=function(e){return void 0===e&&(e={}),function(t,r){!function(e,t){a(e)?e.constructor["__@ngrx/effects__"].push(t):Object.defineProperty(e.constructor,"__@ngrx/effects__",{value:[t]})}(t,Object.assign(Object.assign(Object.assign({},c),e),{propertyName:r}))}},e.EffectSources=R,e.EffectsFeatureModule=H,e.EffectsModule=A,e.EffectsRootModule=k,e.EffectsRunner=P,e.ROOT_EFFECTS_INIT="@ngrx/effects/init",e.USER_PROVIDED_EFFECTS=O,e.act=function(e,t){var o="function"==typeof e?{project:e,error:t,operator:n.concatMap,complete:void 0,unsubscribe:void 0}:Object.assign(Object.assign({},e),{operator:e.operator||n.concatMap}),c=o.project,f=o.error,i=o.complete,u=o.operator,a=o.unsubscribe;return(function(e){return r.defer((function(){var t=new r.Subject;return r.merge(e.pipe(u((function(e,o){return r.defer((function(){var u=!1,s=!1,p=0;return c(e,o).pipe(n.materialize(),n.map((function(t){switch(t.kind){case"E":return s=!0,new r.Notification("N",f(t.error,e));case"C":return u=!0,i?new r.Notification("N",i(p,e)):void 0;default:return++p,t}})),n.filter((function(e){return null!=e})),n.dematerialize(),n.finalize((function(){u||s||!a||t.next(a(p,e))})))}))}))),t)}))})},e.createEffect=function(e,t){var r=e(),n=Object.assign(Object.assign({},c),t);return Object.defineProperty(r,"__@ngrx/effects_create__",{value:n}),r},e.defaultEffectsErrorHandler=h,e.getEffectsMetadata=function(e){return p(e).reduce((function(e,t){var r=t.propertyName,n=t.dispatch,o=t.useEffectsErrorHandler;return e[r]={dispatch:n,useEffectsErrorHandler:o},e}),{})},e.mergeEffects=E,e.ofType=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.filter((function(t){return e.some((function(e){return"string"==typeof e?e===t.type:e.type===t.type}))}))},e.rootEffectsInit=T,e.ɵa=p,e.ɵb=V,e.ɵc=z,e.ɵd=_,e.ɵe=S,e.ɵf=I,e.ɵg=w,e.ɵh=M,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngrx-effects.umd.min.js.map |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { Injector, NgModule, Optional, SkipSelf, } from '@angular/core'; | ||
import { Injector, NgModule, Optional, Self, SkipSelf, } from '@angular/core'; | ||
import { Actions } from './actions'; | ||
@@ -53,7 +53,2 @@ import { EffectSources } from './effect_sources'; | ||
{ | ||
provide: _ROOT_EFFECTS_GUARD, | ||
useFactory: _provideForRootGuard, | ||
deps: [[EffectsRunner, new Optional(), new SkipSelf()]], | ||
}, | ||
{ | ||
provide: EFFECTS_ERROR_HANDLER, | ||
@@ -71,2 +66,10 @@ useValue: defaultEffectsErrorHandler, | ||
{ | ||
provide: _ROOT_EFFECTS_GUARD, | ||
useFactory: _provideForRootGuard, | ||
deps: [ | ||
[EffectsRunner, new Optional(), new SkipSelf()], | ||
[_ROOT_EFFECTS, new Self()], | ||
], | ||
}, | ||
{ | ||
provide: USER_PROVIDED_EFFECTS, | ||
@@ -119,6 +122,10 @@ multi: true, | ||
* @param {?} runner | ||
* @param {?} rootEffects | ||
* @return {?} | ||
*/ | ||
export function _provideForRootGuard(runner) { | ||
if (runner) { | ||
export function _provideForRootGuard(runner, rootEffects) { | ||
// check whether any effects are actually passed | ||
/** @type {?} */ | ||
const hasEffects = !(rootEffects.length === 1 && rootEffects[0].length === 0); | ||
if (hasEffects && runner) { | ||
throw new TypeError(`EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.`); | ||
@@ -128,2 +135,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWZmZWN0c19tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2VmZmVjdHMvc3JjL2VmZmVjdHNfbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUNMLFFBQVEsRUFFUixRQUFRLEVBQ1IsUUFBUSxFQUNSLFFBQVEsR0FFVCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQ3BDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNyRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDakQsT0FBTyxFQUNMLGdCQUFnQixFQUNoQixhQUFhLEVBQ2IsbUJBQW1CLEVBQ25CLHFCQUFxQixFQUNyQixlQUFlLEVBQ2YsWUFBWSxFQUNaLHFCQUFxQixHQUN0QixNQUFNLFVBQVUsQ0FBQztBQUdsQixNQUFNLE9BQU8sYUFBYTs7Ozs7SUFDeEIsTUFBTSxDQUFDLFVBQVUsQ0FDZixpQkFBOEIsRUFBRTtRQUVoQyxPQUFPO1lBQ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ZSBhY3R1YWxseSBwYXNzZWRcbiAgY29uc3QgaGFzRWZmZWN0cyA9ICEocm9vdEVmZmVjdHMubGVuZ3RoID09PSAxICYmIHJvb3RFZmZlY3RzWzBdLmxlbmd0aCA9PT0gMCk7XG4gIGlmIChoYXNFZmZlY3RzICYmIHJ1bm5lcikge1xuICAgIHRocm93IG5ldyBUeXBlRXJyb3IoXG4gICAgICBgRWZmZWN0c01vZHVsZS5mb3JSb290KCkgY2FsbGVkIHR3aWNlLiBGZWF0dXJlIG1vZHVsZXMgc2hvdWxkIHVzZSBFZmZlY3RzTW9kdWxlLmZvckZlYXR1cmUoKSBpbnN0ZWFkLmBcbiAgICApO1xuICB9XG4gIHJldHVybiAnZ3VhcmRlZCc7XG59XG4iXX0= |
@@ -1,1 +0,1 @@ | ||
{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forFeature":{"__symbolic":"function","parameters":["featureEffects"],"value":{"ngModule":{"__symbol":1,"members":[]},"providers":[{"__symbolic":"reference","name":"featureEffects"},{"provide":{"__symbol":2,"members":[]},"multi":true,"useValue":{"__symbolic":"reference","name":"featureEffects"}},{"provide":{"__symbol":3,"members":[]},"multi":true,"useValue":[]},{"provide":{"__symbol":4,"members":[]},"multi":true,"useFactory":{"__symbol":5,"members":[]},"deps":[{"__symbol":6,"members":[]},{"__symbol":2,"members":[]},{"__symbol":3,"members":[]}]}]},"defaults":[[]]},"forRoot":{"__symbolic":"function","parameters":["rootEffects"],"value":{"ngModule":{"__symbol":7,"members":[]},"providers":[{"provide":{"__symbol":8,"members":[]},"useFactory":{"__symbol":9,"members":[]},"deps":[[{"__symbol":10,"members":[]},{"__symbolic":"new","expression":{"__symbol":11,"members":[]}},{"__symbolic":"new","expression":{"__symbol":12,"members":[]}}]]},{"provide":{"__symbol":13,"members":[]},"useValue":{"__symbol":14,"members":[]}},{"__symbol":10,"members":[]},{"__symbol":15,"members":[]},{"__symbol":16,"members":[]},{"__symbolic":"reference","name":"rootEffects"},{"provide":{"__symbol":17,"members":[]},"useValue":[{"__symbolic":"reference","name":"rootEffects"}]},{"provide":{"__symbol":3,"members":[]},"multi":true,"useValue":[]},{"provide":{"__symbol":18,"members":[]},"useFactory":{"__symbol":5,"members":[]},"deps":[{"__symbol":6,"members":[]},{"__symbol":17,"members":[]},{"__symbol":3,"members":[]}]}]},"defaults":[[]]}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[]}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbolic":"function"}},{"symbol":{"__symbol":19,"members":[]},"metadata":{"__symbolic":"function","parameters":["injector","effects"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"effects"},"member":"map"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","fileName":"modules/effects/src/effects_module.ts"}]}}},{"symbol":{"__symbol":9,"members":[]},"metadata":{"__symbolic":"function"}}],"symbols":[{"__symbol":0,"name":"EffectsModule","filePath":"./effects_module"},{"__symbol":1,"name":"EffectsFeatureModule","filePath":"./effects_feature_module"},{"__symbol":2,"name":"_FEATURE_EFFECTS","filePath":"./tokens"},{"__symbol":3,"name":"USER_PROVIDED_EFFECTS","filePath":"./tokens"},{"__symbol":4,"name":"FEATURE_EFFECTS","filePath":"./tokens"},{"__symbol":5,"name":"createEffects","filePath":"./effects_module"},{"__symbol":6,"name":"Injector","filePath":"@angular/core"},{"__symbol":7,"name":"EffectsRootModule","filePath":"./effects_root_module"},{"__symbol":8,"name":"_ROOT_EFFECTS_GUARD","filePath":"./tokens"},{"__symbol":9,"name":"_provideForRootGuard","filePath":"./effects_module"},{"__symbol":10,"name":"EffectsRunner","filePath":"./effects_runner"},{"__symbol":11,"name":"Optional","filePath":"@angular/core"},{"__symbol":12,"name":"SkipSelf","filePath":"@angular/core"},{"__symbol":13,"name":"EFFECTS_ERROR_HANDLER","filePath":"./tokens"},{"__symbol":14,"name":"defaultEffectsErrorHandler","filePath":"./effects_error_handler"},{"__symbol":15,"name":"EffectSources","filePath":"./effect_sources"},{"__symbol":16,"name":"Actions","filePath":"./actions"},{"__symbol":17,"name":"_ROOT_EFFECTS","filePath":"./tokens"},{"__symbol":18,"name":"ROOT_EFFECTS","filePath":"./tokens"},{"__symbol":19,"name":"createEffectInstances","filePath":"./effects_module"}]} | ||
{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forFeature":{"__symbolic":"function","parameters":["featureEffects"],"value":{"ngModule":{"__symbol":1,"members":[]},"providers":[{"__symbolic":"reference","name":"featureEffects"},{"provide":{"__symbol":2,"members":[]},"multi":true,"useValue":{"__symbolic":"reference","name":"featureEffects"}},{"provide":{"__symbol":3,"members":[]},"multi":true,"useValue":[]},{"provide":{"__symbol":4,"members":[]},"multi":true,"useFactory":{"__symbol":5,"members":[]},"deps":[{"__symbol":6,"members":[]},{"__symbol":2,"members":[]},{"__symbol":3,"members":[]}]}]},"defaults":[[]]},"forRoot":{"__symbolic":"function","parameters":["rootEffects"],"value":{"ngModule":{"__symbol":7,"members":[]},"providers":[{"provide":{"__symbol":8,"members":[]},"useValue":{"__symbol":9,"members":[]}},{"__symbol":10,"members":[]},{"__symbol":11,"members":[]},{"__symbol":12,"members":[]},{"__symbolic":"reference","name":"rootEffects"},{"provide":{"__symbol":13,"members":[]},"useValue":[{"__symbolic":"reference","name":"rootEffects"}]},{"provide":{"__symbol":14,"members":[]},"useFactory":{"__symbol":15,"members":[]},"deps":[[{"__symbol":10,"members":[]},{"__symbolic":"new","expression":{"__symbol":16,"members":[]}},{"__symbolic":"new","expression":{"__symbol":17,"members":[]}}],[{"__symbol":13,"members":[]},{"__symbolic":"new","expression":{"__symbol":18,"members":[]}}]]},{"provide":{"__symbol":3,"members":[]},"multi":true,"useValue":[]},{"provide":{"__symbol":19,"members":[]},"useFactory":{"__symbol":5,"members":[]},"deps":[{"__symbol":6,"members":[]},{"__symbol":13,"members":[]},{"__symbol":3,"members":[]}]}]},"defaults":[[]]}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[]}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbolic":"function"}},{"symbol":{"__symbol":20,"members":[]},"metadata":{"__symbolic":"function","parameters":["injector","effects"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"effects"},"member":"map"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","fileName":"modules/effects/src/effects_module.ts"}]}}},{"symbol":{"__symbol":15,"members":[]},"metadata":{"__symbolic":"function"}}],"symbols":[{"__symbol":0,"name":"EffectsModule","filePath":"./effects_module"},{"__symbol":1,"name":"EffectsFeatureModule","filePath":"./effects_feature_module"},{"__symbol":2,"name":"_FEATURE_EFFECTS","filePath":"./tokens"},{"__symbol":3,"name":"USER_PROVIDED_EFFECTS","filePath":"./tokens"},{"__symbol":4,"name":"FEATURE_EFFECTS","filePath":"./tokens"},{"__symbol":5,"name":"createEffects","filePath":"./effects_module"},{"__symbol":6,"name":"Injector","filePath":"@angular/core"},{"__symbol":7,"name":"EffectsRootModule","filePath":"./effects_root_module"},{"__symbol":8,"name":"EFFECTS_ERROR_HANDLER","filePath":"./tokens"},{"__symbol":9,"name":"defaultEffectsErrorHandler","filePath":"./effects_error_handler"},{"__symbol":10,"name":"EffectsRunner","filePath":"./effects_runner"},{"__symbol":11,"name":"EffectSources","filePath":"./effect_sources"},{"__symbol":12,"name":"Actions","filePath":"./actions"},{"__symbol":13,"name":"_ROOT_EFFECTS","filePath":"./tokens"},{"__symbol":14,"name":"_ROOT_EFFECTS_GUARD","filePath":"./tokens"},{"__symbol":15,"name":"_provideForRootGuard","filePath":"./effects_module"},{"__symbol":16,"name":"Optional","filePath":"@angular/core"},{"__symbol":17,"name":"SkipSelf","filePath":"@angular/core"},{"__symbol":18,"name":"Self","filePath":"@angular/core"},{"__symbol":19,"name":"ROOT_EFFECTS","filePath":"./tokens"},{"__symbol":20,"name":"createEffectInstances","filePath":"./effects_module"}]} |
@@ -24,4 +24,5 @@ /** | ||
}), | ||
deps: [], | ||
}; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL21vZHVsZXMvZWZmZWN0cy90ZXN0aW5nL3NyYy90ZXN0aW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQ0EsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN4QyxPQUFPLEVBQUUsS0FBSyxFQUFjLE1BQU0sTUFBTSxDQUFDOzs7OztBQUl6QyxNQUFNLFVBQVUsa0JBQWtCLENBQ2hDLGVBQTBEO0lBRTFELE9BQU87UUFDTCxPQUFPLEVBQUUsT0FBTztRQUNoQixVQUFVOzs7UUFBRSxHQUFvQixFQUFFO1lBQ2hDLElBQUksT0FBTyxlQUFlLEtBQUssVUFBVSxFQUFFO2dCQUN6QyxPQUFPLElBQUksT0FBTyxDQUFDLEtBQUssQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDO2FBQzVDO1lBRUQsT0FBTyxJQUFJLE9BQU8sQ0FBQyxlQUFlLENBQUMsQ0FBQztRQUN0QyxDQUFDLENBQUE7S0FDRixDQUFDO0FBQ0osQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFByb3ZpZGVyIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXB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iBhY3Rpb25zJCksXG4gKiAgICAgICAgIENvdW50ZXJFZmZlY3RzLFxuICogICAgICAgXSxcbiAqICAgICB9KTtcbiAqXG4gKiAgICAgYWN0aW9ucyQgPSBpbmplY3Rvci5nZXQoQWN0aW9ucyk7XG4gKiAgICAgZWZmZWN0cyA9IGluamVjdG9yLmdldChDb3VudGVyRWZmZWN0cyk7XG4gKiAgIH0pO1xuICogfSk7XG4gKiBgYGBcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIHByb3ZpZGVNb2NrQWN0aW9ucyhcbiAgZmFjdG9yeTogKCkgPT4gT2JzZXJ2YWJsZTxhbnk+XG4pOiBGYWN0b3J5UHJvdmlkZXI7XG5leHBvcnQgZnVuY3Rpb24gcHJvdmlkZU1vY2tBY3Rpb25zKFxuICBmYWN0b3J5T3JTb3VyY2U6ICgoKSA9PiBPYnNlcnZhYmxlPGFueT4pIHwgT2JzZXJ2YWJsZTxhbnk+XG4pOiBGYWN0b3J5UHJvdmlkZXIge1xuICByZXR1cm4ge1xuICAgIHByb3ZpZGU6IEFjdGlvbnMsXG4gICAgdXNlRmFjdG9yeTogKCk6IE9ic2VydmFibGU8YW55PiA9PiB7XG4gICAgICBpZiAodHlwZW9mIGZhY3RvcnlPclNvdXJjZSA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICByZXR1cm4gbmV3IEFjdGlvbnMoZGVmZXIoZmFjdG9yeU9yU291cmNlKSk7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBuZXcgQWN0aW9ucyhmYWN0b3J5T3JTb3VyY2UpO1xuICAgIH0sXG4gICAgZGVwczogW10sXG4gIH07XG59XG4iXX0= |
@@ -25,2 +25,3 @@ import { Actions } from '@ngrx/effects'; | ||
}), | ||
deps: [], | ||
}; | ||
@@ -27,0 +28,0 @@ } |
import { compose, ScannedActionsSubject, Store, createAction, StoreRootModule, StoreFeatureModule } from '@ngrx/store'; | ||
import { merge, Observable, Subject, defer, Notification } from 'rxjs'; | ||
import { ignoreElements, materialize, map, catchError, filter, groupBy, mergeMap, exhaustMap, dematerialize, take, concatMap, finalize } from 'rxjs/operators'; | ||
import { Injectable, Inject, InjectionToken, ErrorHandler, NgModule, Optional, Injector, SkipSelf } from '@angular/core'; | ||
import { Injectable, Inject, InjectionToken, ErrorHandler, NgModule, Optional, Injector, SkipSelf, Self } from '@angular/core'; | ||
@@ -846,7 +846,2 @@ /** | ||
{ | ||
provide: _ROOT_EFFECTS_GUARD, | ||
useFactory: _provideForRootGuard, | ||
deps: [[EffectsRunner, new Optional(), new SkipSelf()]], | ||
}, | ||
{ | ||
provide: EFFECTS_ERROR_HANDLER, | ||
@@ -864,2 +859,10 @@ useValue: defaultEffectsErrorHandler, | ||
{ | ||
provide: _ROOT_EFFECTS_GUARD, | ||
useFactory: _provideForRootGuard, | ||
deps: [ | ||
[EffectsRunner, new Optional(), new SkipSelf()], | ||
[_ROOT_EFFECTS, new Self()], | ||
], | ||
}, | ||
{ | ||
provide: USER_PROVIDED_EFFECTS, | ||
@@ -912,6 +915,10 @@ multi: true, | ||
* @param {?} runner | ||
* @param {?} rootEffects | ||
* @return {?} | ||
*/ | ||
function _provideForRootGuard(runner) { | ||
if (runner) { | ||
function _provideForRootGuard(runner, rootEffects) { | ||
// check whether any effects are actually passed | ||
/** @type {?} */ | ||
const hasEffects = !(rootEffects.length === 1 && rootEffects[0].length === 0); | ||
if (hasEffects && runner) { | ||
throw new TypeError(`EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.`); | ||
@@ -918,0 +925,0 @@ } |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"function"},"ɵb":{"__symbolic":"function"},"ɵc":{"__symbolic":"function"},"ɵd":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":39},"arguments":["@ngrx/effects Internal Root Guard"]},"ɵe":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":12,"character":33},"arguments":["ngrx/effects: Internal Root Effects"]},"ɵf":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":15,"character":32},"arguments":["ngrx/effects: Root Effects"]},"ɵg":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":18,"character":36},"arguments":["ngrx/effects: Internal Feature Effects"]},"ɵh":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":35},"arguments":["ngrx/effects: Feature Effects"]},"createEffect":{"__symbolic":"function"},"EffectConfig":{"__symbolic":"interface"},"Effect":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"__symbolic":"error","message":"Lambda not supported","line":13,"character":9,"module":"./src/effect_decorator"}},"getEffectsMetadata":{"__symbolic":"function","parameters":["instance"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵa"},"arguments":[{"__symbolic":"reference","name":"instance"}]},"member":"reduce"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":6,"character":4,"module":"./src/effects_metadata"},{}]}},"mergeEffects":{"__symbolic":"function"},"EffectsErrorHandler":{"__symbolic":"interface"},"defaultEffectsErrorHandler":{"__symbolic":"function","parameters":["observable$","errorHandler","retryAttemptLeft"],"defaults":[null,null,10],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"observable$"},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"catchError","line":18,"character":4},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":18,"character":15,"module":"./src/effects_error_handler"}]}]}},"EffectsMetadata":{"__symbolic":"interface"},"CreateEffectMetadata":{"__symbolic":"interface"},"Actions":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"rxjs","name":"Observable","line":11,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":15},"arguments":[{"__symbolic":"reference","module":"@ngrx/store","name":"ScannedActionsSubject","line":12,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":12,"character":65,"context":{"typeName":"V"},"module":"./src/actions"}]}]}],"lift":[{"__symbolic":"method"}]}},"ofType":{"__symbolic":"function","parameters":["allowedTypes"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"filter","line":121,"character":9},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":121,"character":16,"module":"./src/actions"}]}},"EffectsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":24,"character":1},"arguments":[{}]}],"members":{},"statics":{"forFeature":{"__symbolic":"function","parameters":["featureEffects"],"defaults":[[]],"value":{"ngModule":{"__symbolic":"reference","name":"EffectsFeatureModule"},"providers":[{"__symbolic":"reference","name":"featureEffects"},{"provide":{"__symbolic":"reference","name":"ɵg"},"multi":true,"useValue":{"__symbolic":"reference","name":"featureEffects"}},{"provide":{"__symbolic":"reference","name":"USER_PROVIDED_EFFECTS"},"multi":true,"useValue":[]},{"provide":{"__symbolic":"reference","name":"ɵh"},"multi":true,"useFactory":{"__symbolic":"reference","name":"ɵb"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":47,"character":17},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"USER_PROVIDED_EFFECTS"}]}]}},"forRoot":{"__symbolic":"function","parameters":["rootEffects"],"defaults":[[]],"value":{"ngModule":{"__symbolic":"reference","name":"EffectsRootModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵd"},"useFactory":{"__symbolic":"reference","name":"ɵc"},"deps":[[{"__symbolic":"reference","name":"EffectsRunner"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":62,"character":37}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":62,"character":53}}]]},{"provide":{"__symbolic":"reference","name":"EFFECTS_ERROR_HANDLER"},"useValue":{"__symbolic":"reference","name":"defaultEffectsErrorHandler"}},{"__symbolic":"reference","name":"EffectsRunner"},{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"Actions"},{"__symbolic":"reference","name":"rootEffects"},{"provide":{"__symbolic":"reference","name":"ɵe"},"useValue":[{"__symbolic":"reference","name":"rootEffects"}]},{"provide":{"__symbolic":"reference","name":"USER_PROVIDED_EFFECTS"},"multi":true,"useValue":[]},{"provide":{"__symbolic":"reference","name":"ɵf"},"useFactory":{"__symbolic":"reference","name":"ɵb"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":84,"character":17},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"USER_PROVIDED_EFFECTS"}]}]}}}},"EffectSources":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs","name":"Subject","line":32,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":31,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":5},"arguments":[{"__symbolic":"reference","name":"EFFECTS_ERROR_HANDLER"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ErrorHandler","line":34,"character":26},{"__symbolic":"reference","name":"EffectsErrorHandler"}]}],"addEffects":[{"__symbolic":"method"}],"toActions":[{"__symbolic":"method"}]}},"EffectsRunner":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"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"}]}},"EffectNotification":{"__symbolic":"interface"},"EffectsFeatureModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":9,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵh"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":10,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":11,"character":5}}]],"parameters":[{"__symbolic":"reference","name":"EffectsRootModule"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreRootModule","line":10,"character":33},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreFeatureModule","line":11,"character":36}]}]}},"ROOT_EFFECTS_INIT":"@ngrx/effects/init","rootEffectsInit":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ngrx/store","name":"createAction","line":13,"character":31},"arguments":["@ngrx/effects/init"]},"EffectsRootModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵf"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":22,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":23,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":24,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":25,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵd"}]}]],"parameters":[{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"EffectsRunner"},{"__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","line":22,"character":33},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreFeatureModule","line":23,"character":36},{"__symbolic":"reference","name":"any"}]}],"addEffects":[{"__symbolic":"method"}]}},"EFFECTS_ERROR_HANDLER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":24,"character":41},"arguments":["ngrx/effects: Effects Error Handler"]},"act":{"__symbolic":"function"},"OnIdentifyEffects":{"__symbolic":"interface"},"OnRunEffects":{"__symbolic":"interface"},"OnInitEffects":{"__symbolic":"interface"},"USER_PROVIDED_EFFECTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":41},"arguments":["ngrx/effects: User Provided Effects"]}},"origins":{"ɵa":"./src/effects_metadata","ɵb":"./src/effects_module","ɵc":"./src/effects_module","ɵd":"./src/tokens","ɵe":"./src/tokens","ɵf":"./src/tokens","ɵg":"./src/tokens","ɵh":"./src/tokens","createEffect":"./src/effect_creator","EffectConfig":"./src/models","Effect":"./src/effect_decorator","getEffectsMetadata":"./src/effects_metadata","mergeEffects":"./src/effects_resolver","EffectsErrorHandler":"./src/effects_error_handler","defaultEffectsErrorHandler":"./src/effects_error_handler","EffectsMetadata":"./src/models","CreateEffectMetadata":"./src/models","Actions":"./src/actions","ofType":"./src/actions","EffectsModule":"./src/effects_module","EffectSources":"./src/effect_sources","EffectsRunner":"./src/effects_runner","EffectNotification":"./src/effect_notification","EffectsFeatureModule":"./src/effects_feature_module","ROOT_EFFECTS_INIT":"./src/effects_root_module","rootEffectsInit":"./src/effects_root_module","EffectsRootModule":"./src/effects_root_module","EFFECTS_ERROR_HANDLER":"./src/tokens","act":"./src/act","OnIdentifyEffects":"./src/lifecycle_hooks","OnRunEffects":"./src/lifecycle_hooks","OnInitEffects":"./src/lifecycle_hooks","USER_PROVIDED_EFFECTS":"./src/tokens"},"importAs":"@ngrx/effects"} | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"function"},"ɵb":{"__symbolic":"function"},"ɵc":{"__symbolic":"function"},"ɵd":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":39},"arguments":["@ngrx/effects Internal Root Guard"]},"ɵe":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":12,"character":33},"arguments":["ngrx/effects: Internal Root Effects"]},"ɵf":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":15,"character":32},"arguments":["ngrx/effects: Root Effects"]},"ɵg":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":18,"character":36},"arguments":["ngrx/effects: Internal Feature Effects"]},"ɵh":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":35},"arguments":["ngrx/effects: Feature Effects"]},"createEffect":{"__symbolic":"function"},"EffectConfig":{"__symbolic":"interface"},"Effect":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"__symbolic":"error","message":"Lambda not supported","line":13,"character":9,"module":"./src/effect_decorator"}},"getEffectsMetadata":{"__symbolic":"function","parameters":["instance"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵa"},"arguments":[{"__symbolic":"reference","name":"instance"}]},"member":"reduce"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":6,"character":4,"module":"./src/effects_metadata"},{}]}},"mergeEffects":{"__symbolic":"function"},"EffectsErrorHandler":{"__symbolic":"interface"},"defaultEffectsErrorHandler":{"__symbolic":"function","parameters":["observable$","errorHandler","retryAttemptLeft"],"defaults":[null,null,10],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"observable$"},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"catchError","line":18,"character":4},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":18,"character":15,"module":"./src/effects_error_handler"}]}]}},"EffectsMetadata":{"__symbolic":"interface"},"CreateEffectMetadata":{"__symbolic":"interface"},"Actions":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"rxjs","name":"Observable","line":11,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":15},"arguments":[{"__symbolic":"reference","module":"@ngrx/store","name":"ScannedActionsSubject","line":12,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":12,"character":65,"context":{"typeName":"V"},"module":"./src/actions"}]}]}],"lift":[{"__symbolic":"method"}]}},"ofType":{"__symbolic":"function","parameters":["allowedTypes"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"filter","line":121,"character":9},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":121,"character":16,"module":"./src/actions"}]}},"EffectsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":25,"character":1},"arguments":[{}]}],"members":{},"statics":{"forFeature":{"__symbolic":"function","parameters":["featureEffects"],"defaults":[[]],"value":{"ngModule":{"__symbolic":"reference","name":"EffectsFeatureModule"},"providers":[{"__symbolic":"reference","name":"featureEffects"},{"provide":{"__symbolic":"reference","name":"ɵg"},"multi":true,"useValue":{"__symbolic":"reference","name":"featureEffects"}},{"provide":{"__symbolic":"reference","name":"USER_PROVIDED_EFFECTS"},"multi":true,"useValue":[]},{"provide":{"__symbolic":"reference","name":"ɵh"},"multi":true,"useFactory":{"__symbolic":"reference","name":"ɵb"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":48,"character":17},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"USER_PROVIDED_EFFECTS"}]}]}},"forRoot":{"__symbolic":"function","parameters":["rootEffects"],"defaults":[[]],"value":{"ngModule":{"__symbolic":"reference","name":"EffectsRootModule"},"providers":[{"provide":{"__symbolic":"reference","name":"EFFECTS_ERROR_HANDLER"},"useValue":{"__symbolic":"reference","name":"defaultEffectsErrorHandler"}},{"__symbolic":"reference","name":"EffectsRunner"},{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"Actions"},{"__symbolic":"reference","name":"rootEffects"},{"provide":{"__symbolic":"reference","name":"ɵe"},"useValue":[{"__symbolic":"reference","name":"rootEffects"}]},{"provide":{"__symbolic":"reference","name":"ɵd"},"useFactory":{"__symbolic":"reference","name":"ɵc"},"deps":[[{"__symbolic":"reference","name":"EffectsRunner"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":76,"character":32}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":76,"character":48}}],[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":77,"character":32}}]]},{"provide":{"__symbolic":"reference","name":"USER_PROVIDED_EFFECTS"},"multi":true,"useValue":[]},{"provide":{"__symbolic":"reference","name":"ɵf"},"useFactory":{"__symbolic":"reference","name":"ɵb"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":88,"character":17},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"USER_PROVIDED_EFFECTS"}]}]}}}},"EffectSources":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs","name":"Subject","line":32,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":31,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":5},"arguments":[{"__symbolic":"reference","name":"EFFECTS_ERROR_HANDLER"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ErrorHandler","line":34,"character":26},{"__symbolic":"reference","name":"EffectsErrorHandler"}]}],"addEffects":[{"__symbolic":"method"}],"toActions":[{"__symbolic":"method"}]}},"EffectsRunner":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"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"}]}},"EffectNotification":{"__symbolic":"interface"},"EffectsFeatureModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":9,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵh"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":10,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":11,"character":5}}]],"parameters":[{"__symbolic":"reference","name":"EffectsRootModule"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreRootModule","line":10,"character":33},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreFeatureModule","line":11,"character":36}]}]}},"ROOT_EFFECTS_INIT":"@ngrx/effects/init","rootEffectsInit":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ngrx/store","name":"createAction","line":13,"character":31},"arguments":["@ngrx/effects/init"]},"EffectsRootModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵf"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":22,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":23,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":24,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":25,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵd"}]}]],"parameters":[{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"EffectsRunner"},{"__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","line":22,"character":33},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreFeatureModule","line":23,"character":36},{"__symbolic":"reference","name":"any"}]}],"addEffects":[{"__symbolic":"method"}]}},"EFFECTS_ERROR_HANDLER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":24,"character":41},"arguments":["ngrx/effects: Effects Error Handler"]},"act":{"__symbolic":"function"},"OnIdentifyEffects":{"__symbolic":"interface"},"OnRunEffects":{"__symbolic":"interface"},"OnInitEffects":{"__symbolic":"interface"},"USER_PROVIDED_EFFECTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":41},"arguments":["ngrx/effects: User Provided Effects"]}},"origins":{"ɵa":"./src/effects_metadata","ɵb":"./src/effects_module","ɵc":"./src/effects_module","ɵd":"./src/tokens","ɵe":"./src/tokens","ɵf":"./src/tokens","ɵg":"./src/tokens","ɵh":"./src/tokens","createEffect":"./src/effect_creator","EffectConfig":"./src/models","Effect":"./src/effect_decorator","getEffectsMetadata":"./src/effects_metadata","mergeEffects":"./src/effects_resolver","EffectsErrorHandler":"./src/effects_error_handler","defaultEffectsErrorHandler":"./src/effects_error_handler","EffectsMetadata":"./src/models","CreateEffectMetadata":"./src/models","Actions":"./src/actions","ofType":"./src/actions","EffectsModule":"./src/effects_module","EffectSources":"./src/effect_sources","EffectsRunner":"./src/effects_runner","EffectNotification":"./src/effect_notification","EffectsFeatureModule":"./src/effects_feature_module","ROOT_EFFECTS_INIT":"./src/effects_root_module","rootEffectsInit":"./src/effects_root_module","EffectsRootModule":"./src/effects_root_module","EFFECTS_ERROR_HANDLER":"./src/tokens","act":"./src/act","OnIdentifyEffects":"./src/lifecycle_hooks","OnRunEffects":"./src/lifecycle_hooks","OnInitEffects":"./src/lifecycle_hooks","USER_PROVIDED_EFFECTS":"./src/tokens"},"importAs":"@ngrx/effects"} |
{ | ||
"name": "@ngrx/effects", | ||
"version": "10.0.1", | ||
"version": "10.1.0", | ||
"description": "Side effect model for @ngrx/store", | ||
@@ -25,3 +25,3 @@ "repository": { | ||
"@angular/core": "^10.0.0", | ||
"@ngrx/store": "10.0.1", | ||
"@ngrx/store": "10.1.0", | ||
"rxjs": "^6.5.3" | ||
@@ -28,0 +28,0 @@ }, |
"use strict"; | ||
exports.__esModule = true; | ||
exports.platformVersion = void 0; | ||
exports.platformVersion = '^10.0.1'; | ||
exports.platformVersion = '^10.1.0'; | ||
//# sourceMappingURL=libs-version.js.map |
@@ -11,2 +11,2 @@ import { Injector, ModuleWithProviders, Type } from '@angular/core'; | ||
export declare function createEffectInstances(injector: Injector, effects: Type<any>[]): any[]; | ||
export declare function _provideForRootGuard(runner: EffectsRunner): any; | ||
export declare function _provideForRootGuard(runner: EffectsRunner, rootEffects: any[][]): any; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"provideMockActions":{"__symbolic":"function","parameters":["factoryOrSource"],"value":{"__symbolic":"error","message":"Lambda not supported","line":11,"character":16,"module":"./testing"}}},"origins":{"provideMockActions":"./testing"},"importAs":"@ngrx/effects/testing"} | ||
{"__symbolic":"module","version":4,"metadata":{"provideMockActions":{"__symbolic":"function","parameters":["factoryOrSource"],"value":{"__symbolic":"error","message":"Lambda not supported","line":70,"character":16,"module":"./testing"}}},"origins":{"provideMockActions":"./testing"},"importAs":"@ngrx/effects/testing"} |
@@ -1,4 +0,61 @@ | ||
import { Provider } from '@angular/core'; | ||
import { FactoryProvider } from '@angular/core'; | ||
import { Observable } from 'rxjs'; | ||
export declare function provideMockActions(source: Observable<any>): Provider; | ||
export declare function provideMockActions(factory: () => Observable<any>): Provider; | ||
/** | ||
* @description | ||
* Creates mock actions provider. | ||
* | ||
* @param source Actions' source | ||
*/ | ||
export declare function provideMockActions(source: Observable<any>): FactoryProvider; | ||
/** | ||
* @description | ||
* Creates mock actions provider. | ||
* | ||
* @param factory Actions' source creation function | ||
* | ||
* @usageNotes | ||
* | ||
* **With `TestBed.configureTestingModule`** | ||
* | ||
* ```ts | ||
* describe('Books Effects', () => { | ||
* let actions$: Observable<any>; | ||
* let effects: BooksEffects; | ||
* | ||
* beforeEach(() => { | ||
* TestBed.configureTestingModule({ | ||
* providers: [ | ||
* provideMockActions(() => actions$), | ||
* BooksEffects, | ||
* ], | ||
* }); | ||
* | ||
* actions$ = TestBed.inject(Actions); | ||
* effects = TestBed.inject(BooksEffects); | ||
* }); | ||
* }); | ||
* ``` | ||
* | ||
* **With `Injector.create`** | ||
* | ||
* ```ts | ||
* describe('Counter Effects', () => { | ||
* let injector: Injector; | ||
* let actions$: Observable<any>; | ||
* let effects: CounterEffects; | ||
* | ||
* beforeEach(() => { | ||
* injector = Injector.create({ | ||
* providers: [ | ||
* provideMockActions(() => actions$), | ||
* CounterEffects, | ||
* ], | ||
* }); | ||
* | ||
* actions$ = injector.get(Actions); | ||
* effects = injector.get(CounterEffects); | ||
* }); | ||
* }); | ||
* ``` | ||
*/ | ||
export declare function provideMockActions(factory: () => Observable<any>): FactoryProvider; |
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
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
691526
6173