@ngrx/effects
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -11,3 +11,3 @@ var __extends = (this && this.__extends) || (function () { | ||
})(); | ||
import { ScannedActionsSubject, Store, compose } from '@ngrx/store'; | ||
import { ScannedActionsSubject, Store, StoreModule, compose } from '@ngrx/store'; | ||
import { merge } from 'rxjs/observable/merge'; | ||
@@ -17,3 +17,3 @@ import { ignoreElements } from 'rxjs/operator/ignoreElements'; | ||
import { map } from 'rxjs/operator/map'; | ||
import { Inject, Injectable, InjectionToken, NgModule } from '@angular/core'; | ||
import { Inject, Injectable, InjectionToken, NgModule, Optional } from '@angular/core'; | ||
import { Observable } from 'rxjs/Observable'; | ||
@@ -371,4 +371,5 @@ import { filter } from 'rxjs/operator/filter'; | ||
* @param {?} rootEffects | ||
* @param {?} storeModule | ||
*/ | ||
function EffectsRootModule(sources, runner, rootEffects) { | ||
function EffectsRootModule(sources, runner, rootEffects, storeModule) { | ||
this.sources = sources; | ||
@@ -397,2 +398,3 @@ runner.start(); | ||
{ type: Array, decorators: [{ type: Inject, args: [ROOT_EFFECTS,] },] }, | ||
{ type: StoreModule, decorators: [{ type: Optional },] }, | ||
]; }; | ||
@@ -403,4 +405,5 @@ var EffectsFeatureModule = (function () { | ||
* @param {?} effectSourceGroups | ||
* @param {?} storeModule | ||
*/ | ||
function EffectsFeatureModule(root, effectSourceGroups) { | ||
function EffectsFeatureModule(root, effectSourceGroups, storeModule) { | ||
this.root = root; | ||
@@ -420,2 +423,3 @@ effectSourceGroups.forEach(function (group) { return group.forEach(function (effectSourceInstance) { return root.addEffects(effectSourceInstance); }); }); | ||
{ type: Array, decorators: [{ type: Inject, args: [FEATURE_EFFECTS,] },] }, | ||
{ type: StoreModule, decorators: [{ type: Optional },] }, | ||
]; }; | ||
@@ -489,2 +493,3 @@ var EffectsModule = (function () { | ||
/** | ||
* @deprecated Since version 4.1. Will be deleted in version 5.0. | ||
* @param {?} action | ||
@@ -491,0 +496,0 @@ * @return {?} |
@@ -1,2 +0,2 @@ | ||
import { ScannedActionsSubject, Store, compose } from '@ngrx/store'; | ||
import { ScannedActionsSubject, Store, StoreModule, compose } from '@ngrx/store'; | ||
import { merge } from 'rxjs/observable/merge'; | ||
@@ -6,3 +6,3 @@ import { ignoreElements } from 'rxjs/operator/ignoreElements'; | ||
import { map } from 'rxjs/operator/map'; | ||
import { Inject, Injectable, InjectionToken, NgModule } from '@angular/core'; | ||
import { Inject, Injectable, InjectionToken, NgModule, Optional } from '@angular/core'; | ||
import { Observable } from 'rxjs/Observable'; | ||
@@ -354,4 +354,5 @@ import { filter } from 'rxjs/operator/filter'; | ||
* @param {?} rootEffects | ||
* @param {?} storeModule | ||
*/ | ||
constructor(sources, runner, rootEffects) { | ||
constructor(sources, runner, rootEffects, storeModule) { | ||
this.sources = sources; | ||
@@ -379,2 +380,3 @@ runner.start(); | ||
{ type: Array, decorators: [{ type: Inject, args: [ROOT_EFFECTS,] },] }, | ||
{ type: StoreModule, decorators: [{ type: Optional },] }, | ||
]; | ||
@@ -386,4 +388,5 @@ | ||
* @param {?} effectSourceGroups | ||
* @param {?} storeModule | ||
*/ | ||
constructor(root, effectSourceGroups) { | ||
constructor(root, effectSourceGroups, storeModule) { | ||
this.root = root; | ||
@@ -402,2 +405,3 @@ effectSourceGroups.forEach(group => group.forEach(effectSourceInstance => root.addEffects(effectSourceInstance))); | ||
{ type: Array, decorators: [{ type: Inject, args: [FEATURE_EFFECTS,] },] }, | ||
{ type: StoreModule, decorators: [{ type: Optional },] }, | ||
]; | ||
@@ -466,2 +470,3 @@ | ||
/** | ||
* @deprecated Since version 4.1. Will be deleted in version 5.0. | ||
* @param {?} action | ||
@@ -468,0 +473,0 @@ * @return {?} |
@@ -362,4 +362,5 @@ (function (global, factory) { | ||
* @param {?} rootEffects | ||
* @param {?} storeModule | ||
*/ | ||
function EffectsRootModule(sources, runner, rootEffects) { | ||
function EffectsRootModule(sources, runner, rootEffects, storeModule) { | ||
this.sources = sources; | ||
@@ -388,2 +389,3 @@ runner.start(); | ||
{ type: Array, decorators: [{ type: _angular_core.Inject, args: [ROOT_EFFECTS,] },] }, | ||
{ type: _ngrx_store.StoreModule, decorators: [{ type: _angular_core.Optional },] }, | ||
]; }; | ||
@@ -394,4 +396,5 @@ var EffectsFeatureModule = (function () { | ||
* @param {?} effectSourceGroups | ||
* @param {?} storeModule | ||
*/ | ||
function EffectsFeatureModule(root, effectSourceGroups) { | ||
function EffectsFeatureModule(root, effectSourceGroups, storeModule) { | ||
this.root = root; | ||
@@ -411,2 +414,3 @@ effectSourceGroups.forEach(function (group) { return group.forEach(function (effectSourceInstance) { return root.addEffects(effectSourceInstance); }); }); | ||
{ type: Array, decorators: [{ type: _angular_core.Inject, args: [FEATURE_EFFECTS,] },] }, | ||
{ type: _ngrx_store.StoreModule, decorators: [{ type: _angular_core.Optional },] }, | ||
]; }; | ||
@@ -480,2 +484,3 @@ var EffectsModule = (function () { | ||
/** | ||
* @deprecated Since version 4.1. Will be deleted in version 5.0. | ||
* @param {?} action | ||
@@ -482,0 +487,0 @@ * @return {?} |
@@ -1,2 +0,2 @@ | ||
!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/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"],e):e((r.ngrx=r.ngrx||{},r.ngrx.effects=r.ngrx.effects||{}),r.ngrx.store,r.Rx.Observable,r.Rx.Observable.prototype,r.rxjs_operator_materialize,r.rxjs_operator_map,r.ng.core,r.Rx,r.Rx.Observable.prototype,r.rxjs_operator_groupBy,r.rxjs_operator_mergeMap,r.rxjs_operator_exhaustMap,r.rxjs_operator_dematerialize,r.rxjs_Subject)}(this,function(r,e,t,o,n,c,a,i,s,u,f,p,l,d){"use strict";function y(r){return!!r.propDecorators}function g(r){var e=r.propDecorators;return Object.keys(e).reduce(function(r,t){return r.concat(x(e[t],t))},[])}function x(r,e){return r.filter(function(r){return r.type===v}).map(function(r){var t=!0;return r.args&&r.args.length&&(t=!!r.args[0].dispatch),{propertyName:e,dispatch:t}})}function j(r){return y(r.constructor)?g(r.constructor):z.hasOwnMetadata(R,r)?z.getOwnMetadata(R,r):[]}function h(r,e){z.defineMetadata(R,e,r)}function v(r){var e=(void 0===r?{dispatch:!0}:r).dispatch;return function(r,t){var o=j(r),n={propertyName:t,dispatch:e};h(r,o.concat([n]))}}function m(r){return Object.getPrototypeOf(r)}function b(r){var e=m(r);return A in e&&"function"==typeof e[A]}function E(r){var e=m(r).constructor.name,a=k(r).map(function(t){var a=t.propertyName,i=t.dispatch,s="function"==typeof r[a]?r[a]():r[a];if(!1===i)return o.ignoreElements.call(s);var u=n.materialize.call(s);return c.map.call(u,function(t){return{effect:r[a],notification:t,propertyName:a,sourceName:e,sourceInstance:r}})});return t.merge.apply(void 0,a)}function _(r){var e=E(r);return b(r)?r.ngrxOnRunEffects(e):e}function O(r,e){M(r,e),S(r,e)}function M(r,e){if("E"===r.notification.kind){var t="Effect "+q(r)+" threw an error";e.report(t,{Source:r.sourceInstance,Effect:r.effect,Error:r.notification.error,Notification:r.notification})}}function S(r,e){if("N"===r.notification.kind){var t=r.notification.value;if(!I(t)){var o="Effect "+q(r)+" dispatched an invalid action";e.report(o,{Source:r.sourceInstance,Effect:r.effect,Dispatched:t,Notification:r.notification})}}}function I(r){return r&&r.type&&"string"==typeof r.type}function q(r){var e=r.propertyName,t=r.sourceInstance;return'"'+r.sourceName+"."+e+("function"==typeof t[e]?"()":"")+'"'}function N(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return r}function P(r){return r.payload}var w=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)}}(),R="@ngrx/effects",z=Reflect,k=e.compose(j,m),A="ngrxOnRunEffects",B=function(r){function e(e){var t=r.call(this)||this;return e&&(t.source=e),t}return w(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 s.filter.call(this,function(e){return r.some(function(r){return r===e.type})})},e}(i.Observable);B.decorators=[{type:a.Injectable}],B.ctorParameters=function(){return[{type:i.Observable,decorators:[{type:a.Inject,args:[e.ScannedActionsSubject]}]}]};var T=(new a.InjectionToken("ngrx/effects: Immediate Effects"),new a.InjectionToken("ngrx/effects: Root Effects")),D=new a.InjectionToken("ngrx/effects: Feature Effects"),F=new a.InjectionToken("Browser Console"),C=function(){function r(r){this.console=r}return r.prototype.report=function(r,e){this.console.group(r);for(var t in e)this.console.error(t+":",e[t]);this.console.groupEnd()},r}();C.decorators=[{type:a.Injectable}],C.ctorParameters=function(){return[{type:void 0,decorators:[{type:a.Inject,args:[F]}]}]};var V=function(r){function e(e){var t=r.call(this)||this;return t.errorReporter=e,t}return w(e,r),e.prototype.addEffects=function(r){this.next(r)},e.prototype.toActions=function(){var r=this;return f.mergeMap.call(u.groupBy.call(this,m),function(e){return l.dematerialize.call(c.map.call(p.exhaustMap.call(e,_),function(e){return O(e,r.errorReporter),e.notification}))})},e}(d.Subject);V.decorators=[{type:a.Injectable}],V.ctorParameters=function(){return[{type:C}]};var G=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}();G.decorators=[{type:a.Injectable}],G.ctorParameters=function(){return[{type:V},{type:e.Store}]};var H=function(){function r(r,e,t){this.sources=r,e.start(),t.forEach(function(e){return r.addEffects(e)})}return r.prototype.addEffects=function(r){this.sources.addEffects(r)},r}();H.decorators=[{type:a.NgModule,args:[{}]}],H.ctorParameters=function(){return[{type:V},{type:G},{type:Array,decorators:[{type:a.Inject,args:[T]}]}]};var J=function(){function r(r,e){this.root=r,e.forEach(function(e){return e.forEach(function(e){return r.addEffects(e)})})}return r}();J.decorators=[{type:a.NgModule,args:[{}]}],J.ctorParameters=function(){return[{type:H},{type:Array,decorators:[{type:a.Inject,args:[D]}]}]};var K=function(){function r(){}return r.forFeature=function(r){return{ngModule:J,providers:[r,{provide:D,multi:!0,deps:r,useFactory:N}]}},r.forRoot=function(r){return{ngModule:H,providers:[G,V,C,B,r,{provide:T,deps:r,useFactory:N},{provide:F,useValue:console}]}},r}();K.decorators=[{type:a.NgModule,args:[{}]}],K.ctorParameters=function(){return[]},r.Effect=v,r.mergeEffects=E,r.Actions=B,r.EffectsModule=K,r.EffectSources=V,r.toPayload=P,r.ɵb=J,r.ɵa=N,r.ɵf=H,r.ɵh=G,r.ɵg=C,r.ɵe=F,r.ɵd=D,r.ɵc=T,Object.defineProperty(r,"__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/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"],e):e((r.ngrx=r.ngrx||{},r.ngrx.effects=r.ngrx.effects||{}),r.ngrx.store,r.Rx.Observable,r.Rx.Observable.prototype,r.rxjs_operator_materialize,r.rxjs_operator_map,r.ng.core,r.Rx,r.Rx.Observable.prototype,r.rxjs_operator_groupBy,r.rxjs_operator_mergeMap,r.rxjs_operator_exhaustMap,r.rxjs_operator_dematerialize,r.rxjs_Subject)}(this,function(r,e,t,o,n,c,a,i,s,u,f,p,l,d){"use strict";function y(r){return!!r.propDecorators}function g(r){var e=r.propDecorators;return Object.keys(e).reduce(function(r,t){return r.concat(x(e[t],t))},[])}function x(r,e){return r.filter(function(r){return r.type===v}).map(function(r){var t=!0;return r.args&&r.args.length&&(t=!!r.args[0].dispatch),{propertyName:e,dispatch:t}})}function j(r){return y(r.constructor)?g(r.constructor):z.hasOwnMetadata(R,r)?z.getOwnMetadata(R,r):[]}function h(r,e){z.defineMetadata(R,e,r)}function v(r){var e=(void 0===r?{dispatch:!0}:r).dispatch;return function(r,t){var o=j(r),n={propertyName:t,dispatch:e};h(r,o.concat([n]))}}function m(r){return Object.getPrototypeOf(r)}function b(r){var e=m(r);return A in e&&"function"==typeof e[A]}function E(r){var e=m(r).constructor.name,a=k(r).map(function(t){var a=t.propertyName,i=t.dispatch,s="function"==typeof r[a]?r[a]():r[a];if(!1===i)return o.ignoreElements.call(s);var u=n.materialize.call(s);return c.map.call(u,function(t){return{effect:r[a],notification:t,propertyName:a,sourceName:e,sourceInstance:r}})});return t.merge.apply(void 0,a)}function _(r){var e=E(r);return b(r)?r.ngrxOnRunEffects(e):e}function O(r,e){M(r,e),S(r,e)}function M(r,e){if("E"===r.notification.kind){var t="Effect "+q(r)+" threw an error";e.report(t,{Source:r.sourceInstance,Effect:r.effect,Error:r.notification.error,Notification:r.notification})}}function S(r,e){if("N"===r.notification.kind){var t=r.notification.value;if(!I(t)){var o="Effect "+q(r)+" dispatched an invalid action";e.report(o,{Source:r.sourceInstance,Effect:r.effect,Dispatched:t,Notification:r.notification})}}}function I(r){return r&&r.type&&"string"==typeof r.type}function q(r){var e=r.propertyName,t=r.sourceInstance;return'"'+r.sourceName+"."+e+("function"==typeof t[e]?"()":"")+'"'}function N(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return r}function P(r){return r.payload}var w=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)}}(),R="@ngrx/effects",z=Reflect,k=e.compose(j,m),A="ngrxOnRunEffects",B=function(r){function e(e){var t=r.call(this)||this;return e&&(t.source=e),t}return w(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 s.filter.call(this,function(e){return r.some(function(r){return r===e.type})})},e}(i.Observable);B.decorators=[{type:a.Injectable}],B.ctorParameters=function(){return[{type:i.Observable,decorators:[{type:a.Inject,args:[e.ScannedActionsSubject]}]}]};var T=(new a.InjectionToken("ngrx/effects: Immediate Effects"),new a.InjectionToken("ngrx/effects: Root Effects")),D=new a.InjectionToken("ngrx/effects: Feature Effects"),F=new a.InjectionToken("Browser Console"),C=function(){function r(r){this.console=r}return r.prototype.report=function(r,e){this.console.group(r);for(var t in e)this.console.error(t+":",e[t]);this.console.groupEnd()},r}();C.decorators=[{type:a.Injectable}],C.ctorParameters=function(){return[{type:void 0,decorators:[{type:a.Inject,args:[F]}]}]};var V=function(r){function e(e){var t=r.call(this)||this;return t.errorReporter=e,t}return w(e,r),e.prototype.addEffects=function(r){this.next(r)},e.prototype.toActions=function(){var r=this;return f.mergeMap.call(u.groupBy.call(this,m),function(e){return l.dematerialize.call(c.map.call(p.exhaustMap.call(e,_),function(e){return O(e,r.errorReporter),e.notification}))})},e}(d.Subject);V.decorators=[{type:a.Injectable}],V.ctorParameters=function(){return[{type:C}]};var G=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}();G.decorators=[{type:a.Injectable}],G.ctorParameters=function(){return[{type:V},{type:e.Store}]};var H=function(){function r(r,e,t,o){this.sources=r,e.start(),t.forEach(function(e){return r.addEffects(e)})}return r.prototype.addEffects=function(r){this.sources.addEffects(r)},r}();H.decorators=[{type:a.NgModule,args:[{}]}],H.ctorParameters=function(){return[{type:V},{type:G},{type:Array,decorators:[{type:a.Inject,args:[T]}]},{type:e.StoreModule,decorators:[{type:a.Optional}]}]};var J=function(){function r(r,e,t){this.root=r,e.forEach(function(e){return e.forEach(function(e){return r.addEffects(e)})})}return r}();J.decorators=[{type:a.NgModule,args:[{}]}],J.ctorParameters=function(){return[{type:H},{type:Array,decorators:[{type:a.Inject,args:[D]}]},{type:e.StoreModule,decorators:[{type:a.Optional}]}]};var K=function(){function r(){}return r.forFeature=function(r){return{ngModule:J,providers:[r,{provide:D,multi:!0,deps:r,useFactory:N}]}},r.forRoot=function(r){return{ngModule:H,providers:[G,V,C,B,r,{provide:T,deps:r,useFactory:N},{provide:F,useValue:console}]}},r}();K.decorators=[{type:a.NgModule,args:[{}]}],K.ctorParameters=function(){return[]},r.Effect=v,r.mergeEffects=E,r.Actions=B,r.EffectsModule=K,r.EffectSources=V,r.toPayload=P,r.ɵb=J,r.ɵa=N,r.ɵf=H,r.ɵh=G,r.ɵg=C,r.ɵe=F,r.ɵd=D,r.ɵc=T,Object.defineProperty(r,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=./dist/effects/bundles/effects.umd.min.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":3,"metadata":{"ɵa":{"__symbolic":"function","parameters":["instances"],"value":{"__symbolic":"reference","name":"instances"}},"Effect":{"__symbolic":"function","parameters":["dispatch"],"defaults":[{"dispatch":true}],"value":{"__symbolic":"error","message":"Function call not supported","line":57,"character":9,"module":"./src/effects_metadata"}},"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":8,"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":8,"character":65,"context":{"typeName":"V"},"module":"./src/actions"}]}]}],"lift":[{"__symbolic":"method"}],"ofType":[{"__symbolic":"method"}]}},"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":"ɵb"},"providers":[{"__symbolic":"reference","name":"featureEffects"},{"provide":{"__symbolic":"reference","name":"ɵd"},"multi":true,"deps":{"__symbolic":"reference","name":"featureEffects"},"useFactory":{"__symbolic":"reference","name":"ɵa"}}]}},"forRoot":{"__symbolic":"function","parameters":["rootEffects"],"value":{"ngModule":{"__symbolic":"reference","name":"ɵf"},"providers":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"Actions"},{"__symbolic":"reference","name":"rootEffects"},{"provide":{"__symbolic":"reference","name":"ɵc"},"deps":{"__symbolic":"reference","name":"rootEffects"},"useFactory":{"__symbolic":"reference","name":"ɵa"}},{"provide":{"__symbolic":"reference","name":"ɵe"},"useValue":{"__symbolic":"reference","name":"console"}}]}}}},"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","name":"ɵg"}]}],"addEffects":[{"__symbolic":"method"}],"toActions":[{"__symbolic":"method"}]}},"OnRunEffects":{"__symbolic":"interface"},"toPayload":{"__symbolic":"function","parameters":["action"],"value":{"__symbolic":"error","message":"Expression form not supported","line":3,"character":10,"module":"./src/util"}},"ɵb":{"__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":"ɵd"}]}]],"parameters":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}]}},"ɵc":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ngrx/effects: Root Effects"]},"ɵd":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ngrx/effects: Feature Effects"]},"ɵe":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["Browser Console"]},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}]],"parameters":[{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"addEffects":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","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","name":"ɵe"}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"report":[{"__symbolic":"method"}]}},"ɵh":{"__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","Effect":"./src/effects_metadata","mergeEffects":"./src/effects_resolver","Actions":"./src/actions","EffectsModule":"./src/effects_module","EffectSources":"./src/effect_sources","OnRunEffects":"./src/on_run_effects","toPayload":"./src/util","ɵb":"./src/effects_feature_module","ɵc":"./src/tokens","ɵd":"./src/tokens","ɵe":"./src/tokens","ɵf":"./src/effects_root_module","ɵg":"./src/error_reporter","ɵh":"./src/effects_runner"},"importAs":"@ngrx/effects"} | ||
{"__symbolic":"module","version":3,"metadata":{"ɵa":{"__symbolic":"function","parameters":["instances"],"value":{"__symbolic":"reference","name":"instances"}},"Effect":{"__symbolic":"function","parameters":["dispatch"],"defaults":[{"dispatch":true}],"value":{"__symbolic":"error","message":"Function call not supported","line":57,"character":9,"module":"./src/effects_metadata"}},"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":8,"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":8,"character":65,"context":{"typeName":"V"},"module":"./src/actions"}]}]}],"lift":[{"__symbolic":"method"}],"ofType":[{"__symbolic":"method"}]}},"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":"ɵb"},"providers":[{"__symbolic":"reference","name":"featureEffects"},{"provide":{"__symbolic":"reference","name":"ɵd"},"multi":true,"deps":{"__symbolic":"reference","name":"featureEffects"},"useFactory":{"__symbolic":"reference","name":"ɵa"}}]}},"forRoot":{"__symbolic":"function","parameters":["rootEffects"],"value":{"ngModule":{"__symbolic":"reference","name":"ɵf"},"providers":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"Actions"},{"__symbolic":"reference","name":"rootEffects"},{"provide":{"__symbolic":"reference","name":"ɵc"},"deps":{"__symbolic":"reference","name":"rootEffects"},"useFactory":{"__symbolic":"reference","name":"ɵa"}},{"provide":{"__symbolic":"reference","name":"ɵe"},"useValue":{"__symbolic":"reference","name":"console"}}]}}}},"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","name":"ɵg"}]}],"addEffects":[{"__symbolic":"method"}],"toActions":[{"__symbolic":"method"}]}},"OnRunEffects":{"__symbolic":"interface"},"toPayload":{"__symbolic":"function","parameters":["action"],"value":{"__symbolic":"error","message":"Expression form not supported","line":6,"character":10,"module":"./src/util"}},"EffectNotification":{"__symbolic":"interface"},"ɵb":{"__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":"ɵd"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreModule"}]}]}},"ɵc":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ngrx/effects: Root Effects"]},"ɵd":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ngrx/effects: Feature Effects"]},"ɵe":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["Browser Console"]},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"EffectSources"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@ngrx/store","name":"StoreModule"}]}],"addEffects":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","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","name":"ɵe"}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"report":[{"__symbolic":"method"}]}},"ɵh":{"__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","Effect":"./src/effects_metadata","mergeEffects":"./src/effects_resolver","Actions":"./src/actions","EffectsModule":"./src/effects_module","EffectSources":"./src/effect_sources","OnRunEffects":"./src/on_run_effects","toPayload":"./src/util","EffectNotification":"./src/effect_notification","ɵb":"./src/effects_feature_module","ɵc":"./src/tokens","ɵd":"./src/tokens","ɵe":"./src/tokens","ɵf":"./src/effects_root_module","ɵg":"./src/error_reporter","ɵh":"./src/effects_runner"},"importAs":"@ngrx/effects"} |
{ | ||
"name": "@ngrx/effects", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Side effect model for @ngrx/store", | ||
@@ -5,0 +5,0 @@ "module": "@ngrx/effects.es5.js", |
@@ -0,5 +1,6 @@ | ||
import { StoreModule } from '@ngrx/store'; | ||
import { EffectsRootModule } from './effects_root_module'; | ||
export declare class EffectsFeatureModule { | ||
private root; | ||
constructor(root: EffectsRootModule, effectSourceGroups: any[][]); | ||
constructor(root: EffectsRootModule, effectSourceGroups: any[][], storeModule: StoreModule); | ||
} |
@@ -1,2 +0,3 @@ | ||
import { NgModule, Inject } from '@angular/core'; | ||
import { NgModule, Inject, Optional } from '@angular/core'; | ||
import { StoreModule } from '@ngrx/store'; | ||
import { EffectsRootModule } from './effects_root_module'; | ||
@@ -8,4 +9,5 @@ import { FEATURE_EFFECTS } from './tokens'; | ||
* @param {?} effectSourceGroups | ||
* @param {?} storeModule | ||
*/ | ||
constructor(root, effectSourceGroups) { | ||
constructor(root, effectSourceGroups, storeModule) { | ||
this.root = root; | ||
@@ -24,2 +26,3 @@ effectSourceGroups.forEach(group => group.forEach(effectSourceInstance => root.addEffects(effectSourceInstance))); | ||
{ type: Array, decorators: [{ type: Inject, args: [FEATURE_EFFECTS,] },] }, | ||
{ type: StoreModule, decorators: [{ type: Optional },] }, | ||
]; | ||
@@ -26,0 +29,0 @@ function EffectsFeatureModule_tsickle_Closure_declarations() { |
@@ -0,1 +1,2 @@ | ||
import { StoreModule } from '@ngrx/store'; | ||
import { EffectsRunner } from './effects_runner'; | ||
@@ -5,4 +6,4 @@ import { EffectSources } from './effect_sources'; | ||
private sources; | ||
constructor(sources: EffectSources, runner: EffectsRunner, rootEffects: any[]); | ||
constructor(sources: EffectSources, runner: EffectsRunner, rootEffects: any[], storeModule: StoreModule); | ||
addEffects(effectSourceInstance: any): void; | ||
} |
@@ -1,2 +0,3 @@ | ||
import { NgModule, Inject } from '@angular/core'; | ||
import { NgModule, Inject, Optional } from '@angular/core'; | ||
import { StoreModule } from '@ngrx/store'; | ||
import { EffectsRunner } from './effects_runner'; | ||
@@ -10,4 +11,5 @@ import { EffectSources } from './effect_sources'; | ||
* @param {?} rootEffects | ||
* @param {?} storeModule | ||
*/ | ||
constructor(sources, runner, rootEffects) { | ||
constructor(sources, runner, rootEffects, storeModule) { | ||
this.sources = sources; | ||
@@ -35,2 +37,3 @@ runner.start(); | ||
{ type: Array, decorators: [{ type: Inject, args: [ROOT_EFFECTS,] },] }, | ||
{ type: StoreModule, decorators: [{ type: Optional },] }, | ||
]; | ||
@@ -37,0 +40,0 @@ function EffectsRootModule_tsickle_Closure_declarations() { |
@@ -8,1 +8,2 @@ export { Effect } from './effects_metadata'; | ||
export { toPayload } from './util'; | ||
export { EffectNotification } from './effect_notification'; |
import { Action } from '@ngrx/store'; | ||
/** | ||
* @deprecated Since version 4.1. Will be deleted in version 5.0. | ||
*/ | ||
export declare function toPayload(action: Action): any; |
/** | ||
* @deprecated Since version 4.1. Will be deleted in version 5.0. | ||
* @param {?} action | ||
@@ -3,0 +4,0 @@ * @return {?} |
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
214314
2271