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

postcss-flexbugs-fixes

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-flexbugs-fixes - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

25

bugs/bug4.js

@@ -20,7 +20,26 @@ var postcss = require('postcss');

var values = postcss.list.space(decl.value);
var flexGrow = values[0];
var flexShrink = values[1] || '1';
var flexBasis = values[2] || '0%';
// set default values
var flexGrow = '0';
var flexShrink = '1';
var flexBasis = '0%';
if (values[0]) {
flexGrow = values[0];
}
if (values[1]) {
if (!isNaN(values[1])) {
flexShrink = values[1];
} else {
flexBasis = values[1];
}
}
if (values[2]) {
flexBasis = values[2];
}
decl.value = flexGrow + ' ' + flexShrink + ' ' + properBasis(flexBasis);
}
};

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

## 3.2.0
* Set flex basis if second value is not a number [#41](https://github.com/luisrudge/postcss-flexbugs-fixes/pull/41)
## 3.1.0

@@ -2,0 +5,0 @@ * Fix safari issues with flex-basis [#38](https://github.com/luisrudge/postcss-flexbugs-fixes/pull/38)

2

package.json
{
"name": "postcss-flexbugs-fixes",
"version": "3.1.0",
"version": "3.2.0",
"description": "PostCSS plugin This project tries to fix all of flexbug's issues",

@@ -5,0 +5,0 @@ "keywords": ["postcss", "css", "postcss-plugin", "flexbugs", "flexbox", "flex"],

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