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

react-responsive

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-responsive - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

5

package.json
{
"name": "react-responsive",
"description": "Media queries in react for responsive design",
"version": "0.0.7",
"version": "0.0.8",
"homepage": "http://github.com/wearefractal/react-responsive",

@@ -26,2 +26,3 @@ "repository": {

"dependencies": {
"hyphenate-style-name": "^1.0.0",
"lodash.omit": "^3.0.0",

@@ -32,3 +33,3 @@ "matchmedia": "^0.1.1",

"peerDependencies": {
"react": ">=0.12.0"
"react": "*"
},

@@ -35,0 +36,0 @@ "devDependencies": {

6

src/index.js

@@ -6,3 +6,3 @@ 'use strict';

var matchMedia = require('matchmedia');
var hyphenate = require('react/lib/hyphenateStyleName');
var hyphenate = require('hyphenate-style-name');
var mediaQuery = require('./mediaQuery');

@@ -64,2 +64,6 @@ var toQuery = require('./toQuery');

if (this._mql) {
this._mql.removeListener(this.updateMatches);
}
this._mql = matchMedia(this.query, values);

@@ -66,0 +70,0 @@ this._mql.addListener(this.updateMatches);

@@ -1,2 +0,2 @@

var PropTypes = require('react/lib/ReactPropTypes');
var PropTypes = require('react').PropTypes;
var assign = require('object-assign');

@@ -3,0 +3,0 @@

'use strict';
var hyphenate = require('react/lib/hyphenateStyleName');
var hyphenate = require('hyphenate-style-name');
var mq = require('./mediaQuery');

@@ -39,2 +39,2 @@

return join(rules);
};
};
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