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:
parent
08f218724b
commit
dc9859cd83
1 changed files with 2 additions and 3 deletions
|
@ -411,8 +411,8 @@ Storage.prototype.get_local = function(callback) {
|
|||
var getPackage = function(i) {
|
||||
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]
|
||||
var latest = Array.isArray(info['dist-tags'].latest)
|
||||
? 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue