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.9.7 to 6.9.8

7

lib/index.es5.js

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

var React = require('react');
var reactDom = require('react-dom');
var memoize = _interopDefault(require('fast-memoize'));

@@ -684,2 +685,3 @@

Resizable.prototype.onMouseMove = function (event) {
var _this = this;
if (!this.state.isResizing || !this.resizable || !this.window) {

@@ -770,3 +772,6 @@ return;

}
this.setState(newState);
// For v18, update state sync
reactDom.flushSync(function () {
_this.setState(newState);
});
if (this.props.onResize) {

@@ -773,0 +778,0 @@ this.props.onResize(event, direction, this.resizable, delta);

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

import * as React from 'react';
import { flushSync } from 'react-dom';
import { Resizer } from './resizer';

@@ -582,2 +583,3 @@ import memoize from 'fast-memoize';

Resizable.prototype.onMouseMove = function (event) {
var _this = this;
if (!this.state.isResizing || !this.resizable || !this.window) {

@@ -668,3 +670,6 @@ return;

}
this.setState(newState);
// For v18, update state sync
flushSync(function () {
_this.setState(newState);
});
if (this.props.onResize) {

@@ -671,0 +676,0 @@ this.props.onResize(event, direction, this.resizable, delta);

4

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

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

"@types/react": "16.8.7",
"@types/react-dom": "16.9.9",
"@types/react-dom": "17.0.9",
"@types/sinon": "9.0.10",

@@ -59,0 +59,0 @@ "avaron": "0.2.0",

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