Socket
Socket
Sign inDemoInstall

react-useravatar

Package Overview
Dependencies
17
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

9

lib/UserAvatar.js

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

* @url https://github.com/bltnico/react-user-avatar
* @version 1.0.2
* @version 1.0.3
*

@@ -59,2 +59,3 @@ * @example

_this.initState();
return _this;

@@ -64,4 +65,4 @@ }

_createClass(UserAvatar, [{
key: 'componentDidMount',
value: function componentDidMount() {
key: 'initState',
value: function initState() {
this.setState({

@@ -154,3 +155,3 @@ color: this.intToRGB(this.hashCode(this.props.username)),

textAlign: 'center',
lineHeight: this.props.size
lineHeight: this.props.size + "px"
},

@@ -157,0 +158,0 @@ text: {

{
"name": "react-useravatar",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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

* @url https://github.com/bltnico/react-user-avatar
* @version 1.0.2
* @version 1.0.3
*

@@ -38,5 +38,6 @@ * @example

this.initState();
}
componentDidMount() {
initState() {
this.setState({

@@ -114,3 +115,3 @@ color : this.intToRGB(this.hashCode(this.props.username)),

textAlign : 'center',
lineHeight : this.props.size
lineHeight : this.props.size + "px"
},

@@ -117,0 +118,0 @@ text : {

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