icss-utils
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -14,8 +14,8 @@ "use strict"; | ||
css.walk(node => { | ||
if (node.type === "decl") { | ||
node.value = (0, _replaceValueSymbols.default)(node.value, replacements); | ||
} else if (node.type === "rule") { | ||
node.selector = (0, _replaceValueSymbols.default)(node.selector, replacements); | ||
} else if (node.type === "atrule" && ["media", "supports"].includes(node.name.toLowerCase())) { | ||
node.params = (0, _replaceValueSymbols.default)(node.params, replacements); | ||
if (node.type === "decl" && node.value) { | ||
node.value = (0, _replaceValueSymbols.default)(node.value.toString(), replacements); | ||
} else if (node.type === "rule" && node.selector) { | ||
node.selector = (0, _replaceValueSymbols.default)(node.selector.toString(), replacements); | ||
} else if (node.type === "atrule" && node.params) { | ||
node.params = (0, _replaceValueSymbols.default)(node.params.toString(), replacements); | ||
} | ||
@@ -22,0 +22,0 @@ }); |
{ | ||
"name": "icss-utils", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "ICSS utils for postcss ast", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9469
0