Socket
Socket
Sign inDemoInstall

ember-cli-gravatar

Package Overview
Dependencies
0
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.3.0

8

app/components/gravatar-image.js

@@ -8,9 +8,11 @@ import Ember from 'ember';

imgClass: '',
default: '',
gravatarUrl: function() {
var email = this.get('email'),
size = this.get('size');
size = this.get('size'),
def = this.get('default');
return '//www.gravatar.com/avatar/' + md5(email) + '?s=' + size;
}.property('email', 'size'),
return '//www.gravatar.com/avatar/' + md5(email) + '?s=' + size + '&d=' + def;
}.property('email', 'size', 'default'),

@@ -17,0 +19,0 @@ altText: function() {

{
"name": "ember-cli-gravatar",
"version": "1.2.1",
"version": "1.3.0",
"description": "An Ember helper for gravatar image tags. Integrates with ember-cli.",

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

@@ -19,5 +19,8 @@ # Gravatar Image Tag

```hbs
{{gravatar-image email='johnotander@gmail.com' alt='John Otander gravatar' size=250 imgClass='img-circle'}}
{{gravatar-image email='johnotander@gmail.com' alt='John Otander gravatar' size=250 default='identicon' imgClass='img-circle'}}
```
The default property is optional as the size. You can use a encoded url or a default icon name.
[Gravatar documentation](https://en.gravatar.com/site/implement/images/#default-image)
### Content Security Policy

@@ -24,0 +27,0 @@

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