react-onclickoutside
Advanced tools
Comparing version 4.2.0 to 4.3.0
10
index.js
@@ -18,3 +18,5 @@ /** | ||
// AMD. Register as an anonymous module. | ||
define(['react-dom'], factory); | ||
define(['react-dom'], function(reactDom) { | ||
return factory(root, reactDom); | ||
}); | ||
} else if (typeof exports === 'object') { | ||
@@ -24,8 +26,8 @@ // Node. Note that this does not work with strict | ||
// that support module.exports | ||
module.exports = factory(require('react-dom')); | ||
module.exports = factory(require(root, 'react-dom')); | ||
} else { | ||
// Browser globals (root is window) | ||
root.OnClickOutside = factory(ReactDOM); | ||
root.OnClickOutside = factory(root, ReactDOM); | ||
} | ||
}(this, function (ReactDOM) { | ||
}(this, function (root, ReactDOM) { | ||
"use strict"; | ||
@@ -32,0 +34,0 @@ |
{ | ||
"name": "react-onclickoutside", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
13099
233
1