@ngxs-labs/emitter
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -23,5 +23,8 @@ (function (global, factory) { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
@@ -36,3 +39,3 @@ function __extends(d, b) { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -87,3 +90,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -190,3 +193,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -236,3 +239,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -261,3 +264,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -301,2 +304,3 @@ var EmitStore = /** @class */ (function (_super) { | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -308,2 +312,3 @@ * @param {?} metadata - Receiver function metadata | ||
EmitStore.prototype.dispatchSingle = /** | ||
* @private | ||
* @template T, U | ||
@@ -335,2 +340,3 @@ * @param {?} metadata - Receiver function metadata | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -342,2 +348,3 @@ * @param {?} metadata - Receiver function metadata | ||
EmitStore.prototype.dispatchMany = /** | ||
* @private | ||
* @template T, U | ||
@@ -369,3 +376,3 @@ * @param {?} metadata - Receiver function metadata | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -392,3 +399,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -426,3 +433,3 @@ var NgxsEmitPluginModule = /** @class */ (function () { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -439,5 +446,3 @@ /** | ||
var types = {}; | ||
/** @type {?} */ | ||
var i = receivers.length; | ||
while (i--) { | ||
for (var i = receivers.length - 1; i >= 0; i--) { | ||
/** @type {?} */ | ||
@@ -444,0 +449,0 @@ var receiver = receivers[i]; |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@ngxs/store"),require("@angular/core"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngxs-labs/emitter",["exports","@ngxs/store","@angular/core","rxjs/operators"],e):e((t["ngxs-labs"]=t["ngxs-labs"]||{},t["ngxs-labs"].emitter={}),t["ngxs-store"],t.ng.core,t.rxjs.operators)}(this,function(t,l,r,e){"use strict";var d="NGXS_RECEIVER_META";function i(t){return Array.isArray(t)?t:[t]}function h(t,e,r){var n={type:"[ID:"+function u(){return(Math.random()*Date.now()).toString(36).slice(0,8)}()+"] "+e.name+"."+r,payload:undefined,action:undefined,cancelUncompleted:!0};if(!t)return n;var o=t.type,i=t.payload,a=t.action,c=t.cancelUncompleted;return o&&(n.type=o),i&&(n.payload=i),a&&(n.action=a,Array.isArray(a)||(n.type=a.type)),"boolean"==typeof c&&(n.cancelUncompleted=c),n}var n=function(){function e(t){e.injector=t}return e.getInjector=function(){if(!this.injector)throw new Error("You've forgotten to import `NgxsEmitPluginModule`");return this.injector},e.injector=null,e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:r.Injector}]},e}(),o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};var a=function(){function t(t){this.payload=t}return t.type=null,t}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function n(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.emitter=function(t){var e=this,r=t[d];if(!r)throw new Error("I can't seem to find static metadata. Have you decorated "+t.name+" with @Receiver()?");return{emit:function(t){return e.dispatchSingle(r,t)},emitMany:function(t){return e.dispatchMany(r,t)}}},e.prototype.dispatchSingle=function(t,e){a.type=t.type,void 0===e&&t.payload!==undefined&&(e=t.payload);var r=t.action;if(r){var n=i(r);return this.dispatch(function o(t,e){return t.map(function(t){return new t(e)})}(n,e))}return this.dispatch(new a(e))},e.prototype.dispatchMany=function(t,e){if(!Array.isArray(e))return this.dispatch([]);a.type=t.type;var r=t.action;if(r){var n=i(r);return this.dispatch(function u(t,e){for(var r=[],n=0,o=t.length;n<o;n++)for(var i=t[n],a=0,c=e.length;a<c;a++)r.push(new i(e[a]));return r}(n,e))}return this.dispatch(e.map(function(t){return new a(t)}))},e.decorators=[{type:r.Injectable}],e}(l.Store);var u=function(){function t(t){this.injectorAccessor=t}return t.forRoot=function(){return{ngModule:t,providers:[c,n]}},t.decorators=[{type:r.NgModule}],t.ctorParameters=function(){return[{type:n,decorators:[{type:r.Self}]}]},t}();function p(t){for(var e={},r=t.length;r--;){var n=t[r];if("function"!=typeof n)throw new TypeError("Receiver should be a function, got "+n);var o=n[d];if(!o||!o.type)throw new Error(n.name+" should be decorated using @Receiver() decorator");e[o.type]=!0}return e}function f(n,o){return function(t){return t.pipe(e.filter(function(t){var e=n[l.getActionTypeFromInstance(t.action)],r=t.status===o;return e&&r}),e.map(function(t){var e=t.action,r=t.error;return{type:l.getActionTypeFromInstance(e),payload:e.payload,error:r}}))}}t.Receiver=function s(y){return function(t,e,r){if("undefined"==typeof t.prototype||!r||"function"!=typeof t[e])throw new TypeError("Only static functions can be decorated with @Receiver() decorator");if(e in t.prototype)throw new Error("Property with name `"+e.toString()+"` already exists, please rename to avoid conflicts");"string"!=typeof e&&(e=String(e));var n=l.ensureStoreMetadata(t),o=h(y,t,e),i=o.type,a=o.payload,c=o.action,u=o.cancelUncompleted;if(n.actions.hasOwnProperty(i))throw new Error("Method decorated with such type `"+i+"` already exists");if(Array.isArray(c))for(var p=0,f=c.length;p<f;p++){var s=c[p].type;n.actions[s]=[{fn:""+e,options:{cancelUncompleted:u},type:s}]}else n.actions[i]=[{fn:""+e,options:{cancelUncompleted:u},type:i}];r.value[d]={type:i,action:c,payload:a},t.prototype[e]=function(){return t[e].apply(t,arguments)}}},t.Emitter=function y(r){return function(t,e){Object.defineProperty(t,e,{get:function(){return n.getInjector().get(c).emitter(r)}})}},t.EmitterAction=a,t.NgxsEmitPluginModule=u,t.EmitStore=c,t.ofEmittableDispatched=function g(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f(p(t),"DISPATCHED")},t.ofEmittableSuccessful=function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f(p(t),"SUCCESSFUL")},t.ofEmittableCanceled=function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f(p(t),"CANCELED")},t.ofEmittableErrored=function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f(p(t),"ERRORED")},t.ɵb=f,t.ɵc=n,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@ngxs/store"),require("@angular/core"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngxs-labs/emitter",["exports","@ngxs/store","@angular/core","rxjs/operators"],e):e((t["ngxs-labs"]=t["ngxs-labs"]||{},t["ngxs-labs"].emitter={}),t["ngxs-store"],t.ng.core,t.rxjs.operators)}(this,function(t,l,r,e){"use strict";var d="NGXS_RECEIVER_META";function i(t){return Array.isArray(t)?t:[t]}function h(t,e,r){var n={type:"[ID:"+function u(){return(Math.random()*Date.now()).toString(36).slice(0,8)}()+"] "+e.name+"."+r,payload:undefined,action:undefined,cancelUncompleted:!0};if(!t)return n;var o=t.type,i=t.payload,a=t.action,c=t.cancelUncompleted;return o&&(n.type=o),i&&(n.payload=i),a&&(n.action=a,Array.isArray(a)||(n.type=a.type)),"boolean"==typeof c&&(n.cancelUncompleted=c),n}var n=function(){function e(t){e.injector=t}return e.getInjector=function(){if(!this.injector)throw new Error("You've forgotten to import `NgxsEmitPluginModule`");return this.injector},e.injector=null,e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:r.Injector}]},e}(),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var a=function(){function t(t){this.payload=t}return t.type=null,t}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function n(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.emitter=function(t){var e=this,r=t[d];if(!r)throw new Error("I can't seem to find static metadata. Have you decorated "+t.name+" with @Receiver()?");return{emit:function(t){return e.dispatchSingle(r,t)},emitMany:function(t){return e.dispatchMany(r,t)}}},e.prototype.dispatchSingle=function(t,e){a.type=t.type,void 0===e&&t.payload!==undefined&&(e=t.payload);var r=t.action;if(r){var n=i(r);return this.dispatch(function o(t,e){return t.map(function(t){return new t(e)})}(n,e))}return this.dispatch(new a(e))},e.prototype.dispatchMany=function(t,e){if(!Array.isArray(e))return this.dispatch([]);a.type=t.type;var r=t.action;if(r){var n=i(r);return this.dispatch(function u(t,e){for(var r=[],n=0,o=t.length;n<o;n++)for(var i=t[n],a=0,c=e.length;a<c;a++)r.push(new i(e[a]));return r}(n,e))}return this.dispatch(e.map(function(t){return new a(t)}))},e.decorators=[{type:r.Injectable}],e}(l.Store);var u=function(){function t(t){this.injectorAccessor=t}return t.forRoot=function(){return{ngModule:t,providers:[c,n]}},t.decorators=[{type:r.NgModule}],t.ctorParameters=function(){return[{type:n,decorators:[{type:r.Self}]}]},t}();function p(t){for(var e={},r=t.length-1;0<=r;r--){var n=t[r];if("function"!=typeof n)throw new TypeError("Receiver should be a function, got "+n);var o=n[d];if(!o||!o.type)throw new Error(n.name+" should be decorated using @Receiver() decorator");e[o.type]=!0}return e}function f(n,o){return function(t){return t.pipe(e.filter(function(t){var e=n[l.getActionTypeFromInstance(t.action)],r=t.status===o;return e&&r}),e.map(function(t){var e=t.action,r=t.error;return{type:l.getActionTypeFromInstance(e),payload:e.payload,error:r}}))}}t.Receiver=function s(y){return function(t,e,r){if("undefined"==typeof t.prototype||!r||"function"!=typeof t[e])throw new TypeError("Only static functions can be decorated with @Receiver() decorator");if(e in t.prototype)throw new Error("Property with name `"+e.toString()+"` already exists, please rename to avoid conflicts");"string"!=typeof e&&(e=String(e));var n=l.ensureStoreMetadata(t),o=h(y,t,e),i=o.type,a=o.payload,c=o.action,u=o.cancelUncompleted;if(n.actions.hasOwnProperty(i))throw new Error("Method decorated with such type `"+i+"` already exists");if(Array.isArray(c))for(var p=0,f=c.length;p<f;p++){var s=c[p].type;n.actions[s]=[{fn:""+e,options:{cancelUncompleted:u},type:s}]}else n.actions[i]=[{fn:""+e,options:{cancelUncompleted:u},type:i}];r.value[d]={type:i,action:c,payload:a},t.prototype[e]=function(){return t[e].apply(t,arguments)}}},t.Emitter=function y(r){return function(t,e){Object.defineProperty(t,e,{get:function(){return n.getInjector().get(c).emitter(r)}})}},t.EmitterAction=a,t.NgxsEmitPluginModule=u,t.EmitStore=c,t.ofEmittableDispatched=function g(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f(p(t),"DISPATCHED")},t.ofEmittableSuccessful=function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f(p(t),"SUCCESSFUL")},t.ofEmittableCanceled=function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f(p(t),"CANCELED")},t.ofEmittableErrored=function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f(p(t),"ERRORED")},t.ɵb=f,t.ɵc=n,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngxs-labs-emitter.umd.min.js.map |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { Receiver, Emitter, EmitterAction, NgxsEmitPluginModule, EmitStore, ofEmittableDispatched, ofEmittableSuccessful, ofEmittableCanceled, ofEmittableErrored } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4cy1sYWJzL2VtaXR0ZXIvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEseUtBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { InjectorAccessor } from '../services/injector-accessor.service'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { ensureStoreMetadata } from '@ngxs/store'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** @enum {string} */ |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -18,5 +18,3 @@ import { getActionTypeFromInstance } from '@ngxs/store'; | ||
const types = {}; | ||
/** @type {?} */ | ||
let i = receivers.length; | ||
while (i--) { | ||
for (let i = receivers.length - 1; i >= 0; i--) { | ||
/** @type {?} */ | ||
@@ -88,2 +86,2 @@ const receiver = receivers[i]; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2YtZW1pdHR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gPSB0eXBlc1tnZXRBY3Rpb25UeXBlRnJvbUluc3RhbmNlKGN0eC5hY3Rpb24pXTtcbiAgICAgICAgICAgICAgICBjb25zdCBjb250ZXh0SGFzVHJhbnNtaXR0ZWRTdGF0dXMgPSBjdHguc3RhdHVzID09PSBzdGF0dXM7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGhhc2hNYXBIYXNUeXBlICYmIGNvbnRleHRIYXNUcmFuc21pdHRlZFN0YXR1cztcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgbWFwKCh7IGFjdGlvbiwgZXJyb3IgfTogQWN0aW9uQ29udGV4dCkgPT4gKHtcbiAgICAgICAgICAgICAgICB0eXBlOiBnZXRBY3Rpb25UeXBlRnJvbUluc3RhbmNlKGFjdGlvbiksXG4gICAgICAgICAgICAgICAgcGF5bG9hZDogYWN0aW9uLnBheWxvYWQsXG4gICAgICAgICAgICAgICAgZXJyb3JcbiAgICAgICAgICAgIH0pKVxuICAgICAgICApO1xuICAgIH07XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2YtZW1pdHRhYmxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5neHMtbGFicy9lbWl0dGVyLyIsInNvdXJjZXMiOlsibGliL2NvcmUvb3BlcmF0b3JzL29mLWVtaXR0YWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBR3hELE9BQU8sRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFN0MsT0FBTyxFQUFFLGlCQUFpQixFQUFrRixNQUFNLHVCQUF1QixDQUFDOzs7Ozs7OztBQVMxSSxTQUFTLGdCQUFnQixDQUFDLFNBQXFCOztVQUNyQyxLQUFLLEdBQVUsRUFBRTtJQUV2QixLQUFLLElBQUksQ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GFjdGlvbiksXG4gICAgICAgICAgICAgICAgcGF5bG9hZDogYWN0aW9uLnBheWxvYWQsXG4gICAgICAgICAgICAgICAgZXJyb3JcbiAgICAgICAgICAgIH0pKVxuICAgICAgICApO1xuICAgIH07XG59XG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -27,2 +27,3 @@ import { Injectable } from '@angular/core'; | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -49,2 +50,3 @@ * @param {?} metadata - Receiver function metadata | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -72,2 +74,2 @@ * @param {?} metadata - Receiver function metadata | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1pdC1zdG9yZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5neHMtbGFicy9lbWl0dGVyLyIsInNvdXJjZXMiOlsibGliL2NvcmUvc2VydmljZXMvZW1pdC1zdG9yZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFJcEMsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ25ELE9BQU8sRUFDSCxpQkFBaUIsRUFHakIsbUJBQW1CLEVBQ25CLG1DQUFtQyxFQUNuQyxpQ0FBaUMsRUFDcEMsTUFBTSx1QkFBdUIsQ0FBQztBQUcvQixNQUFNLE9BQU8sU0FBVSxTQUFRLEtBQUs7Ozs7OztJQUt6QixPQUFPLENBQW1CLFFBQWtCOztjQUN6QyxRQUFRLEdBQXFC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lzcGF0Y2hcbiAgICAgKi9cbiAgICBwcml2YXRlIGRpc3BhdGNoTWFueTxULCBVPihtZXRhZGF0YTogUmVjZWl2ZXJNZXRhRGF0YSwgcGF5bG9hZHM/OiBUW10pOiBPYnNlcnZhYmxlPFU+IHtcbiAgICAgICAgaWYgKCFBcnJheS5pc0FycmF5KHBheWxvYWRzKSkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuZGlzcGF0Y2goW10pO1xuICAgICAgICB9XG5cbiAgICAgICAgRW1pdHRlckFjdGlvbi50eXBlID0gbWV0YWRhdGEudHlwZTtcblxuICAgICAgICBjb25zdCB7IGFjdGlvbiB9ID0gbWV0YWRhdGE7XG5cbiAgICAgICAgaWYgKGFjdGlvbikge1xuICAgICAgICAgICAgY29uc3QgZmxhdHRlbmVkQ29uc3RydWN0b3JzID0gZmxhdHRlbkNvbnN0cnVjdG9ycyhhY3Rpb24pO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuZGlzcGF0Y2goY29uc3RydWN0RXZlbnRzRm9yTWFueURpc3BhdGNoaW5nKGZsYXR0ZW5lZENvbnN0cnVjdG9ycywgcGF5bG9hZHMpKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLmRpc3BhdGNoKFxuICAgICAgICAgICAgcGF5bG9hZHMubWFwKChwYXlsb2FkKSA9PiBuZXcgRW1pdHRlckFjdGlvbihwYXlsb2FkKSlcbiAgICAgICAgKTtcbiAgICB9XG59XG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -43,5 +43,6 @@ import { Injectable, Injector } from '@angular/core'; | ||
* @type {?} | ||
* @private | ||
*/ | ||
InjectorAccessor.injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0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b3IgfCBudWxsID0gbnVsbDtcblxuICAgIC8qKlxuICAgICAqIENyZWF0ZXMgSW5qZWN0b3JBY2Nlc3NvciBpbnN0YW5jZVxuICAgICAqXG4gICAgICogQHBhcmFtIGluamVjdG9yIC0gUm9vdCBpbmplY3RvclxuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKGluamVjdG9yOiBJbmplY3Rvcikge1xuICAgICAgICBJbmplY3RvckFjY2Vzc29yLmluamVjdG9yID0gaW5qZWN0b3I7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQHJldHVybnMgLSBFcnJvciBpZiBgTmd4c0VtaXRQbHVnaW5Nb2R1bGVgIGlzIG5vdCBpbXBvcnRlZCBvciBpbmplY3RvciBpbnN0YW5jZVxuICAgICAqL1xuICAgIHB1YmxpYyBzdGF0aWMgZ2V0SW5qZWN0b3IoKTogbmV2ZXIgfCBJbmplY3RvciB7XG4gICAgICAgIGlmICghdGhpcy5pbmplY3Rvcikge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBZb3UndmUgZm9yZ290dGVuIHRvIGltcG9ydCBcXGBOZ3hzRW1pdFBsdWdpbk1vZHVsZVxcYGApO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuaW5qZWN0b3I7XG4gICAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0b3ItYWNjZXNzb3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3hzLWxhYnMvZW1pdHRlci8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL3NlcnZpY2VzL2luamVjdG9yLWFjY2Vzc29yLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBTXJELE1BQU0sT0FBTy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blxuICAgIC8qKlxuICAgICAqIEByZXR1cm5zIC0gRXJyb3IgaWYgYE5neHNFbWl0UGx1Z2luTW9kdWxlYCBpcyBub3QgaW1wb3J0ZWQgb3IgaW5qZWN0b3IgaW5zdGFuY2VcbiAgICAgKi9cbiAgICBwdWJsaWMgc3RhdGljIGdldEluamVjdG9yKCk6IG5ldmVyIHwgSW5qZWN0b3Ige1xuICAgICAgICBpZiAoIXRoaXMuaW5qZWN0b3IpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgWW91J3ZlIGZvcmdvdHRlbiB0byBpbXBvcnQgXFxgTmd4c0VtaXRQbHVnaW5Nb2R1bGVcXGBgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLmluamVjdG9yO1xuICAgIH1cbn1cbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -33,5 +33,8 @@ import { NgModule, Self } from '@angular/core'; | ||
if (false) { | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
NgxsEmitPluginModule.prototype.injectorAccessor; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1pdC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4cy1sYWJzL2VtaXR0ZXIvIiwic291cmNlcyI6WyJsaWIvZW1pdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQXVCLElBQUksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVwRSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDL0QsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU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ydmljZXMvZW1pdC1zdG9yZS5zZXJ2aWNlJztcbmltcG9ydCB7IEluamVjdG9yQWNjZXNzb3IgfSBmcm9tICcuL2NvcmUvc2VydmljZXMvaW5qZWN0b3ItYWNjZXNzb3Iuc2VydmljZSc7XG5cbkBOZ01vZHVsZSgpXG5leHBvcnQgY2xhc3MgTmd4c0VtaXRQbHVnaW5Nb2R1bGUge1xuICAgIGNvbnN0cnVjdG9yKEBTZWxmKCkgcHJpdmF0ZSBpbmplY3RvckFjY2Vzc29yOiBJbmplY3RvckFjY2Vzc29yKSB7fVxuXG4gICAgLyoqXG4gICAgICogQHJldHVybnMgLSBBIHdyYXBwZXIgYXJvdW5kIGBOZ01vZHVsZWBcbiAgICAgKi9cbiAgICBwdWJsaWMgc3RhdGljIGZvclJvb3QoKTogTW9kdWxlV2l0aFByb3ZpZGVyczxOZ3hzRW1pdFBsdWdpbk1vZHVsZT4ge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgbmdNb2R1bGU6IE5neHNFbWl0UGx1Z2luTW9kdWxlLFxuICAgICAgICAgICAgcHJvdmlkZXJzOiBbRW1pdFN0b3JlLCBJbmplY3RvckFjY2Vzc29yXVxuICAgICAgICB9O1xuICAgIH1cbn1cbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ export { Receiver } from './lib/core/decorators/receiver'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { Receiver, Emitter, EmitterAction, NgxsEmitPluginModule, EmitStore, ofEmittableDispatched, ofEmittableSuccessful, ofEmittableCanceled, ofEmittableErrored } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4cy1sYWJzL2VtaXR0ZXIvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEseUtBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { InjectorAccessor } from '../services/injector-accessor.service'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { ensureStoreMetadata } from '@ngxs/store'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** @enum {string} */ |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -18,5 +18,3 @@ import { getActionTypeFromInstance } from '@ngxs/store'; | ||
var types = {}; | ||
/** @type {?} */ | ||
var i = receivers.length; | ||
while (i--) { | ||
for (var i = receivers.length - 1; i >= 0; i--) { | ||
/** @type {?} */ | ||
@@ -107,2 +105,2 @@ var receiver = receivers[i]; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2YtZW1pdHRhYmxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5neHMtbGFicy9lbWl0dGVyLyIsInNvdXJjZXMiOlsibGliL2NvcmUvb3BlcmF0b3JzL29mLWVtaXR0YWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBR3hELE9BQU8sRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFN0MsT0FBTyxFQUFFLGlCQUFpQixFQUFrRixNQUFNLHVCQUF1QixDQUFDOzs7Ozs7OztBQVMxSSxTQUFTLGdCQUFnQixDQUFDLFNBQXFCOztRQUNyQyxLQUFLLEdBQVUsRUFBRTs7UUFFbkIsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxNQUFNO0lBQ3hCLE9BQU8sQ0FBQyxFQUFFLEVBQUU7O1lBQ0YsUUFBUSxHQUFHLFNBQVMsQ0FBQyxDQUFDLENBQUM7O1lBQ3ZCLGFBQWEsR0FBRyxPQUFPLFFBQVEsS0FBSyxVQUFVO1FBRXBELElBQUksYUFBYSxFQUFFO1lBQ2YsTUFBTSxJQUFJLFNBQVMsQ0FBQyx3Q0FBc0MsUUFBVSxDQUFDLENBQUM7U0FDekU7O1lBRUssSUFBSSxHQUFxQixRQU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ogQHJldHVybnMgLSBSeEpTIGZhY3Rvcnkgb3BlcmF0b3IgZnVuY3Rpb25cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIG9mRW1pdHRhYmxlKHR5cGVzOiBUeXBlcywgc3RhdHVzOiBBY3Rpb25TdGF0dXMpOiBPcGVyYXRvckZ1bmN0aW9uPGFueSwgT2ZFbWl0dGFibGVBY3Rpb25Db250ZXh0PGFueT4+IHtcbiAgICByZXR1cm4gKHNvdXJjZTogT2JzZXJ2YWJsZTxBY3Rpb25Db250ZXh0PikgPT4ge1xuICAgICAgICByZXR1cm4gc291cmNlLnBpcGUoXG4gICAgICAgICAgICBmaWx0ZXIoKGN0eDogQWN0aW9uQ29udGV4dCkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IGhhc2hNYXBIYXNUeXBlID0gdHlwZXNbZ2V0QWN0aW9uVHlwZUZyb21JbnN0YW5jZShjdHguYWN0aW9uKV07XG4gICAgICAgICAgICAgICAgY29uc3QgY29udGV4dEhhc1RyYW5zbWl0dGVkU3RhdHVzID0gY3R4LnN0YXR1cyA9PT0gc3RhdHVzO1xuICAgICAgICAgICAgICAgIHJldHVybiBoYXNoTWFwSGFzVHlwZSAmJiBjb250ZXh0SGFzVHJhbnNtaXR0ZWRTdGF0dXM7XG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIG1hcCgoeyBhY3Rpb24sIGVycm9yIH06IEFjdGlvbkNvbnRleHQpID0+ICh7XG4gICAgICAgICAgICAgICAgdHlwZTogZ2V0QWN0aW9uVHlwZUZyb21JbnN0YW5jZShhY3Rpb24pLFxuICAgICAgICAgICAgICAgIHBheWxvYWQ6IGFjdGlvbi5wYXlsb2FkLFxuICAgICAgICAgICAgICAgIGVycm9yXG4gICAgICAgICAgICB9KSlcbiAgICAgICAgKTtcbiAgICB9O1xufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -47,2 +47,3 @@ import * as tslib_1 from "tslib"; | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -54,2 +55,3 @@ * @param {?} metadata - Receiver function metadata | ||
EmitStore.prototype.dispatchSingle = /** | ||
* @private | ||
* @template T, U | ||
@@ -81,2 +83,3 @@ * @param {?} metadata - Receiver function metadata | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -88,2 +91,3 @@ * @param {?} metadata - Receiver function metadata | ||
EmitStore.prototype.dispatchMany = /** | ||
* @private | ||
* @template T, U | ||
@@ -113,2 +117,2 @@ * @param {?} metadata - Receiver function metadata | ||
export { EmitStore }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1pdC1zdG9yZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5neHMtbGFicy9lbWl0dGVyLyIsInNvdXJjZXMiOlsibGliL2NvcmUvc2VydmljZXMvZW1pdC1zdG9yZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBSXBDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNuRCxPQUFPLEVBQ0gsaUJBQWlCLEVBR2pCLG1CQUFtQixFQUNuQixtQ0FBbUMsRUFDbkMsaUNBQWlDLEVBQ3BDLE1BQU0sdUJBQXVCLENBQUM7QUFFL0I7SUFDK0IscUNBQUs7SUFEcEM7O0lBaUVBLENBQUM7SUEvREc7OztPQUdHOzs7Ozs7SUFDSSwyQkFBTzs7Ozs7SUFBZCxVQUFpQyxRQUFrQjtRQUFuRCxpQkFXQzs7WUFWUyxRQUFR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WQpKVxuICAgICAgICApO1xuICAgIH1cbn1cbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -51,5 +51,6 @@ import { Injectable, Injector } from '@angular/core'; | ||
* @type {?} | ||
* @private | ||
*/ | ||
InjectorAccessor.injector; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0b3ItYWNjZXNzb3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3hzLWxhYnMvZW1pdHRlci8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL3NlcnZpY2VzL2luamVjdG9yLWFjY2Vzc29yLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBS3JEO0lBT0k7Ozs7T0FJRztJQUNILDBCQUFZLFFBQWtCO1FBQzFCLGdCQUFnQixDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDekMsQ0FBQztJQUVEOztPQUVHOzs7O0lBQ1csNEJBQVc7OztJQUF6QjtRQUNJLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFO1lBQ2hCLE1BQU0sSUFBSSxLQUFLLENBQUMsbURBQXFELENBQUMsQ0FBQztTQUMxRTtRQUVELE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQztJQUN6QixDQUFDOzs7O0lBcEJjLHlCQUFRLEdBQW9CLElBQUksQ0FBQzs7Z0JBTG5ELFVBQVU7Ozs7Z0JBTFUsUUFBUTs7SUErQjdCLHVCQUFDO0NBQUEsQUExQkQsSUEwQkM7U0F6QlksZ0JBQWdCOzs7Ozs7SUFJekIsM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NsYXNzIEluamVjdG9yQWNjZXNzb3Ige1xuICAgIC8qKlxuICAgICAqIEluamVjdG9yIGZvciBhY2Nlc3NpbmcgRElcbiAgICAgKi9cbiAgICBwcml2YXRlIHN0YXRpYyBpbmplY3RvcjogSW5qZWN0b3IgfCBudWxsID0gbnVsbDtcblxuICAgIC8qKlxuICAgICAqIENyZWF0ZXMgSW5qZWN0b3JBY2Nlc3NvciBpbnN0YW5jZVxuICAgICAqXG4gICAgICogQHBhcmFtIGluamVjdG9yIC0gUm9vdCBpbmplY3RvclxuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKGluamVjdG9yOiBJbmplY3Rvcikge1xuICAgICAgICBJbmplY3RvckFjY2Vzc29yLmluamVjdG9yID0gaW5qZWN0b3I7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQHJldHVybnMgLSBFcnJvciBpZiBgTmd4c0VtaXRQbHVnaW5Nb2R1bGVgIGlzIG5vdCBpbXBvcnRlZCBvciBpbmplY3RvciBpbnN0YW5jZVxuICAgICAqL1xuICAgIHB1YmxpYyBzdGF0aWMgZ2V0SW5qZWN0b3IoKTogbmV2ZXIgfCBJbmplY3RvciB7XG4gICAgICAgIGlmICghdGhpcy5pbmplY3Rvcikge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBZb3UndmUgZm9yZ290dGVuIHRvIGltcG9ydCBcXGBOZ3hzRW1pdFBsdWdpbk1vZHVsZVxcYGApO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuaW5qZWN0b3I7XG4gICAgfVxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -38,5 +38,8 @@ import { NgModule, Self } from '@angular/core'; | ||
if (false) { | ||
/** @type {?} */ | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
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z2luTW9kdWxlLFxuICAgICAgICAgICAgcHJvdmlkZXJzOiBbRW1pdFN0b3JlLCBJbmplY3RvckFjY2Vzc29yXVxuICAgICAgICB9O1xuICAgIH1cbn1cbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ export { Receiver } from './lib/core/decorators/receiver'; |
@@ -7,3 +7,3 @@ import { ensureStoreMetadata, Store, getActionTypeFromInstance } from '@ngxs/store'; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -58,3 +58,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -161,3 +161,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -200,3 +200,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -224,3 +224,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -245,2 +245,3 @@ class EmitStore extends Store { | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -267,2 +268,3 @@ * @param {?} metadata - Receiver function metadata | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -293,3 +295,3 @@ * @param {?} metadata - Receiver function metadata | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -316,3 +318,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -346,3 +348,3 @@ class NgxsEmitPluginModule { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -359,5 +361,3 @@ /** | ||
const types = {}; | ||
/** @type {?} */ | ||
let i = receivers.length; | ||
while (i--) { | ||
for (let i = receivers.length - 1; i >= 0; i--) { | ||
/** @type {?} */ | ||
@@ -432,3 +432,3 @@ const receiver = receivers[i]; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -438,3 +438,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -444,3 +444,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -450,2 +450,2 @@ | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4cy1sYWJzLWVtaXR0ZXIuanMubWFwIiwic291cmNlcyI6WyJuZzovL0BuZ3hzLWxhYnMvZW1pdHRlci9saWIvY29yZS9pbnRlcm5hbC9pbnRlcm5hbHMudHMiLCJuZzovL0BuZ3hzLWxhYnMvZW1pdHRlci9saWIvY29yZS9kZWNvcmF0b3JzL3JlY2VpdmVyLnRzIiwibmc6Ly9Abmd4cy1sYWJzL2VtaXR0ZXIvbGliL2NvcmUvc2VydmljZXMvaW5qZWN0b3ItYWNjZXNzb3Iuc2VydmljZS50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9jb3JlL2FjdGlvbnMvYWN0aW9ucy50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9jb3JlL3NlcnZpY2VzL2VtaXQtc3RvcmUuc2VydmljZS50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9jb3JlL2RlY29yYXRvcnMvZW1pdHRlci50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9lbWl0Lm1vZHVsZS50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9jb3JlL29wZXJhdG9ycy9vZi1lbWl0dGFibGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHlwZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSAncnhqcyc7XG5cbi8qKlxuICogU3RhdHVzIG9mIGEgZGlzcGF0Y2hlZCBhY3Rpb25cbiAqL1xuZXhwb3J0IGNvbnN0IGVudW0gQW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hZCwgYWN0aW9uLCBjYW5jZWxVbmNvbXBsZXRlZCB9ID0gZ2V0QWN0aW9uUHJvcGVydGllcyhvcHRpb25zLCB0YXJnZXQsIGtleSk7XG5cbiAgICAgICAgaWYgKG1ldGEuYWN0aW9ucy5oYXNPd25Qcm9wZXJ0eSh0eXBlKSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBNZXRob2QgZGVjb3JhdGVkIHdpdGggc3VjaCB0eXBlIFxcYCR7dHlwZX1cXGAgYWxyZWFkeSBleGlzdHNgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghQXJyYXkuaXNBcnJheShhY3Rpb24pKSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbdHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7IGNhbmNlbFVuY29tcGxldGVkIH0sXG4gICAgICAgICAgICAgICAgdHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBmb3IgKGxldCBpID0gMCwgbGVuZ3RoID0gYWN0aW9uLmxlbmd0aDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgeyB0eXBlIH0gPSBhY3Rpb25baV07XG4gICAgICAgICAgICAgICAgbWV0YS5hY3Rpb25zW3R5cGVdID0gW3tcbiAgICAgICAgICAgICAgICAgICAgZm46IGAke2tleX1gLFxuICAgICAgICAgICAgICAgICAgICBvcHRpb25zOiB7IGNhbmNlbFVuY29tcGxldGVkIH0sXG4gICAgICAgICAgICAgICAgICAgIHR5cGVcbiAgICAgICAgICAgICAgICB9XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGRlc2NyaXB0b3IudmFsdWUhW1JFQ0VJVkVSX01FVEFfS0VZXSA9IHtcbiAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgICBhY3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Y29tcGxldGVkIH0sXG4gICAgICAgICAgICAgICAgdHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBmb3IgKGxldCBpID0gMCwgbGVuZ3RoID0gYWN0aW9uLmxlbmd0aDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgeyB0eXBlIH0gPSBhY3Rpb25baV07XG4gICAgICAgICAgICAgICAgbWV0YS5hY3Rpb25zW3R5cGVdID0gW3tcbiAgICAgICAgICAgICAgICAgICAgZm46IGAke2tleX1gLFxuICAgICAgICAgICAgICAgICAgICBvcHRpb25zOiB7IGNhbmNlbFVuY29tcGxldGVkIH0sXG4gICAgICAgICAgICAgICAgICAgIHR5cGVcbiAgICAgICAgICAgICAgICB9XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGRlc2NyaXB0b3IudmFsdWUhW1JFQ0VJVkVSX01FVEFfS0VZXSA9IHtcbiAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgICBhY3Rpb24sXG4gICAgICAgICAgICBwYXlsb2FkXG4gICAgICAgIH07XG5cbiAgICAgICAgdGFyZ2V0LnByb3RvdHlwZVtrZXldID0gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICByZXR1cm4gdGFyZ2V0W2tleV0uYXBwbHkodGFyZ2V0LCBhcmd1bWVudHMpO1xuICAgICAgICB9O1xuICAgIH07XG59XG4iLCJpbXBvcnQgeyBJbmplY3RhYmxlLCBJbmplY3RvciB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEFsbG93cyBtdWx0aXBsZSBkZWNvcmF0b3JzIHRvIGdldCBhY2Nlc3MgdG8gdGhlIERJIHN0b3JlXG4gKi9cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBJbmplY3RvckFjY2Vzc29yIHtcbiAgICAvKipcbiAgICAgKiBJbmplY3RvciBmb3IgYWNj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SSwyQkFBMkIsQ0FBQztTQUN4RCxDQUFDLEVBQ0YsR0FBRyxDQUFDLENBQUMsRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFpQixNQUFNO1lBQ3ZDLElBQUksRUFBRSx5QkFBeUIsQ0FBQyxNQUFNLENBQUM7WUFDdkMsT0FBTyxFQUFFLE1BQU0sQ0FBQyxPQUFPO1lBQ3ZCLEtBQUs7U0FDUixDQUFDLENBQUMsQ0FDTixDQUFDO0tBQ0wsQ0FBQztDQUNMOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9 |
@@ -8,3 +8,3 @@ import { ensureStoreMetadata, Store, getActionTypeFromInstance } from '@ngxs/store'; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -59,3 +59,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -162,3 +162,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -208,3 +208,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -233,3 +233,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -273,2 +273,3 @@ var EmitStore = /** @class */ (function (_super) { | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -280,2 +281,3 @@ * @param {?} metadata - Receiver function metadata | ||
EmitStore.prototype.dispatchSingle = /** | ||
* @private | ||
* @template T, U | ||
@@ -307,2 +309,3 @@ * @param {?} metadata - Receiver function metadata | ||
/** | ||
* @private | ||
* @template T, U | ||
@@ -314,2 +317,3 @@ * @param {?} metadata - Receiver function metadata | ||
EmitStore.prototype.dispatchMany = /** | ||
* @private | ||
* @template T, U | ||
@@ -341,3 +345,3 @@ * @param {?} metadata - Receiver function metadata | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -364,3 +368,3 @@ /** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -398,3 +402,3 @@ var NgxsEmitPluginModule = /** @class */ (function () { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -411,5 +415,3 @@ /** | ||
var types = {}; | ||
/** @type {?} */ | ||
var i = receivers.length; | ||
while (i--) { | ||
for (var i = receivers.length - 1; i >= 0; i--) { | ||
/** @type {?} */ | ||
@@ -503,3 +505,3 @@ var receiver = receivers[i]; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -509,3 +511,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -515,3 +517,3 @@ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -521,2 +523,2 @@ | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4cy1sYWJzLWVtaXR0ZXIuanMubWFwIiwic291cmNlcyI6WyJuZzovL0BuZ3hzLWxhYnMvZW1pdHRlci9saWIvY29yZS9pbnRlcm5hbC9pbnRlcm5hbHMudHMiLCJuZzovL0BuZ3hzLWxhYnMvZW1pdHRlci9saWIvY29yZS9kZWNvcmF0b3JzL3JlY2VpdmVyLnRzIiwibmc6Ly9Abmd4cy1sYWJzL2VtaXR0ZXIvbGliL2NvcmUvc2VydmljZXMvaW5qZWN0b3ItYWNjZXNzb3Iuc2VydmljZS50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9jb3JlL2FjdGlvbnMvYWN0aW9ucy50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9jb3JlL3NlcnZpY2VzL2VtaXQtc3RvcmUuc2VydmljZS50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9jb3JlL2RlY29yYXRvcnMvZW1pdHRlci50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9lbWl0Lm1vZHVsZS50cyIsIm5nOi8vQG5neHMtbGFicy9lbWl0dGVyL2xpYi9jb3JlL29wZXJhdG9ycy9vZi1lbWl0dGFibGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHlwZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSAncnhqcyc7XG5cbi8qKlxuICogU3RhdH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cmVTdG9yZU1ldGFkYXRhKHRhcmdldCk7XG4gICAgICAgIGNvbnN0IHsgdHlwZSwgcGF5bG9hZCwgYWN0aW9uLCBjYW5jZWxVbmNvbXBsZXRlZCB9ID0gZ2V0QWN0aW9uUHJvcGVydGllcyhvcHRpb25zLCB0YXJnZXQsIGtleSk7XG5cbiAgICAgICAgaWYgKG1ldGEuYWN0aW9ucy5oYXNPd25Qcm9wZXJ0eSh0eXBlKSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBNZXRob2QgZGVjb3JhdGVkIHdpdGggc3VjaCB0eXBlIFxcYCR7dHlwZX1cXGAgYWxyZWFkeSBleGlzdHNgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghQXJyYXkuaXNBcnJheShhY3Rpb24pKSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbdHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7IGNhbmNlbFVuY29tcGxldGVkIH0sXG4gICAgICAgICAgICAgICAgdHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBmb3IgKGxldCBpID0gMCwgbGVuZ3RoID0gYWN0aW9uLmxlbmd0aDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgeyB0eXBlIH0gPSBhY3Rpb25baV07XG4gICAgICAgICAgICAgICAgbWV0YS5hY3Rpb25zW3R5cGVdID0gW3tcbiAgICAgICAgICAgICAgICAgICAgZm46IGAke2tleX1gLFxuICAgICAgICAgICAgICAgICAgICBvcHRpb25zOiB7IGNhbmNlbFVuY29tcGxldGVkIH0sXG4gICAgICAgICAgICAgICAgICAgIHR5cGVcbiAgICAgICAgICAgICAgICB9XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGRlc2NyaXB0b3IudmFsdWUhW1J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vbnN0IHsgdHlwZSwgcGF5bG9hZCwgYWN0aW9uLCBjYW5jZWxVbmNvbXBsZXRlZCB9ID0gZ2V0QWN0aW9uUHJvcGVydGllcyhvcHRpb25zLCB0YXJnZXQsIGtleSk7XG5cbiAgICAgICAgaWYgKG1ldGEuYWN0aW9ucy5oYXNPd25Qcm9wZXJ0eSh0eXBlKSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBNZXRob2QgZGVjb3JhdGVkIHdpdGggc3VjaCB0eXBlIFxcYCR7dHlwZX1cXGAgYWxyZWFkeSBleGlzdHNgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghQXJyYXkuaXNBcnJheShhY3Rpb24pKSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbdHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7IGNhbmNlbFVuY29tcGxldGVkIH0sXG4gICAgICAgICAgICAgICAgdHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBmb3IgKGxldCBpID0gMCwgbGVuZ3RoID0gYWN0aW9uLmxlbmd0aDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgeyB0eXBlIH0gPSBhY3Rpb25baV07XG4gICAgICAgICAgICAgICAgbWV0YS5hY3Rpb25zW3R5cGVdID0gW3tcbiAgICAgICAgICAgICAgICAgICAgZm46IGAke2tleX1gLFxuICAgICAgICAgICAgICAgICAgICBvcHRpb25zOiB7IGNhbmNlbFVuY29tcGxldGVkIH0sXG4gICAgICAgICAgICAgICAgICAgIHR5cGVcbiAgICAgICAgICAgICAgICB9XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGRlc2NyaXB0b3IudmFsdWUhW1JFQ0VJVkVSX01FVEFfS0VZXSA9IHtcbiAgICAgICAgICAgIH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xDQUFDLE9BQU87Z0JBQ3ZCLEtBQUssT0FBQTthQUNSO1NBQUMsQ0FBQyxDQUNOLENBQUM7S0FDTCxDQUFDO0NBQ0w7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0= |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"Dispatched":"DISPATCHED","Successful":"SUCCESSFUL","Canceled":"CANCELED","Errored":"ERRORED"},"ɵb":{"__symbolic":"function","parameters":["types","status"],"value":{"__symbolic":"error","message":"Lambda not supported","line":73,"character":11,"module":"./lib/core/operators/of-emittable"}},"Receiver":{"__symbolic":"function","parameters":["options"],"value":{"__symbolic":"error","message":"Lambda not supported","line":62,"character":11,"module":"./lib/core/decorators/receiver"}},"Emitter":{"__symbolic":"function","parameters":["receiver"],"value":{"__symbolic":"error","message":"Lambda not supported","line":10,"character":11,"module":"./lib/core/decorators/emitter"}},"Emittable":{"__symbolic":"interface"},"OfEmittableActionContext":{"__symbolic":"interface"},"EmitterAction":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":14,"character":33,"context":{"typeName":"T"},"module":"./lib/core/actions/actions"}]}]},"statics":{"type":null}},"NgxsEmitPluginModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":7,"character":17}}]],"parameters":[{"__symbolic":"reference","name":"ɵc"}]}]},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"NgxsEmitPluginModule"},"providers":[{"__symbolic":"reference","name":"EmitStore"},{"__symbolic":"reference","name":"ɵc"}]}}}},"EmitStore":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":16,"character":31},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"emitter":[{"__symbolic":"method"}],"dispatchSingle":[{"__symbolic":"method"}],"dispatchMany":[{"__symbolic":"method"}]}},"ofEmittableDispatched":{"__symbolic":"function","parameters":["receivers"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵb"},"arguments":[{"__symbolic":"error","message":"Reference to a non-exported function","line":14,"character":9,"context":{"name":"getReceiverTypes"},"module":"./lib/core/operators/of-emittable"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"Dispatched"}]}},"ofEmittableSuccessful":{"__symbolic":"function","parameters":["receivers"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵb"},"arguments":[{"__symbolic":"error","message":"Reference to a non-exported function","line":14,"character":9,"context":{"name":"getReceiverTypes"},"module":"./lib/core/operators/of-emittable"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"Successful"}]}},"ofEmittableCanceled":{"__symbolic":"function","parameters":["receivers"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵb"},"arguments":[{"__symbolic":"error","message":"Reference to a non-exported function","line":14,"character":9,"context":{"name":"getReceiverTypes"},"module":"./lib/core/operators/of-emittable"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"Canceled"}]}},"ofEmittableErrored":{"__symbolic":"function","parameters":["receivers"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵb"},"arguments":[{"__symbolic":"error","message":"Reference to a non-exported function","line":14,"character":9,"context":{"name":"getReceiverTypes"},"module":"./lib/core/operators/of-emittable"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"Errored"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":17,"character":26}]}]},"statics":{"injector":null}}},"origins":{"ɵa":"./lib/core/internal/internals","ɵb":"./lib/core/operators/of-emittable","Receiver":"./lib/core/decorators/receiver","Emitter":"./lib/core/decorators/emitter","Emittable":"./lib/core/internal/internals","OfEmittableActionContext":"./lib/core/internal/internals","EmitterAction":"./lib/core/actions/actions","NgxsEmitPluginModule":"./lib/emit.module","EmitStore":"./lib/core/services/emit-store.service","ofEmittableDispatched":"./lib/core/operators/of-emittable","ofEmittableSuccessful":"./lib/core/operators/of-emittable","ofEmittableCanceled":"./lib/core/operators/of-emittable","ofEmittableErrored":"./lib/core/operators/of-emittable","ɵc":"./lib/core/services/injector-accessor.service"},"importAs":"@ngxs-labs/emitter"} | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"Dispatched":"DISPATCHED","Successful":"SUCCESSFUL","Canceled":"CANCELED","Errored":"ERRORED"},"ɵb":{"__symbolic":"function","parameters":["types","status"],"value":{"__symbolic":"error","message":"Lambda not supported","line":72,"character":11,"module":"./lib/core/operators/of-emittable"}},"Receiver":{"__symbolic":"function","parameters":["options"],"value":{"__symbolic":"error","message":"Lambda not supported","line":62,"character":11,"module":"./lib/core/decorators/receiver"}},"Emitter":{"__symbolic":"function","parameters":["receiver"],"value":{"__symbolic":"error","message":"Lambda not supported","line":10,"character":11,"module":"./lib/core/decorators/emitter"}},"Emittable":{"__symbolic":"interface"},"OfEmittableActionContext":{"__symbolic":"interface"},"EmitterAction":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":14,"character":33,"context":{"typeName":"T"},"module":"./lib/core/actions/actions"}]}]},"statics":{"type":null}},"NgxsEmitPluginModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":7,"character":17}}]],"parameters":[{"__symbolic":"reference","name":"ɵc"}]}]},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"NgxsEmitPluginModule"},"providers":[{"__symbolic":"reference","name":"EmitStore"},{"__symbolic":"reference","name":"ɵc"}]}}}},"EmitStore":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":16,"character":31},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"emitter":[{"__symbolic":"method"}],"dispatchSingle":[{"__symbolic":"method"}],"dispatchMany":[{"__symbolic":"method"}]}},"ofEmittableDispatched":{"__symbolic":"function","parameters":["receivers"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵb"},"arguments":[{"__symbolic":"error","message":"Reference to a non-exported function","line":14,"character":9,"context":{"name":"getReceiverTypes"},"module":"./lib/core/operators/of-emittable"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"Dispatched"}]}},"ofEmittableSuccessful":{"__symbolic":"function","parameters":["receivers"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵb"},"arguments":[{"__symbolic":"error","message":"Reference to a non-exported function","line":14,"character":9,"context":{"name":"getReceiverTypes"},"module":"./lib/core/operators/of-emittable"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"Successful"}]}},"ofEmittableCanceled":{"__symbolic":"function","parameters":["receivers"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵb"},"arguments":[{"__symbolic":"error","message":"Reference to a non-exported function","line":14,"character":9,"context":{"name":"getReceiverTypes"},"module":"./lib/core/operators/of-emittable"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"Canceled"}]}},"ofEmittableErrored":{"__symbolic":"function","parameters":["receivers"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵb"},"arguments":[{"__symbolic":"error","message":"Reference to a non-exported function","line":14,"character":9,"context":{"name":"getReceiverTypes"},"module":"./lib/core/operators/of-emittable"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"Errored"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":17,"character":26}]}]},"statics":{"injector":null}}},"origins":{"ɵa":"./lib/core/internal/internals","ɵb":"./lib/core/operators/of-emittable","Receiver":"./lib/core/decorators/receiver","Emitter":"./lib/core/decorators/emitter","Emittable":"./lib/core/internal/internals","OfEmittableActionContext":"./lib/core/internal/internals","EmitterAction":"./lib/core/actions/actions","NgxsEmitPluginModule":"./lib/emit.module","EmitStore":"./lib/core/services/emit-store.service","ofEmittableDispatched":"./lib/core/operators/of-emittable","ofEmittableSuccessful":"./lib/core/operators/of-emittable","ofEmittableCanceled":"./lib/core/operators/of-emittable","ofEmittableErrored":"./lib/core/operators/of-emittable","ɵc":"./lib/core/services/injector-accessor.service"},"importAs":"@ngxs-labs/emitter"} |
{ | ||
"$schema": "../node_modules/ng-packagr/package.schema.json", | ||
"name": "@ngxs-labs/emitter", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
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
372821
2863