Socket
Socket
Sign inDemoInstall

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.3.0 to 1.3.1

4

CHANGELOG.md

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

# 1.3.1
* Fixes a crash when nothing was passed to `node-balanced`.
# 1.3.0

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

23

index.js

@@ -49,12 +49,15 @@ 'use strict';

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');
// Trim any useless space inside negation pseudo classes
if (range) {
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');
}
return range;
});

@@ -61,0 +64,0 @@ }

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