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.2 to 5.24.3

17

es/Dom/dynamicCSS.js

@@ -101,7 +101,10 @@ import canUseDom from './canUseDom';

}
export function updateCSS(css, key) {
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var container = getContainer(option); // Get real parent
/**
* qiankun will inject `appendChild` to insert into other
*/
if (!containerCache.has(container)) {
function syncRealContainer(container, option) {
var cachedRealContainer = containerCache.get(container); // Find real container when not cached or cached container removed
if (!cachedRealContainer || !document.contains(cachedRealContainer)) {
var placeholderStyle = injectCSS('', option);

@@ -112,3 +115,9 @@ var parentNode = placeholderStyle.parentNode;

}
}
export function updateCSS(css, key) {
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var container = getContainer(option); // Sync real parent
syncRealContainer(container, option);
var existNode = findExistNode(key, option);

@@ -115,0 +124,0 @@

@@ -113,8 +113,11 @@ "use strict";

}
/**
* qiankun will inject `appendChild` to insert into other
*/
function updateCSS(css, key) {
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var container = getContainer(option); // Get real parent
if (!containerCache.has(container)) {
function syncRealContainer(container, option) {
var cachedRealContainer = containerCache.get(container); // Find real container when not cached or cached container removed
if (!cachedRealContainer || !document.contains(cachedRealContainer)) {
var placeholderStyle = injectCSS('', option);

@@ -125,3 +128,9 @@ var parentNode = placeholderStyle.parentNode;

}
}
function updateCSS(css, key) {
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var container = getContainer(option); // Sync real parent
syncRealContainer(container, option);
var existNode = findExistNode(key, option);

@@ -128,0 +137,0 @@

{
"name": "rc-util",
"version": "5.24.2",
"version": "5.24.3",
"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