Comparing version 5.24.0 to 5.24.1
import canUseDom from './canUseDom'; | ||
var APPEND_ORDER = '_rc_util_order'; | ||
var APPEND_ORDER = 'data-rc-order'; | ||
var MARK_KEY = "rc-util-key"; | ||
@@ -40,3 +40,3 @@ var containerCache = new Map(); | ||
return Array.from((containerCache.get(container) || container).children).filter(function (node) { | ||
return node.tagName === 'STYLE' && node[APPEND_ORDER]; | ||
return node.tagName === 'STYLE' && node.hasAttribute(APPEND_ORDER); | ||
}); | ||
@@ -55,3 +55,3 @@ } | ||
var styleNode = document.createElement('style'); | ||
styleNode[APPEND_ORDER] = getOrder(prepend); | ||
styleNode.setAttribute(APPEND_ORDER, getOrder(prepend)); | ||
@@ -70,3 +70,3 @@ if (csp === null || csp === void 0 ? void 0 : csp.nonce) { | ||
var existStyle = findStyles(container).filter(function (node) { | ||
return ['prepend', 'prependQueue'].includes(node[APPEND_ORDER]); | ||
return ['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER)); | ||
}); | ||
@@ -73,0 +73,0 @@ |
@@ -14,3 +14,3 @@ "use strict"; | ||
var APPEND_ORDER = '_rc_util_order'; | ||
var APPEND_ORDER = 'data-rc-order'; | ||
var MARK_KEY = "rc-util-key"; | ||
@@ -53,3 +53,3 @@ var containerCache = new Map(); | ||
return Array.from((containerCache.get(container) || container).children).filter(function (node) { | ||
return node.tagName === 'STYLE' && node[APPEND_ORDER]; | ||
return node.tagName === 'STYLE' && node.hasAttribute(APPEND_ORDER); | ||
}); | ||
@@ -68,3 +68,3 @@ } | ||
var styleNode = document.createElement('style'); | ||
styleNode[APPEND_ORDER] = getOrder(prepend); | ||
styleNode.setAttribute(APPEND_ORDER, getOrder(prepend)); | ||
@@ -83,3 +83,3 @@ if (csp === null || csp === void 0 ? void 0 : csp.nonce) { | ||
var existStyle = findStyles(container).filter(function (node) { | ||
return ['prepend', 'prependQueue'].includes(node[APPEND_ORDER]); | ||
return ['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER)); | ||
}); | ||
@@ -86,0 +86,0 @@ |
{ | ||
"name": "rc-util", | ||
"version": "5.24.0", | ||
"version": "5.24.1", | ||
"description": "Common Utils For React Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
204325