postcss-attribute-case-insensitive
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -107,5 +107,7 @@ 'use strict'; | ||
var caseInsensitiveRegExp = /i(\s*\/\*[\W\w]*?\*\/)*\s*\]/; | ||
exports.default = _postcss2.default.plugin('postcss-attribute-case-insensitive', function () { | ||
return function (css) { | ||
css.walkRules(function (rule) { | ||
css.walkRules(caseInsensitiveRegExp, function (rule) { | ||
rule.selector = (0, _postcssSelectorParser2.default)(transform).processSync(rule.selector); | ||
@@ -112,0 +114,0 @@ }); |
{ | ||
"name": "postcss-attribute-case-insensitive", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "PostCSS plugin to support case insensitive attributes", | ||
@@ -30,17 +30,17 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"babel-cli": "^6.11.4", | ||
"babel-eslint": "^8.2.3", | ||
"babel-cli": "^6.26.0", | ||
"babel-eslint": "^8.2.5", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-preset-env": "^1.4.0", | ||
"babel-register": "^6.11.6", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.1.2", | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-plugin-import": "^2.11.0", | ||
"mocha": "^5.1.1" | ||
"eslint": "^5.0.1", | ||
"eslint-config-airbnb-base": "^13.0.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"mocha": "^5.2.0" | ||
}, | ||
"dependencies": { | ||
"postcss": "^6.0.22", | ||
"postcss": "^6.0.23", | ||
"postcss-selector-parser": "^4.0.0" | ||
} | ||
} |
@@ -88,6 +88,8 @@ import postcss from 'postcss'; | ||
const caseInsensitiveRegExp = /i(\s*\/\*[\W\w]*?\*\/)*\s*\]/; | ||
export default postcss.plugin('postcss-attribute-case-insensitive', () => css => { | ||
css.walkRules(rule => { | ||
css.walkRules(caseInsensitiveRegExp, rule => { | ||
rule.selector = parser(transform).processSync(rule.selector); | ||
}); | ||
}); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10478
213
0
Updatedpostcss@^6.0.23