badge(npm): always follow versionColor (#347)

pull/358/head
晋晓炜 Amio / 2020-01-28 13:13:44 +08:00 zatwierdzone przez GitHub
rodzic c098961ef0
commit 75a2cabbbf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -87,7 +87,7 @@ async function info (topic: string, pkg: string, tag = 'latest') {
return {
subject: tag === 'latest' ? 'npm' : `npm@${tag}`,
status: version(meta.version),
color: tag === 'latest' ? versionColor(meta.version) : 'blue'
color: versionColor(meta.version)
}
}
case 'license': {