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.5 to 5.0.6

4

lib/esm/hoc/withResizeDetector.js

@@ -32,3 +32,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 React, { createRef, forwardRef } from 'react';
import { shape, func, oneOfType, instanceOf } from 'prop-types';
import { shape, func, oneOfType, any } from 'prop-types';
import ResizeDetector from "../components/ResizeDetector";

@@ -92,3 +92,3 @@

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

@@ -95,0 +95,0 @@ };

@@ -106,3 +106,3 @@ "use strict";

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

@@ -109,0 +109,0 @@ };

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

"author": "Vitalii Maslianok <maslianok@gmail.com> (https://github.com/maslianok)",
"version": "5.0.5",
"version": "5.0.6",
"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