Socket
Socket
Sign inDemoInstall

react-rnd

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-rnd - npm Package Compare versions

Comparing version 5.0.5 to 5.0.6

lib/rnd.test.js

8

lib/index.js

@@ -152,3 +152,5 @@ 'use strict';

var _max = target.offsetWidth + (targetLeft - selfLeft);
this.setState({ maxWidth: _max > this.props.maxWidth ? this.props.maxWidth : _max });
this.setState({
maxWidth: _max > (this.props.maxWidth || Infinity) ? this.props.maxWidth : _max
});
}

@@ -161,3 +163,5 @@ if (/top/i.test(dir)) {

var _max3 = target.offsetHeight + (targetTop - selfTop);
this.setState({ maxHeight: _max3 > this.props.maxHeight ? this.props.maxHeight : _max3 });
this.setState({
maxHeight: _max3 > (this.props.maxHeight || Infinity) ? this.props.maxHeight : _max3
});
}

@@ -164,0 +168,0 @@ }

{
"name": "react-rnd",
"license": "MIT",
"version": "5.0.5",
"version": "5.0.6",
"main": "lib/index.js",

@@ -13,3 +13,3 @@ "scripts": {

"lint": "eslint src",
"test": "NODE_ENV=test karma start",
"test": "npm run flow && NODE_ENV=test karma start",
"test:watch": "NODE_ENV=test karma start --single-run false",

@@ -50,3 +50,3 @@ "guide:server": "styleguidist server",

"eslint-plugin-react": "^7.0.0",
"flow-bin": "^0.46.0",
"flow-bin": "^0.47.0",
"flow-copy-source": "^1.1.0",

@@ -69,3 +69,3 @@ "flow-runtime": "^0.12.0",

"sinon": "^2.1.0",
"webpack": "2.6.0",
"webpack": "2.6.1",
"webpack-async-await": "^1.1.0",

@@ -72,0 +72,0 @@ "webpack-dev-server": "^2.4.2"

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