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

@ant-design/cssinjs

Package Overview
Dependencies
Maintainers
10
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/cssinjs - npm Package Compare versions

Comparing version 0.0.0-alpha.36 to 0.0.0-alpha.37

9

es/StyleContext.js

@@ -13,2 +13,5 @@ import * as React from 'react';

Array.from(styles).forEach(function (style) {
var _style$CSS_IN_JS_INST;
(_style$CSS_IN_JS_INST = style[CSS_IN_JS_INSTANCE]) !== null && _style$CSS_IN_JS_INST !== void 0 ? _style$CSS_IN_JS_INST : style[CSS_IN_JS_INSTANCE] = CSS_IN_JS_INSTANCE_ID;
document.head.appendChild(style);

@@ -22,5 +25,7 @@ }); // Deduplicate of moved styles

if (styleHash[hash]) {
var _style$parentNode;
if (style[CSS_IN_JS_INSTANCE] === CSS_IN_JS_INSTANCE_ID) {
var _style$parentNode;
(_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);
(_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);
}
} else {

@@ -27,0 +32,0 @@ styleHash[hash] = true;

@@ -38,2 +38,5 @@ "use strict";

Array.from(styles).forEach(function (style) {
var _style$CSS_IN_JS_INST;
(_style$CSS_IN_JS_INST = style[CSS_IN_JS_INSTANCE]) !== null && _style$CSS_IN_JS_INST !== void 0 ? _style$CSS_IN_JS_INST : style[CSS_IN_JS_INSTANCE] = CSS_IN_JS_INSTANCE_ID;
document.head.appendChild(style);

@@ -47,5 +50,7 @@ }); // Deduplicate of moved styles

if (styleHash[hash]) {
var _style$parentNode;
if (style[CSS_IN_JS_INSTANCE] === CSS_IN_JS_INSTANCE_ID) {
var _style$parentNode;
(_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);
(_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);
}
} else {

@@ -52,0 +57,0 @@ styleHash[hash] = true;

{
"name": "@ant-design/cssinjs",
"version": "0.0.0-alpha.36",
"version": "0.0.0-alpha.37",
"description": "Component level cssinjs resolution for antd",

@@ -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