@storybook/react-komposer
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -103,7 +103,2 @@ 'use strict'; | ||
}, { | ||
key: 'componentWillReceiveProps', | ||
value: function componentWillReceiveProps(props) { | ||
this._subscribe(props); | ||
} | ||
}, { | ||
key: 'shouldComponentUpdate', | ||
@@ -122,2 +117,7 @@ value: function shouldComponentUpdate(nextProps, nextState) { | ||
}, { | ||
key: 'componentDidUpdate', | ||
value: function componentDidUpdate() { | ||
this._subscribe(this.props); | ||
} | ||
}, { | ||
key: 'componentWillUnmount', | ||
@@ -132,3 +132,3 @@ value: function componentWillUnmount() { | ||
var firstRun = !this._cachedWatchingProps; | ||
var nextProps = (0, _lodash2.default)(props, propsToWatch); | ||
var nextProps = propsToWatch === null ? props : (0, _lodash2.default)(props, propsToWatch); | ||
var currentProps = this._cachedWatchingProps || {}; | ||
@@ -142,4 +142,3 @@ this._cachedWatchingProps = nextProps; | ||
if (propsToWatch === null) return true; | ||
if (propsToWatch.length === 0) return false; | ||
if (propsToWatch !== null && propsToWatch.length === 0) return false; | ||
return !(0, _shallowequal2.default)(currentProps, nextProps); | ||
@@ -146,0 +145,0 @@ } |
{ | ||
"name": "@storybook/react-komposer", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Generic way to compose data containers for React.", | ||
@@ -21,11 +21,11 @@ "repository": { | ||
"devDependencies": { | ||
"react": "^15.3.2", | ||
"react-dom": "^15.3.2", | ||
"babel-polyfill": "^6.13.0", | ||
"babel-preset-react-app": "^0.2.1", | ||
"babel-cli": "^6.14.0", | ||
"babel-core": "^6.14.0", | ||
"babel-eslint": "^6.1.2", | ||
"babel-plugin-transform-runtime": "^6.15.0", | ||
"babel-polyfill": "^6.13.0", | ||
"babel-preset-react-app": "^0.2.1", | ||
"chai": "^3.5.0", | ||
"enzyme": "^2.2.0", | ||
"eslint": "^3.6.0", | ||
"babel-eslint": "^6.1.2", | ||
"eslint-config-airbnb": "^12.0.0", | ||
@@ -35,8 +35,8 @@ "eslint-plugin-import": "^1.16.0", | ||
"eslint-plugin-react": "^6.3.0", | ||
"jsdom": "^9.5.0", | ||
"mocha": "^3.0.2", | ||
"chai": "^3.5.0", | ||
"sinon": "^1.17.6", | ||
"enzyme": "^2.2.0", | ||
"react": "^15.3.2", | ||
"react-addons-test-utils": "^15.3.2", | ||
"jsdom": "^9.5.0" | ||
"react-dom": "^15.3.2", | ||
"sinon": "^1.17.6" | ||
}, | ||
@@ -47,6 +47,6 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@storybook/react-stubber": "^1.0.0", | ||
"babel-runtime": "^6.11.6", | ||
"hoist-non-react-statics": "^1.2.0", | ||
"lodash.pick": "^4.4.0", | ||
"@storybook/react-stubber": "^1.0.0", | ||
"shallowequal": "^0.2.2" | ||
@@ -53,0 +53,0 @@ }, |
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
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
53006
21
251
1