New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ngrx/store-devtools

Package Overview
Dependencies
Maintainers
4
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngrx/store-devtools - npm Package Compare versions

Comparing version 4.1.1 to 5.0.0

src/instrument.ngfactory.d.ts

202

@ngrx/store-devtools.es5.js

@@ -27,2 +27,17 @@ var __extends = (this && this.__extends) || (function () {

import { takeUntil as takeUntil$1 } from 'rxjs/operator/takeUntil';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var StoreDevtoolsConfig = (function () {
function StoreDevtoolsConfig() {
}
return StoreDevtoolsConfig;
}());
var STORE_DEVTOOLS_CONFIG = new InjectionToken('@ngrx/devtools Options');
var INITIAL_OPTIONS = new InjectionToken('@ngrx/devtools Initial Config');
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var PERFORM_ACTION = 'PERFORM_ACTION';

@@ -36,2 +51,3 @@ var RESET = 'RESET';

var JUMP_TO_STATE = 'JUMP_TO_STATE';
var JUMP_TO_ACTION = 'JUMP_TO_ACTION';
var IMPORT_STATE = 'IMPORT_STATE';

@@ -110,2 +126,12 @@ var PerformAction = (function () {

}());
var JumpToAction = (function () {
/**
* @param {?} actionId
*/
function JumpToAction(actionId) {
this.actionId = actionId;
this.type = JUMP_TO_ACTION;
}
return JumpToAction;
}());
var ImportState = (function () {

@@ -122,2 +148,6 @@ /**

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @param {?} first

@@ -163,2 +193,6 @@ * @param {?} second

}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var ExtensionActionTypes = {

@@ -171,7 +205,18 @@ START: 'START',

var REDUX_DEVTOOLS_EXTENSION = new InjectionToken('Redux Devtools Extension');
/**
* @record
*/
/**
* @record
*/
/**
* @record
*/
var DevtoolsExtension = (function () {
/**
* @param {?} devtoolsExtension
* @param {?} config
*/
function DevtoolsExtension(devtoolsExtension) {
function DevtoolsExtension(devtoolsExtension, config) {
this.config = config;
this.instanceId = "ngrx-store-" + Date.now();

@@ -190,3 +235,3 @@ this.devtoolsExtension = devtoolsExtension;

}
this.devtoolsExtension.send(null, state, { serialize: false }, this.instanceId);
this.devtoolsExtension.send(null, state, this.config, this.instanceId);
};

@@ -204,3 +249,6 @@ /**

instanceId: _this.instanceId,
name: _this.config.name,
features: _this.config.features,
});
connection.init();
connection.subscribe(function (change) { return subscriber.next(change); });

@@ -249,10 +297,16 @@ return connection.unsubscribe;

];
/**
* @nocollapse
*/
/** @nocollapse */
DevtoolsExtension.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [REDUX_DEVTOOLS_EXTENSION,] },] },
{ type: StoreDevtoolsConfig, decorators: [{ type: Inject, args: [STORE_DEVTOOLS_CONFIG,] },] },
]; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var INIT_ACTION = { type: INIT };
/**
* @record
*/
/**
* Computes the next entry in the log by applying an action.

@@ -347,4 +401,4 @@ * @param {?} reducer

/**
* Manages how the history actions modify the history state.
*/
* Manages how the history actions modify the history state.
*/
return function (reducer) { return function (liftedState, liftedAction) {

@@ -461,2 +515,11 @@ var _a = liftedState || initialLiftedState, monitorState = _a.monitorState, actionsById = _a.actionsById, nextActionId = _a.nextActionId, stagedActionIds = _a.stagedActionIds, skippedActionIds = _a.skippedActionIds, committedState = _a.committedState, currentStateIndex = _a.currentStateIndex, computedStates = _a.computedStates;

}
case JUMP_TO_ACTION: {
// Jumps to a corresponding state to a specific action.
// Useful when filtering actions.
var /** @type {?} */ index = stagedActionIds.indexOf(liftedAction.actionId);
if (index !== -1)
currentStateIndex = index;
minInvalidatedStateIndex = Infinity;
break;
}
case SWEEP: {

@@ -491,3 +554,2 @@ // Forget any actions that are currently being skipped.

}
case UPDATE:
case INIT: {

@@ -505,2 +567,35 @@ // Always recompute states on hot reload and init.

}
case UPDATE: {
var /** @type {?} */ stateHasErrors = computedStates.filter(function (state) { return state.error; }).length > 0;
if (stateHasErrors) {
// Recompute all states
minInvalidatedStateIndex = 0;
if (options.maxAge && stagedActionIds.length > options.maxAge) {
// States must be recomputed before committing excess.
computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds);
commitExcessActions(stagedActionIds.length - options.maxAge);
// Avoid double computation.
minInvalidatedStateIndex = Infinity;
}
}
else {
if (currentStateIndex === stagedActionIds.length - 1) {
currentStateIndex++;
}
// Add a new action to only recompute state
var /** @type {?} */ actionId = nextActionId++;
actionsById[actionId] = new PerformAction(liftedAction);
stagedActionIds = stagedActionIds.concat([actionId]);
minInvalidatedStateIndex = stagedActionIds.length - 1;
// States must be recomputed before committing excess.
computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds);
currentStateIndex = minInvalidatedStateIndex;
if (options.maxAge && stagedActionIds.length > options.maxAge) {
commitExcessActions(stagedActionIds.length - options.maxAge);
}
// Avoid double computation.
minInvalidatedStateIndex = Infinity;
}
break;
}
default: {

@@ -528,9 +623,6 @@ // If the action is not recognized, it's a monitor action.

}
var StoreDevtoolsConfig = (function () {
function StoreDevtoolsConfig() {
}
return StoreDevtoolsConfig;
}());
var STORE_DEVTOOLS_CONFIG = new InjectionToken('@ngrx/devtools Options');
var INITIAL_OPTIONS = new InjectionToken('@ngrx/devtools Initial Config');
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var DevtoolsDispatcher = (function (_super) {

@@ -546,5 +638,3 @@ __extends(DevtoolsDispatcher, _super);

];
/**
* @nocollapse
*/
/** @nocollapse */
DevtoolsDispatcher.ctorParameters = function () { return []; };

@@ -562,5 +652,5 @@ var StoreDevtools = (function () {

function StoreDevtools(dispatcher, actions$, reducers$, extension, scannedActions, initialState, config) {
var liftedInitialState = liftInitialState(initialState, config.monitor);
var liftReducer = liftReducerWith(initialState, liftedInitialState, config.monitor, config.maxAge ? { maxAge: config.maxAge } : {});
var liftedAction$ = applyOperators(actions$.asObservable(), [
var /** @type {?} */ liftedInitialState = liftInitialState(initialState, config.monitor);
var /** @type {?} */ liftReducer = liftReducerWith(initialState, liftedInitialState, config.monitor, config);
var /** @type {?} */ liftedAction$ = applyOperators(actions$.asObservable(), [
[skip$1, 1],

@@ -572,5 +662,5 @@ [merge$1, extension.actions$],

]);
var liftedReducer$ = map$1.call(reducers$, liftReducer);
var liftedStateSubject = new ReplaySubject$1(1);
var liftedStateSubscription = applyOperators(liftedAction$, [
var /** @type {?} */ liftedReducer$ = map$1.call(reducers$, liftReducer);
var /** @type {?} */ liftedStateSubject = new ReplaySubject$1(1);
var /** @type {?} */ liftedStateSubscription = applyOperators(liftedAction$, [
[withLatestFrom$1, liftedReducer$],

@@ -582,3 +672,3 @@ [

var action = _b[0], reducer = _b[1];
var state = reducer(liftedState, action);
var /** @type {?} */ state = reducer(liftedState, action);
extension.notify(action, state);

@@ -593,8 +683,8 @@ return { state: state, action: action };

if (action.type === PERFORM_ACTION) {
var unlifedAction = action.action;
scannedActions.next(unlifedAction);
var /** @type {?} */ unliftedAction = ((action)).action;
scannedActions.next(unliftedAction);
}
});
var liftedState$ = liftedStateSubject.asObservable();
var state$ = map$1.call(liftedState$, unliftState);
var /** @type {?} */ liftedState$ = (liftedStateSubject.asObservable());
var /** @type {?} */ state$ = map$1.call(liftedState$, unliftState);
this.stateSubscription = liftedStateSubscription;

@@ -667,2 +757,9 @@ this.dispatcher = dispatcher;

/**
* @param {?} actionId
* @return {?}
*/
StoreDevtools.prototype.jumpToAction = function (actionId) {
this.dispatch(new JumpToAction(actionId));
};
/**
* @param {?} index

@@ -686,5 +783,3 @@ * @return {?}

];
/**
* @nocollapse
*/
/** @nocollapse */
StoreDevtools.ctorParameters = function () { return [

@@ -699,2 +794,6 @@ { type: DevtoolsDispatcher, },

]; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var IS_EXTENSION_OR_MONITOR_PRESENT = new InjectionToken('Is Devtools Extension or Monitor Present');

@@ -736,2 +835,15 @@ /**

/**
* @return {?}
*/
function noActionSanitizer() {
return null;
}
/**
* @return {?}
*/
function noStateSanitizer() {
return null;
}
var DEFAULT_NAME = 'NgRx Store DevTools';
/**
* @param {?} _options

@@ -744,5 +856,15 @@ * @return {?}

monitor: noMonitor,
actionSanitizer: noActionSanitizer,
stateSanitizer: noStateSanitizer,
name: DEFAULT_NAME,
serialize: false,
logOnly: false,
features: false,
};
var /** @type {?} */ options = typeof _options === 'function' ? _options() : _options;
var /** @type {?} */ config = Object.assign({}, DEFAULT_OPTIONS, options);
var /** @type {?} */ logOnly = options.logOnly
? { pause: true, export: true, test: true }
: false;
var /** @type {?} */ features = options.features || logOnly;
var /** @type {?} */ config = Object.assign({}, DEFAULT_OPTIONS, { features: features }, options);
if (config.maxAge && config.maxAge < 2) {

@@ -803,7 +925,17 @@ throw new Error("Devtools 'maxAge' cannot be less than 2, got " + config.maxAge);

];
/** @nocollapse */
StoreDevtoolsModule.ctorParameters = function () { return []; };
/**
* @nocollapse
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
StoreDevtoolsModule.ctorParameters = function () { return []; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Generated bundle index. Do not edit.

@@ -810,0 +942,0 @@ */

@@ -18,2 +18,15 @@ import { Inject, Injectable, InjectionToken, NgModule } from '@angular/core';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
class StoreDevtoolsConfig {
}
const STORE_DEVTOOLS_CONFIG = new InjectionToken('@ngrx/devtools Options');
const INITIAL_OPTIONS = new InjectionToken('@ngrx/devtools Initial Config');
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
const PERFORM_ACTION = 'PERFORM_ACTION';

@@ -27,2 +40,3 @@ const RESET = 'RESET';

const JUMP_TO_STATE = 'JUMP_TO_STATE';
const JUMP_TO_ACTION = 'JUMP_TO_ACTION';
const IMPORT_STATE = 'IMPORT_STATE';

@@ -95,2 +109,11 @@ class PerformAction {

}
class JumpToAction {
/**
* @param {?} actionId
*/
constructor(actionId) {
this.actionId = actionId;
this.type = JUMP_TO_ACTION;
}
}
class ImportState {

@@ -107,2 +130,6 @@ /**

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @param {?} first

@@ -149,2 +176,6 @@ * @param {?} second

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
const ExtensionActionTypes = {

@@ -157,7 +188,21 @@ START: 'START',

const REDUX_DEVTOOLS_EXTENSION = new InjectionToken('Redux Devtools Extension');
/**
* @record
*/
/**
* @record
*/
/**
* @record
*/
class DevtoolsExtension {
/**
* @param {?} devtoolsExtension
* @param {?} config
*/
constructor(devtoolsExtension) {
constructor(devtoolsExtension, config) {
this.config = config;
this.instanceId = `ngrx-store-${Date.now()}`;

@@ -176,3 +221,3 @@ this.devtoolsExtension = devtoolsExtension;

}
this.devtoolsExtension.send(null, state, { serialize: false }, this.instanceId);
this.devtoolsExtension.send(null, state, this.config, this.instanceId);
}

@@ -189,3 +234,6 @@ /**

instanceId: this.instanceId,
name: this.config.name,
features: this.config.features,
});
connection.init();
connection.subscribe((change) => subscriber.next(change));

@@ -232,11 +280,18 @@ return connection.unsubscribe;

];
/**
* @nocollapse
*/
/** @nocollapse */
DevtoolsExtension.ctorParameters = () => [
{ type: undefined, decorators: [{ type: Inject, args: [REDUX_DEVTOOLS_EXTENSION,] },] },
{ type: StoreDevtoolsConfig, decorators: [{ type: Inject, args: [STORE_DEVTOOLS_CONFIG,] },] },
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
const INIT_ACTION = { type: INIT };
/**
* @record
*/
/**
* Computes the next entry in the log by applying an action.

@@ -261,3 +316,3 @@ * @param {?} reducer

}
catch (err) {
catch (/** @type {?} */ err) {
nextError = err.toString();

@@ -331,4 +386,4 @@ console.error(err.stack || err);

/**
* Manages how the history actions modify the history state.
*/
* Manages how the history actions modify the history state.
*/
return (reducer) => (liftedState, liftedAction) => {

@@ -445,2 +500,11 @@ let { monitorState, actionsById, nextActionId, stagedActionIds, skippedActionIds, committedState, currentStateIndex, computedStates, } = liftedState || initialLiftedState;

}
case JUMP_TO_ACTION: {
// Jumps to a corresponding state to a specific action.
// Useful when filtering actions.
const /** @type {?} */ index = stagedActionIds.indexOf(liftedAction.actionId);
if (index !== -1)
currentStateIndex = index;
minInvalidatedStateIndex = Infinity;
break;
}
case SWEEP: {

@@ -484,3 +548,2 @@ // Forget any actions that are currently being skipped.

}
case UPDATE:
case INIT: {

@@ -498,2 +561,35 @@ // Always recompute states on hot reload and init.

}
case UPDATE: {
const /** @type {?} */ stateHasErrors = computedStates.filter(state => state.error).length > 0;
if (stateHasErrors) {
// Recompute all states
minInvalidatedStateIndex = 0;
if (options.maxAge && stagedActionIds.length > options.maxAge) {
// States must be recomputed before committing excess.
computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds);
commitExcessActions(stagedActionIds.length - options.maxAge);
// Avoid double computation.
minInvalidatedStateIndex = Infinity;
}
}
else {
if (currentStateIndex === stagedActionIds.length - 1) {
currentStateIndex++;
}
// Add a new action to only recompute state
const /** @type {?} */ actionId = nextActionId++;
actionsById[actionId] = new PerformAction(liftedAction);
stagedActionIds = [...stagedActionIds, actionId];
minInvalidatedStateIndex = stagedActionIds.length - 1;
// States must be recomputed before committing excess.
computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds);
currentStateIndex = minInvalidatedStateIndex;
if (options.maxAge && stagedActionIds.length > options.maxAge) {
commitExcessActions(stagedActionIds.length - options.maxAge);
}
// Avoid double computation.
minInvalidatedStateIndex = Infinity;
}
break;
}
default: {

@@ -521,7 +617,6 @@ // If the action is not recognized, it's a monitor action.

class StoreDevtoolsConfig {
}
const STORE_DEVTOOLS_CONFIG = new InjectionToken('@ngrx/devtools Options');
const INITIAL_OPTIONS = new InjectionToken('@ngrx/devtools Initial Config');
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
class DevtoolsDispatcher extends ActionsSubject {

@@ -532,5 +627,3 @@ }

];
/**
* @nocollapse
*/
/** @nocollapse */
DevtoolsDispatcher.ctorParameters = () => [];

@@ -548,5 +641,5 @@ class StoreDevtools {

constructor(dispatcher, actions$, reducers$, extension, scannedActions, initialState, config) {
const liftedInitialState = liftInitialState(initialState, config.monitor);
const liftReducer = liftReducerWith(initialState, liftedInitialState, config.monitor, config.maxAge ? { maxAge: config.maxAge } : {});
const liftedAction$ = applyOperators(actions$.asObservable(), [
const /** @type {?} */ liftedInitialState = liftInitialState(initialState, config.monitor);
const /** @type {?} */ liftReducer = liftReducerWith(initialState, liftedInitialState, config.monitor, config);
const /** @type {?} */ liftedAction$ = applyOperators(actions$.asObservable(), [
[skip$1, 1],

@@ -558,5 +651,5 @@ [merge$1, extension.actions$],

]);
const liftedReducer$ = map$1.call(reducers$, liftReducer);
const liftedStateSubject = new ReplaySubject$1(1);
const liftedStateSubscription = applyOperators(liftedAction$, [
const /** @type {?} */ liftedReducer$ = map$1.call(reducers$, liftReducer);
const /** @type {?} */ liftedStateSubject = new ReplaySubject$1(1);
const /** @type {?} */ liftedStateSubscription = applyOperators(liftedAction$, [
[withLatestFrom$1, liftedReducer$],

@@ -566,3 +659,3 @@ [

({ state: liftedState }, [action, reducer]) => {
const state = reducer(liftedState, action);
const /** @type {?} */ state = reducer(liftedState, action);
extension.notify(action, state);

@@ -576,8 +669,8 @@ return { state, action };

if (action.type === PERFORM_ACTION) {
const unlifedAction = action.action;
scannedActions.next(unlifedAction);
const /** @type {?} */ unliftedAction = (/** @type {?} */ (action)).action;
scannedActions.next(unliftedAction);
}
});
const liftedState$ = liftedStateSubject.asObservable();
const state$ = map$1.call(liftedState$, unliftState);
const /** @type {?} */ liftedState$ = /** @type {?} */ (liftedStateSubject.asObservable());
const /** @type {?} */ state$ = map$1.call(liftedState$, unliftState);
this.stateSubscription = liftedStateSubscription;

@@ -650,2 +743,9 @@ this.dispatcher = dispatcher;

/**
* @param {?} actionId
* @return {?}
*/
jumpToAction(actionId) {
this.dispatch(new JumpToAction(actionId));
}
/**
* @param {?} index

@@ -668,5 +768,3 @@ * @return {?}

];
/**
* @nocollapse
*/
/** @nocollapse */
StoreDevtools.ctorParameters = () => [

@@ -682,2 +780,6 @@ { type: DevtoolsDispatcher, },

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
const IS_EXTENSION_OR_MONITOR_PRESENT = new InjectionToken('Is Devtools Extension or Monitor Present');

@@ -698,4 +800,4 @@ /**

if (typeof window === 'object' &&
typeof ((window))[extensionKey] !== 'undefined') {
return ((window))[extensionKey];
typeof (/** @type {?} */ (window))[extensionKey] !== 'undefined') {
return (/** @type {?} */ (window))[extensionKey];
}

@@ -720,2 +822,15 @@ else {

/**
* @return {?}
*/
function noActionSanitizer() {
return null;
}
/**
* @return {?}
*/
function noStateSanitizer() {
return null;
}
const DEFAULT_NAME = 'NgRx Store DevTools';
/**
* @param {?} _options

@@ -728,5 +843,15 @@ * @return {?}

monitor: noMonitor,
actionSanitizer: noActionSanitizer,
stateSanitizer: noStateSanitizer,
name: DEFAULT_NAME,
serialize: false,
logOnly: false,
features: false,
};
let /** @type {?} */ options = typeof _options === 'function' ? _options() : _options;
const /** @type {?} */ config = Object.assign({}, DEFAULT_OPTIONS, options);
const /** @type {?} */ logOnly = options.logOnly
? { pause: true, export: true, test: true }
: false;
const /** @type {?} */ features = options.features || logOnly;
const /** @type {?} */ config = Object.assign({}, DEFAULT_OPTIONS, { features }, options);
if (config.maxAge && config.maxAge < 2) {

@@ -783,8 +908,20 @@ throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${config.maxAge}`);

];
/** @nocollapse */
StoreDevtoolsModule.ctorParameters = () => [];
/**
* @nocollapse
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
StoreDevtoolsModule.ctorParameters = () => [];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Generated bundle index. Do not edit.

@@ -791,0 +928,0 @@ */

@@ -17,2 +17,17 @@ (function (global, factory) {

})();
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var StoreDevtoolsConfig = (function () {
function StoreDevtoolsConfig() {
}
return StoreDevtoolsConfig;
}());
var STORE_DEVTOOLS_CONFIG = new core.InjectionToken('@ngrx/devtools Options');
var INITIAL_OPTIONS = new core.InjectionToken('@ngrx/devtools Initial Config');
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var PERFORM_ACTION = 'PERFORM_ACTION';

@@ -26,2 +41,3 @@ var RESET = 'RESET';

var JUMP_TO_STATE = 'JUMP_TO_STATE';
var JUMP_TO_ACTION = 'JUMP_TO_ACTION';
var IMPORT_STATE = 'IMPORT_STATE';

@@ -100,2 +116,12 @@ var PerformAction = (function () {

}());
var JumpToAction = (function () {
/**
* @param {?} actionId
*/
function JumpToAction(actionId) {
this.actionId = actionId;
this.type = JUMP_TO_ACTION;
}
return JumpToAction;
}());
var ImportState = (function () {

@@ -112,2 +138,6 @@ /**

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @param {?} first

@@ -153,2 +183,6 @@ * @param {?} second

}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var ExtensionActionTypes = {

@@ -161,7 +195,18 @@ START: 'START',

var REDUX_DEVTOOLS_EXTENSION = new core.InjectionToken('Redux Devtools Extension');
/**
* @record
*/
/**
* @record
*/
/**
* @record
*/
var DevtoolsExtension = (function () {
/**
* @param {?} devtoolsExtension
* @param {?} config
*/
function DevtoolsExtension(devtoolsExtension) {
function DevtoolsExtension(devtoolsExtension, config) {
this.config = config;
this.instanceId = "ngrx-store-" + Date.now();

@@ -180,3 +225,3 @@ this.devtoolsExtension = devtoolsExtension;

}
this.devtoolsExtension.send(null, state, { serialize: false }, this.instanceId);
this.devtoolsExtension.send(null, state, this.config, this.instanceId);
};

@@ -194,3 +239,6 @@ /**

instanceId: _this.instanceId,
name: _this.config.name,
features: _this.config.features,
});
connection.init();
connection.subscribe(function (change) { return subscriber.next(change); });

@@ -239,10 +287,16 @@ return connection.unsubscribe;

];
/**
* @nocollapse
*/
/** @nocollapse */
DevtoolsExtension.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core.Inject, args: [REDUX_DEVTOOLS_EXTENSION,] },] },
{ type: StoreDevtoolsConfig, decorators: [{ type: core.Inject, args: [STORE_DEVTOOLS_CONFIG,] },] },
]; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var INIT_ACTION = { type: store.INIT };
/**
* @record
*/
/**
* Computes the next entry in the log by applying an action.

@@ -337,4 +391,4 @@ * @param {?} reducer

/**
* Manages how the history actions modify the history state.
*/
* Manages how the history actions modify the history state.
*/
return function (reducer) { return function (liftedState, liftedAction) {

@@ -451,2 +505,11 @@ var _a = liftedState || initialLiftedState, monitorState = _a.monitorState, actionsById = _a.actionsById, nextActionId = _a.nextActionId, stagedActionIds = _a.stagedActionIds, skippedActionIds = _a.skippedActionIds, committedState = _a.committedState, currentStateIndex = _a.currentStateIndex, computedStates = _a.computedStates;

}
case JUMP_TO_ACTION: {
// Jumps to a corresponding state to a specific action.
// Useful when filtering actions.
var /** @type {?} */ index = stagedActionIds.indexOf(liftedAction.actionId);
if (index !== -1)
currentStateIndex = index;
minInvalidatedStateIndex = Infinity;
break;
}
case SWEEP: {

@@ -481,3 +544,2 @@ // Forget any actions that are currently being skipped.

}
case store.UPDATE:
case store.INIT: {

@@ -495,2 +557,35 @@ // Always recompute states on hot reload and init.

}
case store.UPDATE: {
var /** @type {?} */ stateHasErrors = computedStates.filter(function (state) { return state.error; }).length > 0;
if (stateHasErrors) {
// Recompute all states
minInvalidatedStateIndex = 0;
if (options.maxAge && stagedActionIds.length > options.maxAge) {
// States must be recomputed before committing excess.
computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds);
commitExcessActions(stagedActionIds.length - options.maxAge);
// Avoid double computation.
minInvalidatedStateIndex = Infinity;
}
}
else {
if (currentStateIndex === stagedActionIds.length - 1) {
currentStateIndex++;
}
// Add a new action to only recompute state
var /** @type {?} */ actionId = nextActionId++;
actionsById[actionId] = new PerformAction(liftedAction);
stagedActionIds = stagedActionIds.concat([actionId]);
minInvalidatedStateIndex = stagedActionIds.length - 1;
// States must be recomputed before committing excess.
computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds);
currentStateIndex = minInvalidatedStateIndex;
if (options.maxAge && stagedActionIds.length > options.maxAge) {
commitExcessActions(stagedActionIds.length - options.maxAge);
}
// Avoid double computation.
minInvalidatedStateIndex = Infinity;
}
break;
}
default: {

@@ -518,9 +613,6 @@ // If the action is not recognized, it's a monitor action.

}
var StoreDevtoolsConfig = (function () {
function StoreDevtoolsConfig() {
}
return StoreDevtoolsConfig;
}());
var STORE_DEVTOOLS_CONFIG = new core.InjectionToken('@ngrx/devtools Options');
var INITIAL_OPTIONS = new core.InjectionToken('@ngrx/devtools Initial Config');
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var DevtoolsDispatcher = (function (_super) {

@@ -536,5 +628,3 @@ __extends(DevtoolsDispatcher, _super);

];
/**
* @nocollapse
*/
/** @nocollapse */
DevtoolsDispatcher.ctorParameters = function () { return []; };

@@ -552,5 +642,5 @@ var StoreDevtools = (function () {

function StoreDevtools(dispatcher, actions$, reducers$, extension, scannedActions, initialState, config) {
var liftedInitialState = liftInitialState(initialState, config.monitor);
var liftReducer = liftReducerWith(initialState, liftedInitialState, config.monitor, config.maxAge ? { maxAge: config.maxAge } : {});
var liftedAction$ = applyOperators(actions$.asObservable(), [
var /** @type {?} */ liftedInitialState = liftInitialState(initialState, config.monitor);
var /** @type {?} */ liftReducer = liftReducerWith(initialState, liftedInitialState, config.monitor, config);
var /** @type {?} */ liftedAction$ = applyOperators(actions$.asObservable(), [
[skip.skip, 1],

@@ -562,5 +652,5 @@ [merge.merge, extension.actions$],

]);
var liftedReducer$ = map.map.call(reducers$, liftReducer);
var liftedStateSubject = new ReplaySubject.ReplaySubject(1);
var liftedStateSubscription = applyOperators(liftedAction$, [
var /** @type {?} */ liftedReducer$ = map.map.call(reducers$, liftReducer);
var /** @type {?} */ liftedStateSubject = new ReplaySubject.ReplaySubject(1);
var /** @type {?} */ liftedStateSubscription = applyOperators(liftedAction$, [
[withLatestFrom.withLatestFrom, liftedReducer$],

@@ -572,3 +662,3 @@ [

var action = _b[0], reducer = _b[1];
var state = reducer(liftedState, action);
var /** @type {?} */ state = reducer(liftedState, action);
extension.notify(action, state);

@@ -583,8 +673,8 @@ return { state: state, action: action };

if (action.type === PERFORM_ACTION) {
var unlifedAction = action.action;
scannedActions.next(unlifedAction);
var /** @type {?} */ unliftedAction = ((action)).action;
scannedActions.next(unliftedAction);
}
});
var liftedState$ = liftedStateSubject.asObservable();
var state$ = map.map.call(liftedState$, unliftState);
var /** @type {?} */ liftedState$ = (liftedStateSubject.asObservable());
var /** @type {?} */ state$ = map.map.call(liftedState$, unliftState);
this.stateSubscription = liftedStateSubscription;

@@ -657,2 +747,9 @@ this.dispatcher = dispatcher;

/**
* @param {?} actionId
* @return {?}
*/
StoreDevtools.prototype.jumpToAction = function (actionId) {
this.dispatch(new JumpToAction(actionId));
};
/**
* @param {?} index

@@ -676,5 +773,3 @@ * @return {?}

];
/**
* @nocollapse
*/
/** @nocollapse */
StoreDevtools.ctorParameters = function () { return [

@@ -689,2 +784,6 @@ { type: DevtoolsDispatcher, },

]; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var IS_EXTENSION_OR_MONITOR_PRESENT = new core.InjectionToken('Is Devtools Extension or Monitor Present');

@@ -726,2 +825,15 @@ /**

/**
* @return {?}
*/
function noActionSanitizer() {
return null;
}
/**
* @return {?}
*/
function noStateSanitizer() {
return null;
}
var DEFAULT_NAME = 'NgRx Store DevTools';
/**
* @param {?} _options

@@ -734,5 +846,15 @@ * @return {?}

monitor: noMonitor,
actionSanitizer: noActionSanitizer,
stateSanitizer: noStateSanitizer,
name: DEFAULT_NAME,
serialize: false,
logOnly: false,
features: false,
};
var /** @type {?} */ options = typeof _options === 'function' ? _options() : _options;
var /** @type {?} */ config = Object.assign({}, DEFAULT_OPTIONS, options);
var /** @type {?} */ logOnly = options.logOnly
? { pause: true, export: true, test: true }
: false;
var /** @type {?} */ features = options.features || logOnly;
var /** @type {?} */ config = Object.assign({}, DEFAULT_OPTIONS, { features: features }, options);
if (config.maxAge && config.maxAge < 2) {

@@ -793,5 +915,3 @@ throw new Error("Devtools 'maxAge' cannot be less than 2, got " + config.maxAge);

];
/**
* @nocollapse
*/
/** @nocollapse */
StoreDevtoolsModule.ctorParameters = function () { return []; };

@@ -798,0 +918,0 @@

3

bundles/store-devtools.umd.min.js

@@ -1,2 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@ngrx/store"),require("rxjs/ReplaySubject"),require("rxjs/operator/map"),require("rxjs/operator/merge"),require("rxjs/operator/observeOn"),require("rxjs/operator/scan"),require("rxjs/operator/skip"),require("rxjs/operator/withLatestFrom"),require("rxjs/scheduler/queue"),require("rxjs/Observable"),require("rxjs/observable/empty"),require("rxjs/operator/filter"),require("rxjs/operator/share"),require("rxjs/operator/switchMap"),require("rxjs/operator/takeUntil")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@ngrx/store","rxjs/ReplaySubject","rxjs/operator/map","rxjs/operator/merge","rxjs/operator/observeOn","rxjs/operator/scan","rxjs/operator/skip","rxjs/operator/withLatestFrom","rxjs/scheduler/queue","rxjs/Observable","rxjs/observable/empty","rxjs/operator/filter","rxjs/operator/share","rxjs/operator/switchMap","rxjs/operator/takeUntil"],e):e((t.ngrx=t.ngrx||{},t.ngrx.storeDevtools={}),t.ng.core,t.ngrx.store,t.Rx,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Scheduler,t.Rx,t.Rx.Observable,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype)}(this,function(exports,core,store,ReplaySubject,map,merge,observeOn,scan,skip,withLatestFrom,queue,Observable,empty,filter,share,switchMap,takeUntil){"use strict";function difference(t,e){return t.filter(function(t){return e.indexOf(t)<0})}function unliftState(t){return t.computedStates[t.currentStateIndex].state}function liftAction(t){return new PerformAction(t)}function applyOperators(t,e){return e.reduce(function(t,e){var o=e[0],r=e.slice(1);return o.apply(t,r)},t)}function computeNextEntry(t,e,o,r){if(r)return{state:o,error:"Interrupted by an error up the chain"};var n,i=o;try{i=t(o,e)}catch(t){n=t.toString(),console.error(t.stack||t)}return{state:i,error:n}}function recomputeStates(t,e,o,r,n,i,s){if(e>=t.length&&t.length===i.length)return t;for(var a=t.slice(0,e),c=e;c<i.length;c++){var p=i[c],u=n[p].action,l=a[c-1],f=l?l.state:r,O=l?l.error:void 0,d=s.indexOf(p)>-1,x=d?l:computeNextEntry(o,u,f,O);a.push(x)}return a}function liftInitialState(t,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[]}}function liftReducerWith(t,e,o,r){return void 0===r&&(r={}),function(n){return function(i,s){function a(t){for(var e=t,o=f.slice(1,e+1),r=0;r<o.length;r++){if(T[r+1].error){e=r,o=f.slice(1,e+1);break}delete u[o[r]]}O=O.filter(function(t){return-1===o.indexOf(t)}),f=[0].concat(f.slice(e+1)),d=T[e].state,T=T.slice(e),x=x>e?x-e:0}var c=i||e,p=c.monitorState,u=c.actionsById,l=c.nextActionId,f=c.stagedActionIds,O=c.skippedActionIds,d=c.committedState,x=c.currentStateIndex,T=c.computedStates;i||(u=Object.create(u));var S=0;switch(s.type){case RESET:u={0:liftAction(INIT_ACTION)},l=1,f=[0],O=[],d=t,x=0,T=[];break;case COMMIT:u={0:liftAction(INIT_ACTION)},l=1,f=[0],O=[],d=T[x].state,x=0,T=[];break;case ROLLBACK:u={0:liftAction(INIT_ACTION)},l=1,f=[0],O=[],x=0,T=[];break;case TOGGLE_ACTION:var I=s.id,v=O.indexOf(I);O=-1===v?[I].concat(O):O.filter(function(t){return t!==I}),S=f.indexOf(I);break;case SET_ACTIONS_ACTIVE:for(var E=s.start,h=s.end,y=s.active,m=[],A=E;A<h;A++)m.push(A);O=y?difference(O,m):O.concat(m),S=f.indexOf(E);break;case JUMP_TO_STATE:x=s.index,S=1/0;break;case SWEEP:f=difference(f,O),O=[],x=Math.min(x,f.length-1);break;case PERFORM_ACTION:r.maxAge&&f.length===r.maxAge&&a(1),x===f.length-1&&x++;var b=l++;u[b]=s,f=f.concat([b]),S=f.length-1;break;case IMPORT_STATE:_=s.nextLiftedState,p=_.monitorState,u=_.actionsById,l=_.nextActionId,f=_.stagedActionIds,O=_.skippedActionIds,d=_.committedState,x=_.currentStateIndex,T=_.computedStates;break;case store.UPDATE:case store.INIT:S=0,r.maxAge&&f.length>r.maxAge&&(T=recomputeStates(T,S,n,d,u,f,O),a(f.length-r.maxAge),S=1/0);break;default:S=1/0}return T=recomputeStates(T,S,n,d,u,f,O),p=o(p,s),{monitorState:p,actionsById:u,nextActionId:l,stagedActionIds:f,skippedActionIds:O,committedState:d,currentStateIndex:x,computedStates:T};var _}}}function createIsExtensionOrMonitorPresent(t,e){return Boolean(t)||e.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(t){return t.state}function noMonitor(){return null}function createConfig(t){var e={maxAge:!1,monitor:noMonitor},o="function"==typeof t?t():t,r=Object.assign({},e,o);if(r.maxAge&&r.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+r.maxAge);return r}var __extends=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),PERFORM_ACTION="PERFORM_ACTION",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",IMPORT_STATE="IMPORT_STATE",PerformAction=function(){function t(t,e){if(this.action=t,this.timestamp=e,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}return t}(),Reset=function(){function t(t){this.timestamp=t,this.type=RESET}return t}(),Rollback=function(){function t(t){this.timestamp=t,this.type=ROLLBACK}return t}(),Commit=function(){function t(t){this.timestamp=t,this.type=COMMIT}return t}(),Sweep=function(){function t(){this.type=SWEEP}return t}(),ToggleAction=function(){function t(t){this.id=t,this.type=TOGGLE_ACTION}return t}(),JumpToState=function(){function t(t){this.index=t,this.type=JUMP_TO_STATE}return t}(),ImportState=function(){function t(t){this.nextLiftedState=t,this.type=IMPORT_STATE}return t}(),ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new core.InjectionToken("Redux Devtools Extension"),DevtoolsExtension=function(){function DevtoolsExtension(t){this.instanceId="ngrx-store-"+Date.now(),this.devtoolsExtension=t,this.createActionStreams()}return DevtoolsExtension.prototype.notify=function(t,e){this.devtoolsExtension&&this.devtoolsExtension.send(null,e,{serialize:!1},this.instanceId)},DevtoolsExtension.prototype.createChangesObservable=function(){var t=this;return this.devtoolsExtension?new Observable.Observable(function(e){var o=t.devtoolsExtension.connect({instanceId:t.instanceId});return o.subscribe(function(t){return e.next(t)}),o.unsubscribe}):empty.empty()},DevtoolsExtension.prototype.createActionStreams=function(){var t=this,e=share.share.call(this.createChangesObservable()),o=filter.filter.call(e,function(t){return t.type===ExtensionActionTypes.START}),r=filter.filter.call(e,function(t){return t.type===ExtensionActionTypes.STOP}),n=applyOperators(e,[[filter.filter,function(t){return t.type===ExtensionActionTypes.DISPATCH}],[map.map,function(e){return t.unwrapAction(e.payload)}]]),i=applyOperators(e,[[filter.filter,function(t){return t.type===ExtensionActionTypes.ACTION}],[map.map,function(e){return t.unwrapAction(e.payload)}]]),s=takeUntil.takeUntil.call(i,r),a=takeUntil.takeUntil.call(n,r);this.actions$=switchMap.switchMap.call(o,function(){return s}),this.liftedActions$=switchMap.switchMap.call(o,function(){return a})},DevtoolsExtension.prototype.unwrapAction=function(action){return"string"==typeof action?eval("("+action+")"):action},DevtoolsExtension}();DevtoolsExtension.decorators=[{type:core.Injectable}],DevtoolsExtension.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:[REDUX_DEVTOOLS_EXTENSION]}]}]};var INIT_ACTION={type:store.INIT},StoreDevtoolsConfig=function(){function t(){}return t}(),STORE_DEVTOOLS_CONFIG=new core.InjectionToken("@ngrx/devtools Options"),INITIAL_OPTIONS=new core.InjectionToken("@ngrx/devtools Initial Config"),DevtoolsDispatcher=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(store.ActionsSubject);DevtoolsDispatcher.decorators=[{type:core.Injectable}],DevtoolsDispatcher.ctorParameters=function(){return[]};var StoreDevtools=function(){function t(t,e,o,r,n,i,s){var a=liftInitialState(i,s.monitor),c=liftReducerWith(i,a,s.monitor,s.maxAge?{maxAge:s.maxAge}:{}),p=applyOperators(e.asObservable(),[[skip.skip,1],[merge.merge,r.actions$],[map.map,liftAction],[merge.merge,t,r.liftedActions$],[observeOn.observeOn,queue.queue]]),u=map.map.call(o,c),l=new ReplaySubject.ReplaySubject(1),f=applyOperators(p,[[withLatestFrom.withLatestFrom,u],[scan.scan,function(t,e){var o=t.state,n=e[0],i=e[1],s=i(o,n);return r.notify(n,s),{state:s,action:n}},{state:a,action:null}]]).subscribe(function(t){var e=t.state,o=t.action;if(l.next(e),o.type===PERFORM_ACTION){var r=o.action;n.next(r)}}),O=l.asObservable(),d=map.map.call(O,unliftState);this.stateSubscription=f,this.dispatcher=t,this.liftedState=O,this.state=d}return t.prototype.dispatch=function(t){this.dispatcher.next(t)},t.prototype.next=function(t){this.dispatcher.next(t)},t.prototype.error=function(t){},t.prototype.complete=function(){},t.prototype.performAction=function(t){this.dispatch(new PerformAction(t))},t.prototype.reset=function(){this.dispatch(new Reset)},t.prototype.rollback=function(){this.dispatch(new Rollback)},t.prototype.commit=function(){this.dispatch(new Commit)},t.prototype.sweep=function(){this.dispatch(new Sweep)},t.prototype.toggleAction=function(t){this.dispatch(new ToggleAction(t))},t.prototype.jumpToState=function(t){this.dispatch(new JumpToState(t))},t.prototype.importState=function(t){this.dispatch(new ImportState(t))},t}();StoreDevtools.decorators=[{type:core.Injectable}],StoreDevtools.ctorParameters=function(){return[{type:DevtoolsDispatcher},{type:store.ActionsSubject},{type:store.ReducerObservable},{type:DevtoolsExtension},{type:store.ScannedActionsSubject},{type:void 0,decorators:[{type:core.Inject,args:[store.INITIAL_STATE]}]},{type:StoreDevtoolsConfig,decorators:[{type:core.Inject,args:[STORE_DEVTOOLS_CONFIG]}]}]};var IS_EXTENSION_OR_MONITOR_PRESENT=new core.InjectionToken("Is Devtools Extension or Monitor Present"),StoreDevtoolsModule=function(){function t(){}return t.instrument=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:store.StateObservable,deps:[StoreDevtools],useFactory:createStateObservable},{provide:store.ReducerManagerDispatcher,useExisting:DevtoolsDispatcher}]}},t}();StoreDevtoolsModule.decorators=[{type:core.NgModule,args:[{}]}],StoreDevtoolsModule.ctorParameters=function(){return[]},exports.StoreDevtoolsModule=StoreDevtoolsModule,exports.StoreDevtools=StoreDevtools,exports.StoreDevtoolsConfig=StoreDevtoolsConfig,exports.ɵi=INITIAL_OPTIONS,exports.ɵh=STORE_DEVTOOLS_CONFIG,exports.ɵg=DevtoolsDispatcher,exports.ɵk=DevtoolsExtension,exports.ɵj=REDUX_DEVTOOLS_EXTENSION,exports.ɵa=IS_EXTENSION_OR_MONITOR_PRESENT,exports.ɵf=createConfig,exports.ɵb=createIsExtensionOrMonitorPresent,exports.ɵc=createReduxDevtoolsExtension,exports.ɵd=createStateObservable,exports.ɵe=noMonitor,Object.defineProperty(exports,"__esModule",{value:!0})});
//# sourceMappingURL=./dist/store-devtools/bundles/store-devtools.umd.min.js.map
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@ngrx/store"),require("rxjs/ReplaySubject"),require("rxjs/operator/map"),require("rxjs/operator/merge"),require("rxjs/operator/observeOn"),require("rxjs/operator/scan"),require("rxjs/operator/skip"),require("rxjs/operator/withLatestFrom"),require("rxjs/scheduler/queue"),require("rxjs/Observable"),require("rxjs/observable/empty"),require("rxjs/operator/filter"),require("rxjs/operator/share"),require("rxjs/operator/switchMap"),require("rxjs/operator/takeUntil")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@ngrx/store","rxjs/ReplaySubject","rxjs/operator/map","rxjs/operator/merge","rxjs/operator/observeOn","rxjs/operator/scan","rxjs/operator/skip","rxjs/operator/withLatestFrom","rxjs/scheduler/queue","rxjs/Observable","rxjs/observable/empty","rxjs/operator/filter","rxjs/operator/share","rxjs/operator/switchMap","rxjs/operator/takeUntil"],e):e((t.ngrx=t.ngrx||{},t.ngrx.storeDevtools={}),t.ng.core,t.ngrx.store,t.Rx,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Scheduler,t.Rx,t.Rx.Observable,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype)}(this,function(exports,core,store,ReplaySubject,map,merge,observeOn,scan,skip,withLatestFrom,queue,Observable,empty,filter,share,switchMap,takeUntil){"use strict";function difference(t,e){return t.filter(function(t){return e.indexOf(t)<0})}function unliftState(t){return t.computedStates[t.currentStateIndex].state}function liftAction(t){return new PerformAction(t)}function applyOperators(t,e){return e.reduce(function(t,e){var o=e[0],r=e.slice(1);return o.apply(t,r)},t)}function computeNextEntry(t,e,o,r){if(r)return{state:o,error:"Interrupted by an error up the chain"};var n,i=o;try{i=t(o,e)}catch(t){n=t.toString(),console.error(t.stack||t)}return{state:i,error:n}}function recomputeStates(t,e,o,r,n,i,s){if(e>=t.length&&t.length===i.length)return t;for(var a=t.slice(0,e),c=e;c<i.length;c++){var p=i[c],u=n[p].action,l=a[c-1],f=l?l.state:r,O=l?l.error:void 0,T=s.indexOf(p)>-1?l:computeNextEntry(o,u,f,O);a.push(T)}return a}function liftInitialState(t,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[]}}function liftReducerWith(t,e,o,r){return void 0===r&&(r={}),function(n){return function(i,s){function a(t){for(var e=t,o=f.slice(1,e+1),r=0;r<o.length;r++){if(x[r+1].error){e=r,o=f.slice(1,e+1);break}delete u[o[r]]}O=O.filter(function(t){return-1===o.indexOf(t)}),f=[0].concat(f.slice(e+1)),T=x[e].state,x=x.slice(e),d=d>e?d-e:0}var c=i||e,p=c.monitorState,u=c.actionsById,l=c.nextActionId,f=c.stagedActionIds,O=c.skippedActionIds,T=c.committedState,d=c.currentStateIndex,x=c.computedStates;i||(u=Object.create(u));var S=0;switch(s.type){case RESET:u={0:liftAction(INIT_ACTION)},l=1,f=[0],O=[],T=t,d=0,x=[];break;case COMMIT:u={0:liftAction(INIT_ACTION)},l=1,f=[0],O=[],T=x[d].state,d=0,x=[];break;case ROLLBACK:u={0:liftAction(INIT_ACTION)},l=1,f=[0],O=[],d=0,x=[];break;case TOGGLE_ACTION:var I=s.id,E=O.indexOf(I);O=-1===E?[I].concat(O):O.filter(function(t){return t!==I}),S=f.indexOf(I);break;case SET_ACTIONS_ACTIVE:for(var v=s.start,h=s.end,A=s.active,m=[],y=v;y<h;y++)m.push(y);O=A?difference(O,m):O.concat(m),S=f.indexOf(v);break;case JUMP_TO_STATE:d=s.index,S=1/0;break;case JUMP_TO_ACTION:-1!==(E=f.indexOf(s.actionId))&&(d=E),S=1/0;break;case SWEEP:f=difference(f,O),O=[],d=Math.min(d,f.length-1);break;case PERFORM_ACTION:r.maxAge&&f.length===r.maxAge&&a(1),d===f.length-1&&d++;_=l++;u[_]=s,S=(f=f.concat([_])).length-1;break;case IMPORT_STATE:p=(b=s.nextLiftedState).monitorState,u=b.actionsById,l=b.nextActionId,f=b.stagedActionIds,O=b.skippedActionIds,T=b.committedState,d=b.currentStateIndex,x=b.computedStates;break;case store.INIT:S=0,r.maxAge&&f.length>r.maxAge&&(x=recomputeStates(x,S,n,T,u,f,O),a(f.length-r.maxAge),S=1/0);break;case store.UPDATE:if(x.filter(function(t){return t.error}).length>0)S=0,r.maxAge&&f.length>r.maxAge&&(x=recomputeStates(x,S,n,T,u,f,O),a(f.length-r.maxAge),S=1/0);else{d===f.length-1&&d++;var _=l++;u[_]=new PerformAction(s),S=(f=f.concat([_])).length-1,x=recomputeStates(x,S,n,T,u,f,O),d=S,r.maxAge&&f.length>r.maxAge&&a(f.length-r.maxAge),S=1/0}break;default:S=1/0}return x=recomputeStates(x,S,n,T,u,f,O),p=o(p,s),{monitorState:p,actionsById:u,nextActionId:l,stagedActionIds:f,skippedActionIds:O,committedState:T,currentStateIndex:d,computedStates:x};var b}}}function createIsExtensionOrMonitorPresent(t,e){return Boolean(t)||e.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(t){return t.state}function noMonitor(){return null}function noActionSanitizer(){return null}function noStateSanitizer(){return null}function createConfig(t){var e={maxAge:!1,monitor:noMonitor,actionSanitizer:noActionSanitizer,stateSanitizer:noStateSanitizer,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:!1},o="function"==typeof t?t():t,r=!!o.logOnly&&{pause:!0,export:!0,test:!0},n=o.features||r,i=Object.assign({},e,{features:n},o);if(i.maxAge&&i.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+i.maxAge);return i}var __extends=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),StoreDevtoolsConfig=function(){return function(){}}(),STORE_DEVTOOLS_CONFIG=new core.InjectionToken("@ngrx/devtools Options"),INITIAL_OPTIONS=new core.InjectionToken("@ngrx/devtools Initial Config"),PERFORM_ACTION="PERFORM_ACTION",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",PerformAction=function(){return function(t,e){if(this.action=t,this.timestamp=e,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}(),Reset=function(){return function(t){this.timestamp=t,this.type=RESET}}(),Rollback=function(){return function(t){this.timestamp=t,this.type=ROLLBACK}}(),Commit=function(){return function(t){this.timestamp=t,this.type=COMMIT}}(),Sweep=function(){return function(){this.type=SWEEP}}(),ToggleAction=function(){return function(t){this.id=t,this.type=TOGGLE_ACTION}}(),JumpToState=function(){return function(t){this.index=t,this.type=JUMP_TO_STATE}}(),JumpToAction=function(){return function(t){this.actionId=t,this.type=JUMP_TO_ACTION}}(),ImportState=function(){return function(t){this.nextLiftedState=t,this.type=IMPORT_STATE}}(),ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new core.InjectionToken("Redux Devtools Extension"),DevtoolsExtension=function(){function DevtoolsExtension(t,e){this.config=e,this.instanceId="ngrx-store-"+Date.now(),this.devtoolsExtension=t,this.createActionStreams()}return DevtoolsExtension.prototype.notify=function(t,e){this.devtoolsExtension&&this.devtoolsExtension.send(null,e,this.config,this.instanceId)},DevtoolsExtension.prototype.createChangesObservable=function(){var t=this;return this.devtoolsExtension?new Observable.Observable(function(e){var o=t.devtoolsExtension.connect({instanceId:t.instanceId,name:t.config.name,features:t.config.features});return o.init(),o.subscribe(function(t){return e.next(t)}),o.unsubscribe}):empty.empty()},DevtoolsExtension.prototype.createActionStreams=function(){var t=this,e=share.share.call(this.createChangesObservable()),o=filter.filter.call(e,function(t){return t.type===ExtensionActionTypes.START}),r=filter.filter.call(e,function(t){return t.type===ExtensionActionTypes.STOP}),n=applyOperators(e,[[filter.filter,function(t){return t.type===ExtensionActionTypes.DISPATCH}],[map.map,function(e){return t.unwrapAction(e.payload)}]]),i=applyOperators(e,[[filter.filter,function(t){return t.type===ExtensionActionTypes.ACTION}],[map.map,function(e){return t.unwrapAction(e.payload)}]]),s=takeUntil.takeUntil.call(i,r),a=takeUntil.takeUntil.call(n,r);this.actions$=switchMap.switchMap.call(o,function(){return s}),this.liftedActions$=switchMap.switchMap.call(o,function(){return a})},DevtoolsExtension.prototype.unwrapAction=function(action){return"string"==typeof action?eval("("+action+")"):action},DevtoolsExtension}();DevtoolsExtension.decorators=[{type:core.Injectable}],DevtoolsExtension.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:[REDUX_DEVTOOLS_EXTENSION]}]},{type:StoreDevtoolsConfig,decorators:[{type:core.Inject,args:[STORE_DEVTOOLS_CONFIG]}]}]};var INIT_ACTION={type:store.INIT},DevtoolsDispatcher=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(store.ActionsSubject);DevtoolsDispatcher.decorators=[{type:core.Injectable}],DevtoolsDispatcher.ctorParameters=function(){return[]};var StoreDevtools=function(){function t(t,e,o,r,n,i,s){var a=liftInitialState(i,s.monitor),c=liftReducerWith(i,a,s.monitor,s),p=applyOperators(e.asObservable(),[[skip.skip,1],[merge.merge,r.actions$],[map.map,liftAction],[merge.merge,t,r.liftedActions$],[observeOn.observeOn,queue.queue]]),u=map.map.call(o,c),l=new ReplaySubject.ReplaySubject(1),f=applyOperators(p,[[withLatestFrom.withLatestFrom,u],[scan.scan,function(t,e){var o=t.state,n=e[0],i=(0,e[1])(o,n);return r.notify(n,i),{state:i,action:n}},{state:a,action:null}]]).subscribe(function(t){var e=t.state,o=t.action;if(l.next(e),o.type===PERFORM_ACTION){var r=o.action;n.next(r)}}),O=l.asObservable(),T=map.map.call(O,unliftState);this.stateSubscription=f,this.dispatcher=t,this.liftedState=O,this.state=T}return t.prototype.dispatch=function(t){this.dispatcher.next(t)},t.prototype.next=function(t){this.dispatcher.next(t)},t.prototype.error=function(t){},t.prototype.complete=function(){},t.prototype.performAction=function(t){this.dispatch(new PerformAction(t))},t.prototype.reset=function(){this.dispatch(new Reset)},t.prototype.rollback=function(){this.dispatch(new Rollback)},t.prototype.commit=function(){this.dispatch(new Commit)},t.prototype.sweep=function(){this.dispatch(new Sweep)},t.prototype.toggleAction=function(t){this.dispatch(new ToggleAction(t))},t.prototype.jumpToAction=function(t){this.dispatch(new JumpToAction(t))},t.prototype.jumpToState=function(t){this.dispatch(new JumpToState(t))},t.prototype.importState=function(t){this.dispatch(new ImportState(t))},t}();StoreDevtools.decorators=[{type:core.Injectable}],StoreDevtools.ctorParameters=function(){return[{type:DevtoolsDispatcher},{type:store.ActionsSubject},{type:store.ReducerObservable},{type:DevtoolsExtension},{type:store.ScannedActionsSubject},{type:void 0,decorators:[{type:core.Inject,args:[store.INITIAL_STATE]}]},{type:StoreDevtoolsConfig,decorators:[{type:core.Inject,args:[STORE_DEVTOOLS_CONFIG]}]}]};var IS_EXTENSION_OR_MONITOR_PRESENT=new core.InjectionToken("Is Devtools Extension or Monitor Present"),DEFAULT_NAME="NgRx Store DevTools",StoreDevtoolsModule=function(){function t(){}return t.instrument=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:store.StateObservable,deps:[StoreDevtools],useFactory:createStateObservable},{provide:store.ReducerManagerDispatcher,useExisting:DevtoolsDispatcher}]}},t}();StoreDevtoolsModule.decorators=[{type:core.NgModule,args:[{}]}],StoreDevtoolsModule.ctorParameters=function(){return[]},exports.StoreDevtoolsModule=StoreDevtoolsModule,exports.StoreDevtools=StoreDevtools,exports.StoreDevtoolsConfig=StoreDevtoolsConfig,exports.ɵi=INITIAL_OPTIONS,exports.ɵh=STORE_DEVTOOLS_CONFIG,exports.ɵg=DevtoolsDispatcher,exports.ɵk=DevtoolsExtension,exports.ɵj=REDUX_DEVTOOLS_EXTENSION,exports.ɵa=IS_EXTENSION_OR_MONITOR_PRESENT,exports.ɵf=createConfig,exports.ɵb=createIsExtensionOrMonitorPresent,exports.ɵc=createReduxDevtoolsExtension,exports.ɵd=createStateObservable,exports.ɵe=noMonitor,Object.defineProperty(exports,"__esModule",{value:!0})});
{
"name": "@ngrx/store-devtools",
"version": "4.1.1",
"version": "5.0.0",
"description": "Developer tools for @ngrx/store",

@@ -36,5 +36,5 @@ "module": "@ngrx/store-devtools.es5.js",

"peerDependencies": {
"@ngrx/store": "^4.0.0",
"rxjs": "^5.0.0"
"@ngrx/store": "^5.0.0-alpha.0",
"rxjs": "^5.5.0"
}
}

@@ -10,2 +10,3 @@ import { Action } from '@ngrx/store';

export declare const JUMP_TO_STATE = "JUMP_TO_STATE";
export declare const JUMP_TO_ACTION = "JUMP_TO_ACTION";
export declare const IMPORT_STATE = "IMPORT_STATE";

@@ -53,2 +54,7 @@ export declare class PerformAction implements Action {

}
export declare class JumpToAction implements Action {
actionId: number;
readonly type: string;
constructor(actionId: number);
}
export declare class ImportState implements Action {

@@ -59,2 +65,2 @@ nextLiftedState: any;

}
export declare type All = PerformAction | Reset | Rollback | Commit | Sweep | ToggleAction | SetActionsActive | JumpToState | ImportState;
export declare type All = PerformAction | Reset | Rollback | Commit | Sweep | ToggleAction | SetActionsActive | JumpToState | JumpToAction | ImportState;

@@ -1,2 +0,2 @@

import { ActionReducer } from '@ngrx/store';
import { ActionReducer, Action } from '@ngrx/store';
import { InjectionToken } from '@angular/core';

@@ -6,2 +6,8 @@ export declare class StoreDevtoolsConfig {

monitor: ActionReducer<any, any>;
actionSanitizer?: <A extends Action>(action: A, id: number) => A;
stateSanitizer?: <S>(state: S, index: number) => S;
name?: string;
serialize?: boolean;
logOnly?: boolean;
features?: any;
}

@@ -8,0 +14,0 @@ export declare const STORE_DEVTOOLS_CONFIG: InjectionToken<StoreDevtoolsConfig>;

@@ -25,4 +25,5 @@ import { Action, ReducerObservable, ActionsSubject, ScannedActionsSubject } from '@ngrx/store';

toggleAction(id: number): void;
jumpToAction(actionId: number): void;
jumpToState(index: number): void;
importState(nextLiftedState: any): void;
}
import { InjectionToken } from '@angular/core';
import { Action } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';
import { Action } from '@ngrx/store';
import { StoreDevtoolsConfig } from './config';
import { LiftedState } from './reducer';

@@ -16,13 +17,15 @@ export declare const ExtensionActionTypes: {

send(action: any, state: any): void;
init(state?: any): void;
}
export interface ReduxDevtoolsExtensionConfig {
features?: object | boolean;
name: string | undefined;
instanceId: string;
}
export interface ReduxDevtoolsExtension {
connect(options: {
shouldStringify?: boolean;
instanceId: string;
}): ReduxDevtoolsExtensionConnection;
send(action: any, state: any, options?: boolean | {
serialize: boolean | object;
}, instanceId?: string): void;
connect(options: ReduxDevtoolsExtensionConfig): ReduxDevtoolsExtensionConnection;
send(action: any, state: any, options: StoreDevtoolsConfig, instanceId?: string): void;
}
export declare class DevtoolsExtension {
private config;
private instanceId;

@@ -32,3 +35,3 @@ private devtoolsExtension;

actions$: Observable<any>;
constructor(devtoolsExtension: ReduxDevtoolsExtension);
constructor(devtoolsExtension: ReduxDevtoolsExtension, config: StoreDevtoolsConfig);
notify(action: Action, state: LiftedState): void;

@@ -35,0 +38,0 @@ private createChangesObservable();

@@ -11,2 +11,5 @@ import { InjectionToken, ModuleWithProviders } from '@angular/core';

export declare function noMonitor(): null;
export declare function noActionSanitizer(): null;
export declare function noStateSanitizer(): null;
export declare const DEFAULT_NAME = "NgRx Store DevTools";
export declare function createConfig(_options: StoreDevtoolsOptions): StoreDevtoolsConfig;

@@ -13,0 +16,0 @@ export declare class StoreDevtoolsModule {

import { Action, ActionReducer, UPDATE, INIT } from '@ngrx/store';
import * as Actions from './actions';
import { StoreDevtoolsConfig } from './config';
export declare type InitAction = {

@@ -33,6 +34,4 @@ readonly type: typeof INIT;

/**
* Creates a history state reducer from an app's reducer.
*/
export declare function liftReducerWith(initialCommittedState: any, initialLiftedState: LiftedState, monitorReducer?: any, options?: {
maxAge?: number;
}): (reducer: ActionReducer<any, any>) => ActionReducer<LiftedState, Actions>;
* Creates a history state reducer from an app's reducer.
*/
export declare function liftReducerWith(initialCommittedState: any, initialLiftedState: LiftedState, monitorReducer?: any, options?: Partial<StoreDevtoolsConfig>): (reducer: ActionReducer<any, any>) => ActionReducer<LiftedState, Actions>;

@@ -14,5 +14,5 @@ import { Action } from '@ngrx/store';

/**
* Lifts an app's action into an action on the lifted store.
*/
* Lifts an app's action into an action on the lifted store.
*/
export declare function liftAction(action: Action): Actions.PerformAction;
export declare function applyOperators(input$: Observable<any>, operators: any[][]): Observable<any>;

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":3,"metadata":{"ɵa":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["Is Devtools Extension or Monitor Present"]},"ɵb":{"__symbolic":"function","parameters":["extension","config"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Boolean"},"arguments":[{"__symbolic":"reference","name":"extension"}]},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"monitor"},"right":{"__symbolic":"reference","name":"ɵe"}}}},"ɵc":{"__symbolic":"function"},"ɵd":{"__symbolic":"function","parameters":["devtools"],"value":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"devtools"},"member":"state"}},"ɵe":{"__symbolic":"function","parameters":[],"value":null},"ɵf":{"__symbolic":"function"},"ɵg":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngrx/store","name":"ActionsSubject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{}},"ɵh":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/devtools Options"]},"ɵi":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/devtools Initial Config"]},"StoreDevtoolsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{},"statics":{"instrument":{"__symbolic":"function","parameters":["options"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"StoreDevtoolsModule"},"providers":[{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"StoreDevtools"},{"provide":{"__symbolic":"reference","name":"ɵi"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","name":"ɵa"},"deps":[{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵh"}],"useFactory":{"__symbolic":"reference","name":"ɵb"}},{"provide":{"__symbolic":"reference","name":"ɵj"},"useFactory":{"__symbolic":"reference","name":"ɵc"}},{"provide":{"__symbolic":"reference","name":"ɵh"},"deps":[{"__symbolic":"reference","name":"ɵi"}],"useFactory":{"__symbolic":"reference","name":"ɵf"}},{"provide":{"__symbolic":"reference","module":"@ngrx/store","name":"StateObservable"},"deps":[{"__symbolic":"reference","name":"StoreDevtools"}],"useFactory":{"__symbolic":"reference","name":"ɵd"}},{"provide":{"__symbolic":"reference","module":"@ngrx/store","name":"ReducerManagerDispatcher"},"useExisting":{"__symbolic":"reference","name":"ɵg"}}]}}}},"LiftedState":{"__symbolic":"interface"},"StoreDevtools":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@ngrx/store","name":"INITIAL_STATE"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵh"}]}]],"parameters":[{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","module":"@ngrx/store","name":"ActionsSubject"},{"__symbolic":"reference","module":"@ngrx/store","name":"ReducerObservable"},{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","module":"@ngrx/store","name":"ScannedActionsSubject"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"StoreDevtoolsConfig"}]}],"dispatch":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"performAction":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"rollback":[{"__symbolic":"method"}],"commit":[{"__symbolic":"method"}],"sweep":[{"__symbolic":"method"}],"toggleAction":[{"__symbolic":"method"}],"jumpToState":[{"__symbolic":"method"}],"importState":[{"__symbolic":"method"}]}},"StoreDevtoolsConfig":{"__symbolic":"class","members":{}},"StoreDevtoolsOptions":{"__symbolic":"interface"},"ɵj":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["Redux Devtools Extension"]},"ɵk":{"__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":"ɵj"}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"notify":[{"__symbolic":"method"}],"createChangesObservable":[{"__symbolic":"method"}],"createActionStreams":[{"__symbolic":"method"}],"unwrapAction":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./src/instrument","ɵb":"./src/instrument","ɵc":"./src/instrument","ɵd":"./src/instrument","ɵe":"./src/instrument","ɵf":"./src/instrument","ɵg":"./src/devtools","ɵh":"./src/config","ɵi":"./src/config","StoreDevtoolsModule":"./src/instrument","LiftedState":"./src/reducer","StoreDevtools":"./src/devtools","StoreDevtoolsConfig":"./src/config","StoreDevtoolsOptions":"./src/config","ɵj":"./src/extension","ɵk":"./src/extension"},"importAs":"@ngrx/store-devtools"}
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["Is Devtools Extension or Monitor Present"]},"ɵb":{"__symbolic":"function","parameters":["extension","config"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Boolean"},"arguments":[{"__symbolic":"reference","name":"extension"}]},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"monitor"},"right":{"__symbolic":"reference","name":"ɵe"}}}},"ɵc":{"__symbolic":"function"},"ɵd":{"__symbolic":"function","parameters":["devtools"],"value":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"devtools"},"member":"state"}},"ɵe":{"__symbolic":"function","parameters":[],"value":null},"ɵf":{"__symbolic":"function"},"ɵg":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngrx/store","name":"ActionsSubject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{}},"ɵh":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/devtools Options"]},"ɵi":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/devtools Initial Config"]},"StoreDevtoolsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{},"statics":{"instrument":{"__symbolic":"function","parameters":["options"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"StoreDevtoolsModule"},"providers":[{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"StoreDevtools"},{"provide":{"__symbolic":"reference","name":"ɵi"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","name":"ɵa"},"deps":[{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵh"}],"useFactory":{"__symbolic":"reference","name":"ɵb"}},{"provide":{"__symbolic":"reference","name":"ɵj"},"useFactory":{"__symbolic":"reference","name":"ɵc"}},{"provide":{"__symbolic":"reference","name":"ɵh"},"deps":[{"__symbolic":"reference","name":"ɵi"}],"useFactory":{"__symbolic":"reference","name":"ɵf"}},{"provide":{"__symbolic":"reference","module":"@ngrx/store","name":"StateObservable"},"deps":[{"__symbolic":"reference","name":"StoreDevtools"}],"useFactory":{"__symbolic":"reference","name":"ɵd"}},{"provide":{"__symbolic":"reference","module":"@ngrx/store","name":"ReducerManagerDispatcher"},"useExisting":{"__symbolic":"reference","name":"ɵg"}}]}}}},"LiftedState":{"__symbolic":"interface"},"StoreDevtools":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@ngrx/store","name":"INITIAL_STATE"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵh"}]}]],"parameters":[{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","module":"@ngrx/store","name":"ActionsSubject"},{"__symbolic":"reference","module":"@ngrx/store","name":"ReducerObservable"},{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","module":"@ngrx/store","name":"ScannedActionsSubject"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"StoreDevtoolsConfig"}]}],"dispatch":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"performAction":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"rollback":[{"__symbolic":"method"}],"commit":[{"__symbolic":"method"}],"sweep":[{"__symbolic":"method"}],"toggleAction":[{"__symbolic":"method"}],"jumpToAction":[{"__symbolic":"method"}],"jumpToState":[{"__symbolic":"method"}],"importState":[{"__symbolic":"method"}]}},"StoreDevtoolsConfig":{"__symbolic":"class","members":{}},"StoreDevtoolsOptions":{"__symbolic":"interface"},"ɵj":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["Redux Devtools Extension"]},"ɵk":{"__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":"ɵj"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ɵh"}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"StoreDevtoolsConfig"}]}],"notify":[{"__symbolic":"method"}],"createChangesObservable":[{"__symbolic":"method"}],"createActionStreams":[{"__symbolic":"method"}],"unwrapAction":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./src/instrument","ɵb":"./src/instrument","ɵc":"./src/instrument","ɵd":"./src/instrument","ɵe":"./src/instrument","ɵf":"./src/instrument","ɵg":"./src/devtools","ɵh":"./src/config","ɵi":"./src/config","StoreDevtoolsModule":"./src/instrument","LiftedState":"./src/reducer","StoreDevtools":"./src/devtools","StoreDevtoolsConfig":"./src/config","StoreDevtoolsOptions":"./src/config","ɵj":"./src/extension","ɵk":"./src/extension"},"importAs":"@ngrx/store-devtools"}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc