react-avatar
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -9,2 +9,3 @@ | ||
var PureRenderMixin = require('react-addons-pure-render-mixin'); | ||
var isRetina = require('is-retina')(); | ||
@@ -37,2 +38,3 @@ var Avatar = React.createClass({ | ||
var prefix = this.getProtocol() === 'https:' ? 'https://secure.' : 'http://'; | ||
size = isRetina ? size * 2 : size; | ||
cb(prefix + this.parse(base, {id: email, size: size})); | ||
@@ -39,0 +41,0 @@ }, |
{ | ||
"name": "react-avatar", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user.", | ||
@@ -43,2 +43,3 @@ "main": "avatar.js", | ||
"is-array": "^1.0.1", | ||
"is-retina": "^1.0.3", | ||
"react": "^0.14.0", | ||
@@ -45,0 +46,0 @@ "react-addons-pure-render-mixin": "^0.14.0", |
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
29788
738
9
+ Addedis-retina@^1.0.3
+ Addedis-retina@1.0.3(transitive)