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:
parent
008423d49b
commit
58046a2ec7
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ Storage.prototype.search = function(startkey, options, callback) {
|
||||||
'dist-tags' : {
|
'dist-tags' : {
|
||||||
latest: latest
|
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 || '',
|
readmeFilename: data.versions[latest].readmeFilename || '',
|
||||||
time : {
|
time : {
|
||||||
modified: new Date(item.time).toISOString()
|
modified: new Date(item.time).toISOString()
|
||||||
|
|
Loading…
Reference in a new issue