react-resize-detector
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -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, |
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66911
902