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

postcss-minify-selectors

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-minify-selectors - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.4.1
* Fixes incorrect deduplication of pseudo selector rules.
# 1.4.0

@@ -2,0 +6,0 @@

6

index.js

@@ -76,3 +76,3 @@ 'use strict';

}
if (selector.type === 'selector' && selector.type !== 'pseudo') {
if (selector.type === 'selector' && selector.parent.type !== 'pseudo') {
if (!~uniques.indexOf(String(selector))) {

@@ -85,6 +85,6 @@ uniques.push(String(selector));

});
uniques = [];
selectors.eachPseudo(function (pseudo) {
uniques = [];
pseudo.eachInside(function (selector) {
if (selector.type === 'selector' && selector.type !== 'pseudo') {
if (selector.type === 'selector') {
if (!~uniques.indexOf(String(selector))) {

@@ -91,0 +91,0 @@ uniques.push(String(selector));

{
"name": "postcss-minify-selectors",
"version": "1.4.0",
"version": "1.4.1",
"description": "Minify selectors with PostCSS.",

@@ -5,0 +5,0 @@ "main": "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