analyze-css
Advanced tools
Comparing version 0.9.2 to 0.9.3
{ | ||
"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: { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165422
9
3881
- Removedglob@~4.0.5
- Removedglob@4.0.6(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removedminimatch@1.0.0(transitive)
- Removednatives@1.1.6(transitive)
- Removedonce@1.4.0(transitive)
- Removedwrappy@1.0.2(transitive)