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 5.0.4 to 5.0.5

8

lib/components/ResizeDetector.js

@@ -295,8 +295,2 @@ "use strict";

if (typeof Element === 'undefined') {
// server-side polyfill
// eslint-disable-next-line no-global-assign
Element = function Element() {};
}
ResizeDetector.propTypes = {

@@ -316,3 +310,3 @@ handleWidth: _propTypes.bool,

targetRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
current: (0, _propTypes.instanceOf)(Element)
current: _propTypes.any
})]),

@@ -319,0 +313,0 @@ onResize: _propTypes.func,

10

lib/esm/components/ResizeDetector.js

@@ -33,3 +33,3 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

import rafSchd from 'raf-schd';
import { bool, number, string, shape, func, any, node, oneOfType, instanceOf } from 'prop-types';
import { bool, number, string, shape, func, any, node, oneOfType } from 'prop-types';
import { getHandle, isFunction, isSSR, isDOMElement } from "../lib/utils";

@@ -278,8 +278,2 @@

if (typeof Element === 'undefined') {
// server-side polyfill
// eslint-disable-next-line no-global-assign
Element = function Element() {};
}
ResizeDetector.propTypes = {

@@ -299,3 +293,3 @@ handleWidth: bool,

targetRef: oneOfType([func, shape({
current: instanceOf(Element)
current: any
})]),

@@ -302,0 +296,0 @@ onResize: func,

@@ -47,3 +47,3 @@ {

"author": "Vitalii Maslianok <maslianok@gmail.com> (https://github.com/maslianok)",
"version": "5.0.4",
"version": "5.0.5",
"bugs": {

@@ -50,0 +50,0 @@ "url": "https://github.com/maslianok/react-resize-detector/issues"

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