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

react-flexbox

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-flexbox - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

14

lib/index.js

@@ -15,2 +15,4 @@ 'use strict';

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

@@ -82,5 +84,15 @@

}
// strip props that are invalid to set on a div.
// (prevents https://fb.me/react-unknown-prop)
var _props = this.props;
var row = _props.row;
var column = _props.column;
var auto = _props.auto;
var divProps = _objectWithoutProperties(_props, ['row', 'column', 'auto']);
return _react2['default'].createElement(
'div',
_extends({}, this.props, { style: style }),
_extends({}, divProps, { style: style }),
this.props.children

@@ -87,0 +99,0 @@ );

8

package.json
{
"name": "react-flexbox",
"version": "3.0.0",
"version": "3.1.0",
"description": "React flexbox implementation",

@@ -42,6 +42,6 @@ "author": "Thomas Coopman @tcoopman",

},
"dependencies": {
"react": "^0.14.0-rc1",
"react-dom": "^0.14.0-rc1"
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0",
"react-dom": "0.14.0 || ^15.0.0"
}
}

@@ -62,4 +62,12 @@ import React, { Component, PropTypes } from 'react';

}
return <div {...this.props} style={style}>{this.props.children}</div>;
// strip props that are invalid to set on a div.
// (prevents https://fb.me/react-unknown-prop)
let {
row, column, auto,
...divProps
} = this.props;
return <div {...divProps} style={style}>{this.props.children}</div>;
}
}
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