autoprefixer-tv
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -6,1 +6,4 @@ # Change Log | ||
* Initial release | ||
## 0.0.2 | ||
* Fix bug with multiple prefixed declarations on the same rule (#2) |
@@ -33,2 +33,3 @@ const postcss = require('postcss'); | ||
css.walkRules((rule) => { | ||
const removeDeclarations = []; | ||
let duplicatedProps = extractDuplicatedProps(rule); | ||
@@ -47,8 +48,10 @@ duplicatedProps = filterOnlyPrefixedProps(rule, duplicatedProps); | ||
rule.removeChild(decl); | ||
removeDeclarations.push(decl); | ||
rule.parent.insertBefore(rule, newRule); | ||
} | ||
}); | ||
removeDeclarations.forEach(r => rule.removeChild(r)); | ||
}); | ||
} | ||
); |
{ | ||
"name": "autoprefixer-tv", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "PostCSS plugin PostCSS plugin to split prefixed properties values into multiple rules.", | ||
@@ -15,7 +15,7 @@ "keywords": [ | ||
"license": "MIT", | ||
"repository": "celiolatorraca/postcss-autoprefixer-tv", | ||
"repository": "celiolatorraca/autoprefixer-tv", | ||
"bugs": { | ||
"url": "https://github.com/celiolatorraca/postcss-autoprefixer-tv/issues" | ||
"url": "https://github.com/celiolatorraca/autoprefixer-tv/issues" | ||
}, | ||
"homepage": "https://github.com/celiolatorraca/postcss-autoprefixer-tv", | ||
"homepage": "https://github.com/celiolatorraca/autoprefixer-tv", | ||
"dependencies": { | ||
@@ -22,0 +22,0 @@ "postcss": "^6.0.1" |
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 repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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 bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
101420
15
111
1
1