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.0 to 5.24.1

8

es/Dom/dynamicCSS.js
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": [

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