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

fix npm search not show author name

This commit is contained in:
Meeeeow 2017-04-21 00:58:47 +08:00
parent 13d653e4dd
commit a18ac6bed6

View file

@ -604,7 +604,7 @@ Storage.prototype.search = function(startkey, options) {
description : data.versions[latest].description, description : data.versions[latest].description,
'dist-tags' : { latest: latest }, 'dist-tags' : { latest: latest },
maintainers : data.versions[latest].maintainers || maintainers : data.versions[latest].maintainers ||
[ data.versions[latest]._npmUser ].filter(Boolean), [ data.versions[latest].author ].filter(Boolean),
author : data.versions[latest].author, author : data.versions[latest].author,
repository : data.versions[latest].repository, repository : data.versions[latest].repository,
readmeFilename : data.versions[latest].readmeFilename || '', readmeFilename : data.versions[latest].readmeFilename || '',