Socket
Socket
Sign inDemoInstall

postcss-minify-selectors

Package Overview
Dependencies
7
Maintainers
8
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0 to 6.0.1

6

package.json
{
"name": "postcss-minify-selectors",
"version": "6.0.0",
"version": "6.0.1",
"description": "Minify selectors with PostCSS.",

@@ -38,7 +38,7 @@ "main": "src/index.js",

"devDependencies": {
"postcss": "^8.2.15"
"postcss": "^8.4.32"
},
"peerDependencies": {
"postcss": "^8.2.15"
"postcss": "^8.4.31"
}
}

@@ -166,2 +166,9 @@ 'use strict';

const isSimple = selector.parent && selector.parent.nodes.length === 1;
// Avoid simplifying complex selectors (`entry 100% {...}`)
if (!isSimple) {
return;
}
// Simplify simple selectors that have replacements (`100% {...}`)
if (tagReplacements.has(value)) {

@@ -168,0 +175,0 @@ selector.value = /** @type {string} */ (tagReplacements.get(value));

@@ -8,3 +8,3 @@ export = pluginCreator;

declare namespace pluginCreator {
const postcss: true;
let postcss: true;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc