@ant-design/cssinjs
Advanced tools
Comparing version 0.0.0-alpha.36 to 0.0.0-alpha.37
@@ -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": [ |
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
80716
1609