Socket
Socket
Sign inDemoInstall

react-outer-click

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-outer-click - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

5

lib/index.cjs.js

@@ -94,7 +94,8 @@ 'use strict';

OuterClick.defaultProps = {
as: 'div'
as: 'div',
children: null
};
OuterClick.propTypes = {
as: PropTypes.elementType,
children: PropTypes.element.isRequired,
children: PropTypes.node,
onOuterClick: PropTypes.func.isRequired

@@ -101,0 +102,0 @@ };

@@ -87,7 +87,8 @@ import PropTypes from 'prop-types';

OuterClick.defaultProps = {
as: 'div'
as: 'div',
children: null
};
OuterClick.propTypes = {
as: PropTypes.elementType,
children: PropTypes.element.isRequired,
children: PropTypes.node,
onOuterClick: PropTypes.func.isRequired

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

2

package.json
{
"name": "react-outer-click",
"version": "3.0.1",
"version": "3.1.0",
"description": "React component and hook which detect mouse clicks outside of itself.",

@@ -5,0 +5,0 @@ "main": "lib/index.cjs.js",

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