redux-devtools
Advanced tools
Comparing version 3.6.0 to 3.6.1
@@ -36,3 +36,3 @@ "use strict"; | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
@@ -39,0 +39,0 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } |
{ | ||
"name": "redux-devtools", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"description": "Redux DevTools with hot reloading and time travel", | ||
@@ -36,14 +36,14 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-class-properties": "^7.3.0", | ||
"@babel/preset-env": "^7.3.1", | ||
"@babel/preset-react": "^7.0.0", | ||
"babel-loader": "^8.0.5", | ||
"jest": "^24.1.0", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-redux": "^6.0.0", | ||
"redux": "^4.0.0", | ||
"rimraf": "^2.3.4" | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.11.1", | ||
"@babel/plugin-proposal-class-properties": "^7.10.4", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/preset-react": "^7.10.4", | ||
"babel-loader": "^8.1.0", | ||
"jest": "^26.2.2", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react-redux": "^7.2.1", | ||
"redux": "^4.0.5", | ||
"rimraf": "^3.0.2" | ||
}, | ||
@@ -56,6 +56,7 @@ "peerDependencies": { | ||
"dependencies": { | ||
"lodash": "^4.2.0", | ||
"prop-types": "^15.5.7", | ||
"redux-devtools-instrument": "^1.9.0" | ||
} | ||
"lodash": "^4.17.19", | ||
"prop-types": "^15.7.2", | ||
"redux-devtools-instrument": "^1.9.7" | ||
}, | ||
"gitHead": "d8da887da86441c890e0820aa9f924f6ebbad8e7" | ||
} |
@@ -44,3 +44,3 @@ # Redux DevTools | ||
Read the installation [walkthrough](./docs/Walkthrough.md) for integration instructions and usage examples (`<DevTools>` component, `DevTools.instrument()`, exclude from production builds, gotchas). | ||
Read the installation [walkthrough](../../docs/Walkthrough.md) for integration instructions and usage examples (`<DevTools>` component, `DevTools.instrument()`, exclude from production builds, gotchas). | ||
@@ -47,0 +47,0 @@ ### Running Examples |
@@ -28,14 +28,14 @@ import React, { Children, Component } from 'react'; | ||
const Monitor = monitorElement.type; | ||
const ConnectedMonitor = connect(state => state)(Monitor); | ||
const ConnectedMonitor = connect((state) => state)(Monitor); | ||
return class DevTools extends Component { | ||
static contextTypes = { | ||
store: PropTypes.object | ||
store: PropTypes.object, | ||
}; | ||
static propTypes = { | ||
store: PropTypes.object | ||
store: PropTypes.object, | ||
}; | ||
static instrument = options => | ||
static instrument = (options) => | ||
instrument( | ||
@@ -87,3 +87,3 @@ (state, action) => Monitor.update(monitorProps, state, action), | ||
<ReactReduxContext.Consumer> | ||
{props => { | ||
{(props) => { | ||
if (!props || !props.store) { | ||
@@ -90,0 +90,0 @@ logError('NoStore'); |
export { | ||
default as instrument, | ||
ActionCreators, | ||
ActionTypes | ||
ActionTypes, | ||
} from 'redux-devtools-instrument'; | ||
export { default as persistState } from './persistState'; | ||
export { default as createDevTools } from './createDevTools'; |
@@ -10,3 +10,3 @@ import mapValues from 'lodash/mapValues'; | ||
if (!sessionId) { | ||
return next => (...args) => next(...args); | ||
return (next) => (...args) => next(...args); | ||
} | ||
@@ -17,15 +17,15 @@ | ||
...state, | ||
actionsById: mapValues(state.actionsById, liftedAction => ({ | ||
actionsById: mapValues(state.actionsById, (liftedAction) => ({ | ||
...liftedAction, | ||
action: deserializeAction(liftedAction.action) | ||
action: deserializeAction(liftedAction.action), | ||
})), | ||
committedState: deserializeState(state.committedState), | ||
computedStates: state.computedStates.map(computedState => ({ | ||
computedStates: state.computedStates.map((computedState) => ({ | ||
...computedState, | ||
state: deserializeState(computedState.state) | ||
})) | ||
state: deserializeState(computedState.state), | ||
})), | ||
}; | ||
} | ||
return next => (reducer, initialState, enhancer) => { | ||
return (next) => (reducer, initialState, enhancer) => { | ||
const key = `redux-dev-session-${sessionId}`; | ||
@@ -63,5 +63,5 @@ | ||
return action; | ||
} | ||
}, | ||
}; | ||
}; | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
29254
10
0
Updatedlodash@^4.17.19
Updatedprop-types@^15.7.2