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

autoprefixer

Package Overview
Dependencies
Maintainers
3
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer - npm Package Compare versions

Comparing version 6.7.1 to 6.7.2

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## 6.7.2
* Do not prefix grid/flexbox in `@supports` on `grid: false`/`flexbox: false`.
## 6.7.1

@@ -2,0 +5,0 @@ * Update Browserslist with `last n version` fix.

@@ -71,6 +71,8 @@ (function() {

Supports.prototype.prefixed = function(str) {
var decl, j, k, len, len1, prefixer, prop, ref1, ref2, rule, value;
var decl, j, k, len, len1, prefixer, ref1, ref2, rule, value;
rule = this.virtual(str);
prop = rule.first.prop;
prefixer = this.prefixer().add[prop];
if (this.disabled(rule.first)) {
return rule.nodes;
}
prefixer = this.prefixer().add[rule.first.prop];
if (prefixer != null) {

@@ -84,3 +86,3 @@ if (typeof prefixer.process === "function") {

decl = ref1[j];
ref2 = this.prefixer().values('add', prop);
ref2 = this.prefixer().values('add', rule.first.prop);
for (k = 0, len1 = ref2.length; k < len1; k++) {

@@ -227,2 +229,24 @@ value = ref2[k];

Supports.prototype.disabled = function(node) {
var other;
if (this.all.options.grid === false) {
if (node.prop === 'display' && node.value.indexOf('grid') !== -1) {
return true;
}
if (node.prop.indexOf('grid') !== -1 || node.prop === 'justify-items') {
return true;
}
}
if (this.all.options.flexbox === false) {
if (node.prop === 'display' && node.value.indexOf('flex') !== -1) {
return true;
}
other = ['order', 'justify-content', 'align-items', 'align-content'];
if (node.prop.indexOf('flex') !== -1 || other.indexOf(node.prop) !== -1) {
return true;
}
}
return false;
};
return Supports;

@@ -229,0 +253,0 @@

4

package.json
{
"name": "autoprefixer",
"version": "6.7.1",
"version": "6.7.2",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",

@@ -17,3 +17,3 @@ "keywords": [

"browserslist": "^1.7.1",
"caniuse-db": "^1.0.30000617",
"caniuse-db": "^1.0.30000618",
"normalize-range": "^0.1.2",

@@ -20,0 +20,0 @@ "num2fraction": "^1.2.2",

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