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.2.0 to 1.2.1

4

CHANGELOG.md

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

# 1.2.1
* Passes original test case in issue 1.
# 1.2.0

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

18

index.js

@@ -34,11 +34,2 @@ 'use strict';

}).map(minAttributes).join(',');
// Trim any useless space inside negation pseudo classes
selector = balanced.replacements({
source: selector,
open: ':not(',
close: ')',
replace: function (body, head, tail) {
return head + uniq(body) + tail;
}
});
// Minimise from and 100% in keyframe rules

@@ -58,2 +49,11 @@ if (rule.parent.type !== 'root' && ~rule.parent.name.indexOf('keyframes')) {

rule.selector = roq(selector, function (range) {
// Trim any useless space inside negation pseudo classes
range = balanced.replacements({
source: range,
open: ':not(',
close: ')',
replace: function (body, head, tail) {
return head + uniq(body) + tail;
}
});
return range.replace(/\s*([>+~])\s*/g, '$1');

@@ -60,0 +60,0 @@ });

{
"name": "postcss-minify-selectors",
"version": "1.2.0",
"version": "1.2.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