Socket
Socket
Sign inDemoInstall

postcss-attribute-case-insensitive

Package Overview
Dependencies
13
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

4

dist/index.js

@@ -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);
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc