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

react-flexr

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-flexr - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

11

lib/cell.component.js

@@ -68,3 +68,7 @@ 'use strict';

return { flex: '0 0 ' + 100 / denominator * numerator + '%' };
var calcSize = '0 0 ' + 100 / denominator * numerator + '%';
return {
WebkitFlex: calcSize,
flex: calcSize
};
}

@@ -131,3 +135,6 @@

this.styles = [CellStyles.base, align ? CellStyles[align] : null, gutter ? { padding: '0 ' + gutter } : null, flex ? CellStyles.flex : null, responsiveSize && responsiveSize !== 'hidden' ? calcWidth(responsiveSize) : size ? calcWidth(size) : growStyle !== undefined ? { flex: '' + growStyle + ' 1 auto' } : null, style].concat(Array.isArray(styles) ? styles : [styles]);
this.styles = [CellStyles.base, align ? CellStyles[align] : null, gutter ? { padding: '0 ' + gutter } : null, flex ? CellStyles.flex : null, responsiveSize && responsiveSize !== 'hidden' ? calcWidth(responsiveSize) : size ? calcWidth(size) : growStyle !== undefined ? {
flex: '' + growStyle + ' 1 auto',
WebkitFlex: '' + growStyle + ' 1 auto'
} : null, style].concat(Array.isArray(styles) ? styles : [styles]);

@@ -134,0 +141,0 @@ return responsiveSize === 'hidden' ? null : _React2['default'].createElement(

2

package.json
{
"name": "react-flexr",
"version": "1.4.3",
"version": "1.4.4",
"description": "React flexbox grid made simple.",

@@ -5,0 +5,0 @@ "main": "lib",

@@ -29,3 +29,7 @@ import StyleSheet from 'react-style';

const [ numerator, denominator ] = size ? size.split('/') : [];
return { flex: `0 0 ${ ( 100 / denominator ) * numerator }%` };
const calcSize = `0 0 ${ ( 100 / denominator ) * numerator }%`;
return {
WebkitFlex: calcSize,
flex: calcSize
};
}

@@ -68,3 +72,6 @@

size ? calcWidth(size) :
growStyle !== undefined ? { flex: `${ growStyle } 1 auto` } : null,
growStyle !== undefined ? {
flex: `${ growStyle } 1 auto`,
WebkitFlex: `${ growStyle } 1 auto`
} : null,
style

@@ -71,0 +78,0 @@ ].concat( Array.isArray(styles) ? styles : [styles] );

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