react-resize-detector
Advanced tools
Comparing version 0.3.3 to 0.4.1
@@ -17,2 +17,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _resizeDetectorStyles = require('../helpers/resizeDetectorStyles'); | ||
@@ -60,9 +64,7 @@ | ||
value: function componentDidMount() { | ||
var _containerSize = this.containerSize(); | ||
var _containerSize = this.containerSize(), | ||
_containerSize2 = _slicedToArray(_containerSize, 2), | ||
width = _containerSize2[0], | ||
height = _containerSize2[1]; | ||
var _containerSize2 = _slicedToArray(_containerSize, 2); | ||
var width = _containerSize2[0]; | ||
var height = _containerSize2[1]; | ||
this.reset(width, height); | ||
@@ -124,9 +126,7 @@ } | ||
var _containerSize3 = this.containerSize(); | ||
var _containerSize3 = this.containerSize(), | ||
_containerSize4 = _slicedToArray(_containerSize3, 2), | ||
width = _containerSize4[0], | ||
height = _containerSize4[1]; | ||
var _containerSize4 = _slicedToArray(_containerSize3, 2); | ||
var width = _containerSize4[0]; | ||
var height = _containerSize4[1]; | ||
if (width !== state.lastWidth || height !== state.lastHeight) { | ||
@@ -181,5 +181,5 @@ this.props.onResize(width, height); | ||
ResizeDetector.propTypes = { | ||
handleWidth: _react.PropTypes.bool, | ||
handleHeight: _react.PropTypes.bool, | ||
onResize: _react.PropTypes.func | ||
handleWidth: _propTypes2.default.bool, | ||
handleHeight: _propTypes2.default.bool, | ||
onResize: _propTypes2.default.func | ||
}; | ||
@@ -186,0 +186,0 @@ |
{ | ||
"author": "Vitalii Maslianok <maslianok@gmail.com> (https://github.com/maslianok)", | ||
"version": "0.3.3", | ||
"version": "0.4.1", | ||
"bugs": { | ||
@@ -12,14 +12,14 @@ "url": "https://github.com/maslianok/react-resize-detector/issues" | ||
"devDependencies": { | ||
"babel-cli": "^6.5.1", | ||
"babel-eslint": "^6.0.2", | ||
"babel-cli": "^6.24.1", | ||
"babel-eslint": "^7.2.3", | ||
"babel-plugin-transform-object-assign": "^6.5.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-react": "^6.3.13", | ||
"eslint": "^3.5.0", | ||
"eslint-config-airbnb": "^11.1.0", | ||
"eslint-plugin-import": "^1.0.3", | ||
"eslint-plugin-jsx-a11y": "^2.2.2", | ||
"eslint-plugin-react": "^6.2.1", | ||
"react": "^15.0.1", | ||
"rimraf": "^2.3.4" | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-react": "^6.24.1", | ||
"eslint": "^3.19.0", | ||
"eslint-config-airbnb": "^14.1.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^4.0.0", | ||
"eslint-plugin-react": "^6.10.3", | ||
"react": "^15.5.0", | ||
"rimraf": "^2.6.1" | ||
}, | ||
@@ -53,3 +53,5 @@ "directories": { | ||
}, | ||
"dependencies": {} | ||
"dependencies": { | ||
"prop-types": "^15.5.8" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
98929
2
10
189
+ Addedprop-types@^15.5.8