Socket
Socket
Sign inDemoInstall

analyze-css

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analyze-css - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

7

package.json
{
"name": "analyze-css",
"version": "0.9.2",
"version": "0.9.3",
"author": "Maciej Brencz <maciej.brencz@gmail.com> (https://github.com/macbre)",

@@ -27,3 +27,2 @@ "description": "CSS selectors complexity and performance analyzer",

"fast-stats": "0.0.x",
"glob": "~4.0.5",
"node-sass": "1.1.2",

@@ -38,7 +37,7 @@ "onecolor": "2.4.x",

"browserslist": "~0.1.1",
"glob": "~4.0.5",
"glob": "~4.3.5",
"istanbul": "~0.3.0",
"js-beautify": "~1.5.4",
"jshint": "~2.5.2",
"mocha": "~2.0.1"
"mocha": "~2.1.0"
},

@@ -45,0 +44,0 @@ "bin": "./bin/analyze-css.js",

@@ -37,4 +37,4 @@ 'use strict';

}
// matches "body .foo", but not "body > .bar' nor "body.foo .bar"
else if ((bodyIndex === 0) && isDescendantCombinator && isShortExpression) {
// matches "body > .bar" (issue #82)
else if ((bodyIndex === 0) && isDescendantCombinator) {
isRedundant = false;

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

@@ -27,2 +27,8 @@ exports.tests = [

{
css: 'body > h1 .foo {}',
metrics: {
redundantBodySelectors: 0
}
},
{
css: 'html > body #foo .bar {}',

@@ -29,0 +35,0 @@ metrics: {

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