Socket
Socket
Sign inDemoInstall

react-resizable-box

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-resizable-box - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

8

lib/index.js

@@ -37,2 +37,3 @@ 'use strict';

};
var directions = ['top', 'right', 'bottom', 'left', 'topRight', 'bottomRight', 'bottomLeft', 'topLeft'];

@@ -56,2 +57,6 @@ var Resizable = function (_Component) {

_this.onResizeStartWithDirection = {};
directions.forEach(function (d) {
_this.onResizeStartWithDirection[d] = _this.onResizeStart.bind(_this, d);
});
_this.onTouchMove = _this.onTouchMove.bind(_this);

@@ -251,3 +256,2 @@ _this.onMouseMove = _this.onMouseMove.bind(_this);

return Object.keys(isResizable).map(function (dir) {
var onResizeStart = _this3.onResizeStart.bind(_this3, dir);
if (isResizable[dir] !== false) {

@@ -257,3 +261,3 @@ return _react2.default.createElement(_resizer2.default, {

type: dir,
onResizeStart: onResizeStart,
onResizeStart: _this3.onResizeStartWithDirection[dir],
replaceStyles: handleStyle[dir],

@@ -260,0 +264,0 @@ className: handleClass[dir]

{
"name": "react-resizable-box",
"version": "1.4.2",
"version": "1.4.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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