Socket
Socket
Sign inDemoInstall

angular-gravatar

Package Overview
Dependencies
11
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

2

bower.json
{
"name": "angular-gravatar",
"version": "0.2.1",
"version": "0.2.2",
"author": {

@@ -5,0 +5,0 @@ "name": "Sebastian Wallin"

@@ -73,3 +73,3 @@ (function() {

opts = angular.extend(angular.copy(self.defaults), opts);
urlBase = self.secure ? 'https://secure' : 'http://www';
urlBase = self.secure ? 'https://secure' : '//www';
src = hashRegex.test(src) ? src : md5(src);

@@ -76,0 +76,0 @@ pieces = [urlBase, '.gravatar.com/avatar/', src];

@@ -1,1 +0,1 @@

(function(){var a;a=function(a){return["gravatarService",function(b){var c;return c=function(a,b){var c,d,e;d={};for(c in b)e=b[c],0===c.indexOf(a)&&(c=c.substr(a.length).toLowerCase(),c.length>0&&(d[c]=e));return d},{restrict:"A",link:function(d,e,f){var g,h,i,j;g=a?"gravatarSrcOnce":"gravatarSrc",h=f[g],delete f[g],i=c("gravatar",f),j=d.$watch(h,function(c){if(a){if(null==c)return;j()}e.attr("src",b.url(c,i))})}}}]},angular.module("ui.gravatar",["md5"]).provider("gravatarService",function(){var a,b,c;return b=this,a=/^[0-9a-f]{32}$/i,c=function(a){var b,c,d;c=[];for(b in a)d=a[b],c.push(""+b+"="+escape(d));return c.join("&")},this.defaults={},this.secure=!1,this.$get=["md5",function(d){return{url:function(e,f){var g,h,i;return null==e&&(e=""),null==f&&(f={}),f=angular.extend(angular.copy(b.defaults),f),i=b.secure?"https://secure":"http://www",e=a.test(e)?e:d(e),h=[i,".gravatar.com/avatar/",e],g=c(f),g.length>0&&h.push("?"+g),h.join("")}}}],this}).directive("gravatarSrc",a()).directive("gravatarSrcOnce",a(!0))}).call(this);
(function(){var a;a=function(a){return["gravatarService",function(b){var c;return c=function(a,b){var c,d,e;d={};for(c in b)e=b[c],0===c.indexOf(a)&&(c=c.substr(a.length).toLowerCase(),c.length>0&&(d[c]=e));return d},{restrict:"A",link:function(d,e,f){var g,h,i,j;g=a?"gravatarSrcOnce":"gravatarSrc",h=f[g],delete f[g],i=c("gravatar",f),j=d.$watch(h,function(c){if(a){if(null==c)return;j()}e.attr("src",b.url(c,i))})}}}]},angular.module("ui.gravatar",["md5"]).provider("gravatarService",function(){var a,b,c;return b=this,a=/^[0-9a-f]{32}$/i,c=function(a){var b,c,d;c=[];for(b in a)d=a[b],c.push(""+b+"="+escape(d));return c.join("&")},this.defaults={},this.secure=!1,this.$get=["md5",function(d){return{url:function(e,f){var g,h,i;return null==e&&(e=""),null==f&&(f={}),f=angular.extend(angular.copy(b.defaults),f),i=b.secure?"https://secure":"//www",e=a.test(e)?e:d(e),h=[i,".gravatar.com/avatar/",e],g=c(f),g.length>0&&h.push("?"+g),h.join("")}}}],this}).directive("gravatarSrc",a()).directive("gravatarSrcOnce",a(!0))}).call(this);

@@ -19,5 +19,5 @@ 'use strict';

preprocessors: {
'angular-gravatar.js': 'coverage'
'build/angular-gravatar.js': 'coverage'
}
});
};
{
"name": "angular-gravatar",
"version": "0.2.1",
"version": "0.2.2",
"author": {

@@ -5,0 +5,0 @@ "name": "Sebastian Wallin"

@@ -87,2 +87,4 @@ [![Bower version](https://badge.fury.io/bo/angular-gravatar.png)](http://badge.fury.io/bo/angular-gravatar)

Note that by default, no explicit protocol is set. This means that the image will use the protocol with which the page is loaded. For example; if the page url is http://www.example.com the image will be loaded over http, but if the page url is https://www.example.com the image will be loaded over https.
All the available options can be seen over at the [Gravatar docs for image

@@ -100,1 +102,2 @@ requests](https://sv.gravatar.com/site/implement/images/)

* Eduardo Garcia (https://github.com/thewarpaint)
* Thomas Vervest (https://github.com/tvervest)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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