0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

Filter falsey _npmUser values.

This commit is contained in:
John Gozde 2014-08-01 14:08:44 -06:00
parent 008423d49b
commit 58046a2ec7

View file

@ -368,7 +368,7 @@ Storage.prototype.search = function(startkey, options, callback) {
'dist-tags' : {
latest: latest
},
maintainers : data.versions[latest].maintainers || [data.versions[latest]._npmUser],
maintainers : data.versions[latest].maintainers || [data.versions[latest]._npmUser].filter(Boolean),
readmeFilename: data.versions[latest].readmeFilename || '',
time : {
modified: new Date(item.time).toISOString()