kopia lustrzana https://github.com/badgen/badgen.net
fix: apm badge dl & stars count at 0
rodzic
7a5f06fcc5
commit
ec0fc501fb
|
@ -46,14 +46,14 @@ async function pkg (topic, args) {
|
||||||
case 'downloads': {
|
case 'downloads': {
|
||||||
return {
|
return {
|
||||||
subject: 'downloads',
|
subject: 'downloads',
|
||||||
status: millify(meta.downloads) || 'unknown',
|
status: millify(meta.downloads),
|
||||||
color: 'green'
|
color: 'green'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 'stars': {
|
case 'stars': {
|
||||||
return {
|
return {
|
||||||
subject: 'stars',
|
subject: 'stars',
|
||||||
status: millify(meta.stargazers_count) || 'unknown',
|
status: millify(meta.stargazers_count),
|
||||||
color: 'green'
|
color: 'green'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue