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

postcss-minify-selectors

Package Overview
Dependencies
Maintainers
8
Versions
68
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

to
7.0.2

4

package.json
{
"name": "postcss-minify-selectors",
"version": "7.0.1",
"version": "7.0.2",
"description": "Minify selectors with PostCSS.",

@@ -29,2 +29,3 @@ "main": "src/index.js",

"dependencies": {
"cssesc": "^3.0.0",
"postcss-selector-parser": "^6.1.0"

@@ -39,2 +40,3 @@ },

"devDependencies": {
"@types/cssesc": "^3.0.2",
"postcss": "^8.4.38"

@@ -41,0 +43,0 @@ },

'use strict';
const cssesc = require('cssesc');
/**

@@ -23,3 +25,7 @@ * Can unquote attribute detection from mothereff.in

return !(range.test(value) || /^(?:-?\d|--)/.test(value));
return (
!(range.test(value) || /^(?:-?\d|--)/.test(value)) &&
// Do not remove the quotes if escaping is required.
cssesc(value) === value
);
};

Sorry, the diff of this file is not supported yet