Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

react-resize-detector

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-resize-detector - npm Package Compare versions

Comparing version 0.3.3 to 0.4.1

yarn.lock

30

lib/components/ResizeDetector.js

@@ -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

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