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

icss-utils

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icss-utils - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

12

lib/replaceSymbols.js

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

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