🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

postcss-minify-params

Package Overview
Dependencies
Maintainers
8
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-minify-params - npm Package Compare versions

Comparing version

to
5.1.1

2

package.json
{
"name": "postcss-minify-params",
"version": "5.1.0",
"version": "5.1.1",
"description": "Minify at-rule params with PostCSS",

@@ -5,0 +5,0 @@ "keywords": [

@@ -72,7 +72,17 @@ 'use strict';

params.walk((node, index) => {
if (node.type === 'div' || node.type === 'function') {
if (node.type === 'div') {
node.before = node.after = '';
} else if (node.type === 'function') {
node.before = '';
if (
node.type === 'function' &&
node.nodes[0] &&
node.nodes[0].type === 'word' &&
node.nodes[0].value.startsWith('--') &&
node.nodes[2] === undefined
) {
node.after = ' ';
} else {
node.after = '';
}
if (
node.nodes[4] &&

@@ -79,0 +89,0 @@ node.nodes[0].value.toLowerCase().indexOf('-aspect-ratio') === 3