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

postcss-minify-selectors

Package Overview
Dependencies
Maintainers
2
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.7 to 1.5.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 1.5.0
* Added support for converting pseudo elements with double colon syntax to
the single colon syntax.
# 1.4.7

@@ -2,0 +7,0 @@

6

index.js

@@ -9,5 +9,6 @@ 'use strict';

var unquote = require('./lib/unquote');
var parser = require('postcss-selector-parser');
var pseudoElements = ['::before', '::after', '::first-letter', '::first-line'];
function uniq (params, map) {

@@ -88,2 +89,5 @@ var transform = uniqs(comma(params).map(function (selector) {

});
if (~pseudoElements.indexOf(selector.value)) {
selector.value = selector.value.slice(1);
}
}

@@ -90,0 +94,0 @@ if (selector.type === 'selector' && selector.parent.type !== 'pseudo') {

2

package.json
{
"name": "postcss-minify-selectors",
"version": "1.4.7",
"version": "1.5.0",
"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