Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-minify-selectors

Package Overview
Dependencies
Maintainers
2
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 2.0.0 to 2.0.1

4

CHANGELOG.md

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

# 2.0.1
* Replaced javascript-natural-sort with alphanum-sort (thanks to @TrySound).
# 2.0.0

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

6

index.js
'use strict';
var postcss = require('postcss');
var natural = require('javascript-natural-sort');
var sort = require('alphanum-sort');
var unquote = require('./lib/unquote');

@@ -34,5 +34,3 @@ var parser = require('postcss-selector-parser');

rule.selector = getParsed(selector, function (selectors) {
selectors.nodes.sort(function (a, b) {
return natural(String(a), String(b));
});
selectors.nodes = sort(selectors.nodes, {insensitive: true});
var uniqueSelectors = [];

@@ -39,0 +37,0 @@ selectors.eachInside(function (selector) {

{
"name": "postcss-minify-selectors",
"version": "2.0.0",
"version": "2.0.1",
"description": "Minify selectors with PostCSS.",
"main": "index.js",
"files": [
"index.js",
"lib",
"LICENSE-MIT"
],
"scripts": {

@@ -37,3 +42,3 @@ "lint": "jshint index.js lib/*.js --reporter node_modules/jshint-stylish/stylish.js",

"dependencies": {
"javascript-natural-sort": "^0.7.1",
"alphanum-sort": "^1.0.1",
"postcss": "^5.0.4",

@@ -40,0 +45,0 @@ "postcss-selector-parser": "^1.1.4"

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