Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autoprefixer-tv

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer-tv - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

tests/expects/multiple-prefixed-properties.css

3

CHANGELOG.md

@@ -6,1 +6,4 @@ # Change Log

* Initial release
## 0.0.2
* Fix bug with multiple prefixed declarations on the same rule (#2)

5

index.js

@@ -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"

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc