ngx-avatar
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "ngx-avatar", | ||
"version": "1.0.1", | ||
"scripts": { | ||
"build": "gulp build", | ||
"build:watch": "gulp", | ||
"docs": "npm run docs:build", | ||
"docs:build": "compodoc -p tsconfig.json -n ngx-avatar -d docs --hideGenerator", | ||
"docs:serve": "npm run docs:build -- -s", | ||
"docs:watch": "npm run docs:build -- -s -w", | ||
"lint": "tslint --type-check --project tsconfig.json src/**/*.ts" | ||
}, | ||
"version": "1.0.2", | ||
"repository": { | ||
@@ -22,3 +13,6 @@ "type": "git", | ||
"keywords": [ | ||
"angular" | ||
"angular", | ||
"avatar", | ||
"component", | ||
"initials" | ||
], | ||
@@ -29,42 +23,14 @@ "license": "MIT", | ||
}, | ||
"devDependencies": { | ||
"@angular/common": "^4.0.0", | ||
"@angular/compiler": "^4.0.0", | ||
"@angular/compiler-cli": "^4.0.0", | ||
"module": "ngx-avatar.js", | ||
"typings": "ngx-avatar.d.ts", | ||
"dependencies": { | ||
"ts-md5": "^1.2.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "^4.0.0", | ||
"@angular/http": "^4.0.0", | ||
"@angular/platform-browser": "^4.0.0", | ||
"@angular/platform-browser-dynamic": "^4.0.0", | ||
"@compodoc/compodoc": "^1.0.0-beta.7", | ||
"@types/jasmine": "2.5.38", | ||
"@types/node": "~6.0.60", | ||
"codelyzer": "~2.0.0", | ||
"core-js": "^2.4.1", | ||
"del": "^2.2.2", | ||
"gulp": "^3.9.1", | ||
"gulp-rollup": "^2.11.0", | ||
"jasmine-core": "~2.5.2", | ||
"jasmine-spec-reporter": "~3.2.0", | ||
"karma": "~1.4.1", | ||
"karma-chrome-launcher": "~2.0.0", | ||
"karma-cli": "~1.0.1", | ||
"karma-firefox-launcher": "^1.0.1", | ||
"karma-jasmine": "~1.1.0", | ||
"karma-jasmine-html-reporter": "^0.2.2", | ||
"node-watch": "^0.5.2", | ||
"protractor": "~5.1.0", | ||
"rollup": "^0.41.6", | ||
"run-sequence": "^1.2.2", | ||
"ts-md5": "^1.2.0", | ||
"rxjs": "^5.1.0", | ||
"ts-node": "~2.0.0", | ||
"tslint": "~4.5.0", | ||
"typescript": "~2.2.0", | ||
"zone.js": "^0.8.4" | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"dependencies": { | ||
"ts-md5": "^1.2.0" | ||
} | ||
} | ||
} |
@@ -107,6 +107,6 @@ # # <ngx-avatar> | ||
| `bgColor` | *string* | random | Give the background a fixed color with a hex like for example #FF0000 | | ||
| `fgColor` | *string* | #FFF | Used Give the text a fixed color with a hex like for example #FF0000 | | ||
| `fgColor` | *string* | #FFF | Give the text a fixed color with a hex like for example #FF0000 | | ||
| `size` | *number* | 50 | Size of the avatar | | ||
| `textSizeRatio` | *number* | 3 | For text based avatars the size of the text as a fragment of size (size / textSizeRatio) | | ||
| `round` | *bool* | true | Round the avatar corners | | ||
| `round` | *boolean* | true | Round the avatar corners | | ||
| `style` | *object* | | Style that will be applied on the root element | ||
@@ -113,0 +113,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
1
0
1
30287
6
17
772