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

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.4.1 to 3.4.2

18

index.d.ts

@@ -30,2 +30,9 @@ import * as React from "react";

/**
* Initials to show or a method converting name into initials
* @param {string} name
* @param {any} value
* @returns {string}
*/
initials?: string | ((name: string, props: any) => string);
/**
* Show a value as avatar

@@ -83,2 +90,13 @@ */

cache?: Cache;
/**
* Method converting name into initials
* @param {string} name
* @param {any} value
* @returns {string}
*/
initials?: (name: string, props: any) => string;
/**
* The baseUrl for a avatar-redirect service
*/
avatarRedirectUrl?: string;
}

@@ -85,0 +103,0 @@

5

package.json
{
"name": "react-avatar",
"version": "3.4.1",
"version": "3.4.2",
"description": "Universal React avatar component makes it possible to generate avatars based on user information.",
"main": "lib/index.js",
"module": "es/index.js",
"types": "index.d.ts",
"typings": "index.d.ts",

@@ -38,3 +39,3 @@ "scripts": {

],
"homepage": "https://github.com/sitebase/react-avatar",
"homepage": "https://www.sitebase.be/react-avatar/",
"peerDependencies": {

@@ -41,0 +42,0 @@ "react": "^15.0.0 || ^16.0.0",

14

README.md

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

# <Avatar>[![Build Status](https://travis-ci.org/Sitebase/react-avatar.svg?branch=master)](https://travis-ci.org/Sitebase/react-avatar)
# <Avatar> [![Build Status](https://travis-ci.org/Sitebase/react-avatar.svg?branch=master)](https://travis-ci.org/Sitebase/react-avatar) [![npm downloads](https://img.shields.io/npm/dm/react-avatar.svg)](https://www.npmjs.com/package/react-avatar) [![version](https://img.shields.io/npm/v/react-avatar.svg)](https://www.npmjs.com/package/react-avatar) ![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/react-avatar.svg) ![npm type definitions](https://img.shields.io/npm/types/react-avatar.svg)
Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user.

@@ -32,8 +33,5 @@ We use a fallback system that if for example an invalid Facebook ID is used it will try Google, and so on.

# besides React, react-avatar also has react-addons-shallow-compare and prop-types
# as peer dependencies, make sure to install the correct version
# for your version of react
$ npm install react-addons-shallow-compare@^0.14 --save
# OR
$ npm install react-addons-shallow-compare@^15 --save
# besides React, react-avatar also has prop-types as peer dependency,
# make sure to install it into your project
$ npm install prop-types --save
```

@@ -181,3 +179,3 @@

## Products using React Avatar
* [BuboBox](https://www.bubobox.com/?utm_source=github&utm_medium=readme&utm_campaign=react-avatar)
* [Ambassify](https://www.ambassify.com/?utm_source=github&utm_medium=readme&utm_campaign=react-avatar)

@@ -184,0 +182,0 @@

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