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

rc-util

Package Overview
Dependencies
Maintainers
8
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-util - npm Package Compare versions

Comparing version 5.24.3 to 5.24.4

18

es/Dom/contains.js
export default function contains(root, n) {
if (!root) {
return false;
} // Use native if support
if (root.contains) {
return root.contains(n);
} // `document.contains` not support with IE11
var node = n;
while (node) {
if (node === root) {
return true;
}
node = node.parentNode;
}
return root.contains(n);
return false;
}

3

es/Dom/dynamicCSS.js
import canUseDom from './canUseDom';
import contains from './contains';
var APPEND_ORDER = 'data-rc-order';

@@ -108,3 +109,3 @@ var MARK_KEY = "rc-util-key";

if (!cachedRealContainer || !document.contains(cachedRealContainer)) {
if (!cachedRealContainer || !contains(document, cachedRealContainer)) {
var placeholderStyle = injectCSS('', option);

@@ -111,0 +112,0 @@ var parentNode = placeholderStyle.parentNode;

@@ -11,5 +11,21 @@ "use strict";

return false;
} // Use native if support
if (root.contains) {
return root.contains(n);
} // `document.contains` not support with IE11
var node = n;
while (node) {
if (node === root) {
return true;
}
node = node.parentNode;
}
return root.contains(n);
return false;
}

@@ -14,2 +14,4 @@ "use strict";

var _contains = _interopRequireDefault(require("./contains"));
var APPEND_ORDER = 'data-rc-order';

@@ -122,3 +124,3 @@ var MARK_KEY = "rc-util-key";

if (!cachedRealContainer || !document.contains(cachedRealContainer)) {
if (!cachedRealContainer || !(0, _contains.default)(document, cachedRealContainer)) {
var placeholderStyle = injectCSS('', option);

@@ -125,0 +127,0 @@ var parentNode = placeholderStyle.parentNode;

{
"name": "rc-util",
"version": "5.24.3",
"version": "5.24.4",
"description": "Common Utils For React Component",

@@ -5,0 +5,0 @@ "keywords": [

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