Socket
Socket
Sign inDemoInstall

react-responsive

Package Overview
Dependencies
23
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.1.3

samples/static/dist/index.js

14

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc