react-responsive
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"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,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); | ||
}; | ||
}; |
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
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
1058013
13035
5
+ Addedhyphenate-style-name@^1.0.0
+ Addedhyphenate-style-name@1.1.0(transitive)