Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-onclickoutside

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-onclickoutside - npm Package Compare versions

Comparing version 5.7.0 to 5.7.1

test/no-dom-test.js

7

index.js

@@ -102,2 +102,9 @@ /**

componentDidMount: function() {
// If we are in an environment without a DOM such
// as shallow rendering or snapshots then we exit
// early to prevent any unhandled errors being thrown.
if (typeof document === 'undefined' || !document.createElement){
return;
}
var instance = this.getInstance();

@@ -104,0 +111,0 @@ var clickOutsideHandler;

7

package.json
{
"name": "react-onclickoutside",
"version": "5.7.0",
"version": "5.7.1",
"description": "An onClickOutside mixin for React components",

@@ -25,3 +25,4 @@ "main": "index.js",

"scripts": {
"test": "npm run lint && karma start test/karma.conf.js --single-run",
"test": "npm run lint && karma start test/karma.conf.js --single-run && npm run test:nodom",
"test:nodom": "mocha test/no-dom-test.js",
"lint": "eslint index.js ./test",

@@ -49,4 +50,6 @@ "precommit": "npm run lint"

"react-dom": "^15.0.0",
"react-test-renderer": "^15.0.0",
"require-hijack": "^1.2.1",
"webpack": "^1.12.14"
}
}
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