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

re-resizable

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

re-resizable - npm Package Compare versions

Comparing version 6.5.1 to 6.5.2

7

CHANGELOG.md

@@ -25,2 +25,9 @@ # Changelog

## [6.5.1 (2020-06-25)](https://github.com/bokuweb/re-resizable/compare/v6.5.0...v6.5.1)
### :bug: Bug Fix
- Make `as` optional
## [6.5.0 (2020-06-17)](https://github.com/bokuweb/re-resizable/compare/v6.4.0...v6.5.0)

@@ -27,0 +34,0 @@

16

lib/index.es5.js

@@ -425,3 +425,6 @@ 'use strict';

this.window.addEventListener('mouseleave', this.onMouseUp);
this.window.addEventListener('touchmove', this.onMouseMove);
this.window.addEventListener('touchmove', this.onMouseMove, {
capture: true,
passive: false,
});
this.window.addEventListener('touchend', this.onMouseUp);

@@ -435,3 +438,3 @@ }

this.window.removeEventListener('mouseleave', this.onMouseUp);
this.window.removeEventListener('touchmove', this.onMouseMove);
this.window.removeEventListener('touchmove', this.onMouseMove, true);
this.window.removeEventListener('touchend', this.onMouseUp);

@@ -674,2 +677,11 @@ }

}
if (event instanceof TouchEvent) {
try {
event.preventDefault();
event.stopPropagation();
}
catch (e) {
// Ignore on fail
}
}
var _a = this.props, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight, minWidth = _a.minWidth, minHeight = _a.minHeight;

@@ -676,0 +688,0 @@ var clientX = event instanceof this.window.MouseEvent ? event.clientX : event.touches[0].clientX;

@@ -323,3 +323,6 @@ var __extends = (this && this.__extends) || (function () {

this.window.addEventListener('mouseleave', this.onMouseUp);
this.window.addEventListener('touchmove', this.onMouseMove);
this.window.addEventListener('touchmove', this.onMouseMove, {
capture: true,
passive: false,
});
this.window.addEventListener('touchend', this.onMouseUp);

@@ -333,3 +336,3 @@ }

this.window.removeEventListener('mouseleave', this.onMouseUp);
this.window.removeEventListener('touchmove', this.onMouseMove);
this.window.removeEventListener('touchmove', this.onMouseMove, true);
this.window.removeEventListener('touchend', this.onMouseUp);

@@ -572,2 +575,11 @@ }

}
if (event instanceof TouchEvent) {
try {
event.preventDefault();
event.stopPropagation();
}
catch (e) {
// Ignore on fail
}
}
var _a = this.props, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight, minWidth = _a.minWidth, minHeight = _a.minHeight;

@@ -574,0 +586,0 @@ var clientX = event instanceof this.window.MouseEvent ? event.clientX : event.touches[0].clientX;

4

package.json
{
"name": "re-resizable",
"version": "6.5.1",
"version": "6.5.2",
"description": "Resizable component for React.",

@@ -91,3 +91,3 @@ "title": "re-resizable",

"tslint-plugin-prettier": "2.3.0",
"typescript": "3.9.5"
"typescript": "3.9.6"
},

@@ -94,0 +94,0 @@ "typings": "./lib/index.d.ts",

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