Socket
Socket
Sign inDemoInstall

react-avatar

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-avatar - npm Package Compare versions

Comparing version 3.9.0 to 3.9.1

1

es/avatar.js

@@ -265,3 +265,2 @@ 'use strict';

textAlign: 'center',
textTransform: 'uppercase',
color: this.props.fgColor,

@@ -268,0 +267,0 @@ background: this.state.color,

2

es/utils.js

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

return !!v;
}).slice(0, maxInitials).join('');
}).slice(0, maxInitials).join('').toUpperCase();
}

@@ -142,0 +142,0 @@ /**

@@ -20,2 +20,3 @@ import * as React from "react";

googleId?: string;
instagramId?: string;
githubHandle?: string;

@@ -142,2 +143,12 @@ skypeId?: string;

export interface CacheOptions {
cachePrefix?: string,
sourceTTL?: number,
sourceSize?: number
}
export interface CacheConstructor {
new (options: CacheOptions): Cache;
}
/**

@@ -150,2 +161,3 @@ * Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user.

export const ConfigProvider: React.ComponentType<ConfigProvider>;
export const Cache: CacheConstructor;
export default ReactAvatar;

@@ -318,3 +318,2 @@ 'use strict';

textAlign: 'center',
textTransform: 'uppercase',
color: this.props.fgColor,

@@ -321,0 +320,0 @@ background: this.state.color,

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

return !!v;
}).slice(0, maxInitials).join('');
}).slice(0, maxInitials).join('').toUpperCase();
}

@@ -178,0 +178,0 @@ /**

{
"name": "react-avatar",
"version": "3.9.0",
"version": "3.9.1",
"description": "Universal React avatar component makes it possible to generate avatars based on user information.",

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

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