Serve insecure badge for david-dm.org @nodesecurity integration
This commit is contained in:
parent
e02c9ca1c3
commit
3052fbd46e
|
@ -1214,7 +1214,10 @@ cache(function(data, match, sendBadge) {
|
||||||
try {
|
try {
|
||||||
var data = JSON.parse(buffer);
|
var data = JSON.parse(buffer);
|
||||||
var status = data.status;
|
var status = data.status;
|
||||||
if (status === 'notsouptodate') {
|
if (status === 'insecure') {
|
||||||
|
badgeData.colorscheme = 'red';
|
||||||
|
status = 'insecure';
|
||||||
|
} else if (status === 'notsouptodate') {
|
||||||
badgeData.colorscheme = 'yellow';
|
badgeData.colorscheme = 'yellow';
|
||||||
status = 'up-to-date';
|
status = 'up-to-date';
|
||||||
} else if (status === 'outofdate') {
|
} else if (status === 'outofdate') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user