Socket
Socket
Sign inDemoInstall

postcss-minify-selectors

Package Overview
Dependencies
8
Maintainers
8
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.0 to 5.1.1

8

dist/index.js

@@ -172,3 +172,3 @@ "use strict";

OnceExit(css) {
const cache = {};
const cache = new Map();
const processor = (0, _postcssSelectorParser.default)(selectors => {

@@ -210,4 +210,4 @@ selectors.nodes = (0, _alphanumSort.default)(selectors.nodes, {

if (cache[selector]) {
rule.selector = cache[selector];
if (cache.has(selector)) {
rule.selector = cache.get(selector);
return;

@@ -218,3 +218,3 @@ }

rule.selector = optimizedSelector;
cache[selector] = optimizedSelector;
cache.set(selector, optimizedSelector);
});

@@ -221,0 +221,0 @@ }

@@ -13,6 +13,6 @@ "use strict";

*/
const escapes = /\\([0-9A-Fa-f]{1,6})[ \t\n\f\r]?/g; // eslint-disable-next-line no-control-regex
const escapes = /\\([0-9A-Fa-f]{1,6})[ \t\n\f\r]?/g;
const range = // eslint-disable-next-line no-control-regex
/[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;
const range = /[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;
function canUnquote(value) {

@@ -19,0 +19,0 @@ if (value === '-' || value === '') {

{
"name": "postcss-minify-selectors",
"version": "5.1.0",
"version": "5.1.1",
"description": "Minify selectors with PostCSS.",

@@ -10,7 +10,2 @@ "main": "dist/index.js",

],
"scripts": {
"prebuild": "del-cli dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepublish": "yarn build"
},
"keywords": [

@@ -48,3 +43,7 @@ "css",

},
"gitHead": "28c247175032fa03f04911cde56ad82d74d211cc"
}
"scripts": {
"prebuild": "rimraf dist",
"build": "babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\""
},
"readme": "# [postcss][postcss]-minify-selectors\n\n> Minify selectors with PostCSS.\n\n## Install\n\nWith [npm](https://www.npmjs.com/package/postcss-minify-selectors) do:\n\n```\nnpm install postcss-minify-selectors --save\n```\n\n## Example\n\n### Input\n\n```css\nh1 + p, h2, h3, h2{color:blue}\n```\n\n### Output\n\n```css\nh1+p,h2,h3{color:blue}\n```\n\nFor more examples see the [tests](test.js).\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[postcss]: https://github.com/postcss/postcss\n"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc