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

ng2-avatar

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-avatar - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

3

dist/index.d.ts
import { ModuleWithProviders } from '@angular/core';
export * from './avatar.component';
export * from './avatar.module';
export declare class Ng2AvatarModule {
export declare class AvatarModule {
static forRoot(): ModuleWithProviders;
}

@@ -117,37 +117,14 @@ import { Component, Input, NgModule } from '@angular/core';

}
return AvatarModule;
}());
AvatarModule.decorators = [
{ type: NgModule, args: [{
imports: [
CommonModule
],
declarations: [
AvatarComponent
],
exports: [
AvatarComponent
]
},] },
];
/**
* @nocollapse
*/
AvatarModule.ctorParameters = function () { return []; };
var Ng2AvatarModule = (function () {
function Ng2AvatarModule() {
}
/**
* @return {?}
*/
Ng2AvatarModule.forRoot = function () {
AvatarModule.forRoot = function () {
return {
ngModule: AvatarModule,
providers: [AvatarModule]
providers: []
};
};
return Ng2AvatarModule;
return AvatarModule;
}());
Ng2AvatarModule.decorators = [
AvatarModule.decorators = [
{ type: NgModule, args: [{

@@ -159,7 +136,5 @@ imports: [

AvatarComponent,
AvatarModule
],
exports: [
AvatarComponent,
AvatarModule
]

@@ -171,4 +146,4 @@ },] },

*/
Ng2AvatarModule.ctorParameters = function () { return []; };
AvatarModule.ctorParameters = function () { return []; };
export { Ng2AvatarModule, AvatarComponent, AvatarModule };
export { AvatarModule, AvatarComponent };

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

{"__symbolic":"module","version":3,"metadata":{"Ng2AvatarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","name":"AvatarComponent"},{"__symbolic":"reference","name":"AvatarModule"}],"exports":[{"__symbolic":"reference","name":"AvatarComponent"},{"__symbolic":"reference","name":"AvatarModule"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AvatarModule"},"providers":[{"__symbolic":"reference","name":"AvatarModule"}]}}}},"AvatarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"avatar","template":"\n <div class=\"avatar\" *ngIf=\"props\"\n [style.background-color]=\"props.background\"\n [style.width]=\"props.size\"\n [style.line-height]='props.lineheight'\n [style.height]='props.size'\n [style.font-size]='props.fontSize'\n [style.border-radius]='props.borderradius'\n [style.text-align]=\"props.textalign\">\n <img style=\"vertical-align: top;\" *ngIf=\"displayImage\" [src]=\"gravatarUrl\" (error)=\"displayImage = false;\" alt=\"{{name}} | {{letter}}\"/>\n <span *ngIf=\"!displayImage\" [style.color]='fontColor'>{{letter}}</span>\n </div>","styles":[".avatar {text-align : center;overflow : auto;}"]}]}],"members":{"email":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["email"]}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["name"]}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["size"]}]}],"background":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["background"]}]}],"displayType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["displayType"]}]}],"letter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["letter"]}]}],"__ctor__":[{"__symbolic":"constructor"}],"getRandomColor":[{"__symbolic":"method"}],"getLetter":[{"__symbolic":"method"}],"getAvatar":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"AvatarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","name":"AvatarComponent"}],"exports":[{"__symbolic":"reference","name":"AvatarComponent"}]}]}],"members":{}}},"origins":{"Ng2AvatarModule":"./index","AvatarComponent":"./avatar.component","AvatarModule":"./avatar.module"},"importAs":"ng2-avatar"}
{"__symbolic":"module","version":3,"metadata":{"AvatarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","name":"AvatarComponent"}],"exports":[{"__symbolic":"reference","name":"AvatarComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AvatarModule"},"providers":[]}}}},"AvatarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"avatar","template":"\n <div class=\"avatar\" *ngIf=\"props\"\n [style.background-color]=\"props.background\"\n [style.width]=\"props.size\"\n [style.line-height]='props.lineheight'\n [style.height]='props.size'\n [style.font-size]='props.fontSize'\n [style.border-radius]='props.borderradius'\n [style.text-align]=\"props.textalign\">\n <img style=\"vertical-align: top;\" *ngIf=\"displayImage\" [src]=\"gravatarUrl\" (error)=\"displayImage = false;\" alt=\"{{name}} | {{letter}}\"/>\n <span *ngIf=\"!displayImage\" [style.color]='fontColor'>{{letter}}</span>\n </div>","styles":[".avatar {text-align : center;overflow : auto;}"]}]}],"members":{"email":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["email"]}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["name"]}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["size"]}]}],"background":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["background"]}]}],"displayType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["displayType"]}]}],"letter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["letter"]}]}],"__ctor__":[{"__symbolic":"constructor"}],"getRandomColor":[{"__symbolic":"method"}],"getLetter":[{"__symbolic":"method"}],"getAvatar":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}},"origins":{"AvatarModule":"./index","AvatarComponent":"./avatar.component"},"importAs":"ng2-avatar"}

@@ -119,37 +119,14 @@ (function (global, factory) {

}
return AvatarModule;
}());
AvatarModule.decorators = [
{ type: _angular_core.NgModule, args: [{
imports: [
_angular_common.CommonModule
],
declarations: [
AvatarComponent
],
exports: [
AvatarComponent
]
},] },
];
/**
* @nocollapse
*/
AvatarModule.ctorParameters = function () { return []; };
var Ng2AvatarModule = (function () {
function Ng2AvatarModule() {
}
/**
* @return {?}
*/
Ng2AvatarModule.forRoot = function () {
AvatarModule.forRoot = function () {
return {
ngModule: AvatarModule,
providers: [AvatarModule]
providers: []
};
};
return Ng2AvatarModule;
return AvatarModule;
}());
Ng2AvatarModule.decorators = [
AvatarModule.decorators = [
{ type: _angular_core.NgModule, args: [{

@@ -161,7 +138,5 @@ imports: [

AvatarComponent,
AvatarModule
],
exports: [
AvatarComponent,
AvatarModule
]

@@ -173,7 +148,6 @@ },] },

*/
Ng2AvatarModule.ctorParameters = function () { return []; };
AvatarModule.ctorParameters = function () { return []; };
exports.Ng2AvatarModule = Ng2AvatarModule;
exports.AvatarModule = AvatarModule;
exports.AvatarComponent = AvatarComponent;
exports.AvatarModule = AvatarModule;

@@ -180,0 +154,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

{
"name": "ng2-avatar",
"version": "2.0.0",
"version": "2.0.1",
"repository": {

@@ -17,2 +17,4 @@ "type": "git",

"ng2",
"ng4",
"ngx",
"avatar",

@@ -27,2 +29,4 @@ "angular-avatar",

"ng2-avatar",
"ng4-avatar",
"ngx-avatar",
"gravatar",

@@ -29,0 +33,0 @@ "gravatar api",

{
"name": "ng2-avatar",
"version": "2.0.1",
"version": "2.0.2",
"description": "Angular 2/4 Avatar (ng2-avatar) is a simple and lightweight avatar component",

@@ -16,3 +16,3 @@ "scripts": {

"main": "dist/ng2-avatar.umd.js",
"module": "dist/ngx-avatar.js",
"module": "dist/index.js",
"repository": {

@@ -31,2 +31,4 @@ "type": "git",

"ng2",
"ng4",
"ngx",
"avatar",

@@ -41,2 +43,4 @@ "angular-avatar",

"ng2-avatar",
"ng4-avatar",
"ngx-avatar",
"gravatar",

@@ -43,0 +47,0 @@ "gravatar api",

{
"name": "ng2-avatar",
"version": "2.0.0",
"version": "2.0.1",
"repository": {

@@ -17,2 +17,4 @@ "type": "git",

"ng2",
"ng4",
"ngx",
"avatar",

@@ -27,2 +29,4 @@ "angular-avatar",

"ng2-avatar",
"ng4-avatar",
"ngx-avatar",
"gravatar",

@@ -29,0 +33,0 @@ "gravatar api",

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