0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

web-gui/updating entries shown on index page

This commit is contained in:
Alex Vernacchia 2014-10-13 14:39:04 -04:00
parent 08f218724b
commit dc9859cd83

View file

@ -412,7 +412,7 @@ Storage.prototype.get_local = function(callback) {
self.local.get_package(locals[i], function(err, info) {
if (!err) {
var latest = Array.isArray(info['dist-tags'].latest)
? utils.semver_sort(info['dist-tags'].latest)[0]
? utils.semver_sort(info['dist-tags'].latest).pop()
: info['dist-tags'].latest
if (info.versions[latest]) {
packages.push(info.versions[latest])
@ -548,4 +548,3 @@ Storage._merge_versions = function(local, up, config) {
}
module.exports = Storage