fela-utils
Advanced tools
Comparing version 11.5.0-rc.0 to 11.5.0
export default function generateCSSSelector(className) { | ||
var pseudo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
var specificityPrefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; | ||
var propertyPriority = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; | ||
return specificityPrefix + '.' + className + pseudo; | ||
var classNameSelector = ('.' + className).repeat(propertyPriority); | ||
return '' + specificityPrefix + classNameSelector + pseudo; | ||
} |
@@ -10,4 +10,7 @@ 'use strict'; | ||
var specificityPrefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; | ||
var propertyPriority = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; | ||
return specificityPrefix + '.' + className + pseudo; | ||
var classNameSelector = ('.' + className).repeat(propertyPriority); | ||
return '' + specificityPrefix + classNameSelector + pseudo; | ||
} |
{ | ||
"name": "fela-utils", | ||
"version": "11.5.0-rc.0", | ||
"version": "11.5.0", | ||
"description": "Internal utilities for Fela", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "6d457d39e69e1471bddaea8591c50745f95070d9" | ||
"gitHead": "dc183b4df113206c2d7b6f28901e63fef16c7b8c" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
27138
552
1