Socket
Socket
Sign inDemoInstall

redux-devtools-extension

Package Overview
Dependencies
3
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.13.8 to 2.13.9

CHANGELOG.md

2

developmentOnly.d.ts

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

export * from "redux-devtools-extension";
export * from 'redux-devtools-extension';

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

"use strict";
'use strict';

@@ -6,18 +6,22 @@ var compose = require('redux').compose;

exports.__esModule = true;
exports.composeWithDevTools = (
process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ :
function() {
if (arguments.length === 0) return undefined;
if (typeof arguments[0] === 'object') return compose;
return compose.apply(null, arguments);
}
);
exports.composeWithDevTools =
process.env.NODE_ENV !== 'production' &&
typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
: function () {
if (arguments.length === 0) return undefined;
if (typeof arguments[0] === 'object') return compose;
return compose.apply(null, arguments);
};
exports.devToolsEnhancer = (
process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION__ ?
window.__REDUX_DEVTOOLS_EXTENSION__ :
function() { return function(noop) { return noop; } }
);
exports.devToolsEnhancer =
process.env.NODE_ENV !== 'production' &&
typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION__
? window.__REDUX_DEVTOOLS_EXTENSION__
: function () {
return function (noop) {
return noop;
};
};

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

import {Action, ActionCreator, StoreEnhancer, compose} from "redux";
import { Action, ActionCreator, StoreEnhancer, compose } from 'redux';

@@ -12,3 +12,3 @@ export interface EnhancerOptions {

*/
actionCreators?: ActionCreator<any>[] | {[key: string]: ActionCreator<any>};
actionCreators?: ActionCreator<any>[] | { [key: string]: ActionCreator<any> };
/**

@@ -37,12 +37,14 @@ * if more than one action is dispatched in the indicated interval, all new actions will be collected and sent at once.

*/
serialize?: boolean | {
date?: boolean;
regex?: boolean;
undefined?: boolean;
error?: boolean;
symbol?: boolean;
map?: boolean;
set?: boolean;
function?: boolean | Function;
};
serialize?:
| boolean
| {
date?: boolean;
regex?: boolean;
undefined?: boolean;
error?: boolean;
symbol?: boolean;
map?: boolean;
set?: boolean;
function?: boolean | Function;
};
/**

@@ -133,7 +135,7 @@ * function which takes `action` object and id number as arguments, and should return `action` object back.

*/
export?: boolean | "custom";
export?: boolean | 'custom';
/**
* import history of actions from a file
*/
import?: boolean | "custom";
import?: boolean | 'custom';
/**

@@ -171,4 +173,6 @@ * jump back and forth (time travelling)

export function composeWithDevTools<StoreExt, StateExt>(...funcs: Array<StoreEnhancer<StoreExt>>): StoreEnhancer<StoreExt>;
export function composeWithDevTools<StoreExt, StateExt>(
...funcs: Array<StoreEnhancer<StoreExt>>
): StoreEnhancer<StoreExt>;
export function composeWithDevTools(options: EnhancerOptions): typeof compose;
export function devToolsEnhancer(options: EnhancerOptions): StoreEnhancer<any>;

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

"use strict";
'use strict';

@@ -6,16 +6,18 @@ var compose = require('redux').compose;

exports.__esModule = true;
exports.composeWithDevTools = (
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ :
function() {
if (arguments.length === 0) return undefined;
if (typeof arguments[0] === 'object') return compose;
return compose.apply(null, arguments);
}
);
exports.composeWithDevTools =
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
: function () {
if (arguments.length === 0) return undefined;
if (typeof arguments[0] === 'object') return compose;
return compose.apply(null, arguments);
};
exports.devToolsEnhancer = (
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__ ?
window.__REDUX_DEVTOOLS_EXTENSION__ :
function() { return function(noop) { return noop; } }
);
exports.devToolsEnhancer =
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__
? window.__REDUX_DEVTOOLS_EXTENSION__
: function () {
return function (noop) {
return noop;
};
};

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

export * from "redux-devtools-extension";
export * from 'redux-devtools-extension';

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

"use strict";
'use strict';

@@ -13,4 +13,4 @@ var assign = require('./utils/assign');

return function(createStore) {
return function(reducer, preloadedState, enhancer) {
return function (createStore) {
return function (reducer, preloadedState, enhancer) {
var store = createStore(reducer, preloadedState, enhancer);

@@ -22,3 +22,3 @@ var origDispatch = store.dispatch;

var dispatch = function(action) {
var dispatch = function (action) {
var r = origDispatch(action);

@@ -31,4 +31,4 @@ devTools.send(action, store.getState());

return assign(store, 'dispatch', dispatch);
}
}
};
};
}

@@ -39,10 +39,11 @@

return compose(compose.apply(null, arguments), enhancer(config));
}
};
}
exports.__esModule = true;
exports.composeWithDevTools = function() {
exports.composeWithDevTools = function () {
if (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__) {
if (arguments.length === 0) return enhancer();
if (typeof arguments[0] === 'object') return composeWithEnhancer(arguments[0]);
if (typeof arguments[0] === 'object')
return composeWithEnhancer(arguments[0]);
return composeWithEnhancer().apply(null, arguments);

@@ -56,6 +57,9 @@ }

exports.devToolsEnhancer = (
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__ ?
enhancer :
function() { return function(noop) { return noop; } }
);
exports.devToolsEnhancer =
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__
? enhancer
: function () {
return function (noop) {
return noop;
};
};

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

export * from "redux-devtools-extension";
export * from 'redux-devtools-extension';

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

"use strict";
'use strict';

@@ -7,20 +7,23 @@ var compose = require('redux').compose;

exports.__esModule = true;
exports.composeWithDevTools = (
process.env.NODE_ENV === 'production' ? logOnly.composeWithDevTools :
typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ :
function() {
exports.composeWithDevTools =
process.env.NODE_ENV === 'production'
? logOnly.composeWithDevTools
: typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
: function () {
if (arguments.length === 0) return undefined;
if (typeof arguments[0] === 'object') return compose;
return compose.apply(null, arguments);
}
);
};
exports.devToolsEnhancer = (
process.env.NODE_ENV === 'production' ? logOnly.devToolsEnhancer :
typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION__ ?
window.__REDUX_DEVTOOLS_EXTENSION__ :
function() { return function(noop) { return noop; } }
);
exports.devToolsEnhancer =
process.env.NODE_ENV === 'production'
? logOnly.devToolsEnhancer
: typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__
? window.__REDUX_DEVTOOLS_EXTENSION__
: function () {
return function (noop) {
return noop;
};
};
{
"name": "redux-devtools-extension",
"version": "2.13.8",
"version": "2.13.9",
"description": "Wrappers for Redux DevTools Extension.",

@@ -15,3 +15,4 @@ "main": "index.js",

"redux": "^3.1.0 || ^4.0.0"
}
},
"gitHead": "5ef9b00cd4717ac878068ce8003e1999e680c72e"
}

@@ -7,33 +7,45 @@ # Redux DevTools Extension's helper

Install:
```
npm install --save redux-devtools-extension
```
and use like that:
```js
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
Install:
const store = createStore(reducer, composeWithDevTools(
applyMiddleware(...middleware),
```
npm install --save redux-devtools-extension
```
and use like that:
```js
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
const store = createStore(
reducer,
composeWithDevTools(
applyMiddleware(...middleware)
// other store enhancers if any
));
```
or if needed to apply [extension’s options](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#windowdevtoolsextensionconfig):
```js
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
)
);
```
const composeEnhancers = composeWithDevTools({
// Specify here name, actionsBlacklist, actionsCreators and other options
});
const store = createStore(reducer, composeEnhancers(
applyMiddleware(...middleware),
or if needed to apply [extension’s options](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#windowdevtoolsextensionconfig):
```js
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
const composeEnhancers = composeWithDevTools({
// Specify here name, actionsBlacklist, actionsCreators and other options
});
const store = createStore(
reducer,
composeEnhancers(
applyMiddleware(...middleware)
// other store enhancers if any
));
```
There’re just [few lines of code](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/npm-package/index.js). If you don’t want to allow the extension in production, just use ‘redux-devtools-extension/developmentOnly’ instead of ‘redux-devtools-extension’.
)
);
```
There’re just [few lines of code](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/npm-package/index.js). If you don’t want to allow the extension in production, just use ‘redux-devtools-extension/developmentOnly’ instead of ‘redux-devtools-extension’.
## License
MIT

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

var objectKeys = Object.keys || function (obj) {
var objectKeys =
Object.keys ||
function (obj) {
var keys = [];

@@ -3,0 +5,0 @@ for (var key in obj) {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc