From a18ac6bed66b4bdbb670f3cf238cfbc543895771 Mon Sep 17 00:00:00 2001 From: Meeeeow Date: Fri, 21 Apr 2017 00:58:47 +0800 Subject: [PATCH] fix npm search not show author name --- lib/local-storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/local-storage.js b/lib/local-storage.js index 8596e47d9..5e42700b8 100644 --- a/lib/local-storage.js +++ b/lib/local-storage.js @@ -604,7 +604,7 @@ Storage.prototype.search = function(startkey, options) { description : data.versions[latest].description, 'dist-tags' : { latest: latest }, maintainers : data.versions[latest].maintainers || - [ data.versions[latest]._npmUser ].filter(Boolean), + [ data.versions[latest].author ].filter(Boolean), author : data.versions[latest].author, repository : data.versions[latest].repository, readmeFilename : data.versions[latest].readmeFilename || '',