react-responsive
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "react-responsive", | ||
"description": "Media queries in react for responsive design", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"homepage": "http://github.com/wearefractal/react-responsive", | ||
@@ -35,2 +35,3 @@ "repository": { | ||
"browserify": "^12.0.1", | ||
"chai": "^3.5.0", | ||
"ecstatic": "^1.4.0", | ||
@@ -44,9 +45,14 @@ "gulp": "^3.9.0", | ||
"gulp-sourcemaps": "^1.6.0", | ||
"jsdom": "^8.4.0", | ||
"jshint": "^2.x", | ||
"jshint-stylish": "^2.1.0", | ||
"merge-stream": "^1.0.0", | ||
"mocha": "^2.3.4", | ||
"react-dom": "^0.14.0", | ||
"mocha": "^2.4.5", | ||
"react": "^15.0.1", | ||
"react-addons-test-utils": "^15.0.1", | ||
"react-dom": "^0.14.0 || ^15.0.0", | ||
"react-tools": "^0.13.3", | ||
"reactify": "^1.1.1", | ||
"should": "^8.0.2", | ||
"sinon": "^1.17.3", | ||
"vinyl-buffer": "1.0.0", | ||
@@ -58,3 +64,3 @@ "vinyl-source-stream": "^1.1.0", | ||
"lint": "jshint ./src --reporter=node_modules/jshint-stylish --exclude node_modules", | ||
"test": "npm run-script lint" | ||
"test": "NODE_PATH=$NODE_PATH:$PWD/src $(npm bin)/mocha -R dot --compilers .:test/compiler.js --require ./test/setup.js test/*_test.js" | ||
}, | ||
@@ -61,0 +67,0 @@ "engines": { |
@@ -98,3 +98,7 @@ 'use strict'; | ||
var props = omit(this.props, excludedPropKeys); | ||
if (this.props.component || React.Children.count(this.props.children) > 1) { | ||
var hasMergeProps = Object.keys(props).length > 0; | ||
var wrapChildren = this.props.component || | ||
React.Children.count(this.props.children) > 1 || | ||
typeof this.props.children === 'string'; | ||
if (wrapChildren) { | ||
return React.createElement( | ||
@@ -105,3 +109,3 @@ this.props.component || 'div', | ||
); | ||
} else if (props) { | ||
} else if (hasMergeProps) { | ||
return React.cloneElement( | ||
@@ -108,0 +112,0 @@ this.props.children, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21
141
614641
25
7661
2