diff options
-rw-r--r-- | lib/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/search.js b/lib/search.js index 8fe3cb7ec..75df11f5f 100644 --- a/lib/search.js +++ b/lib/search.js @@ -80,10 +80,10 @@ function filter (data, args, notArgs) { function stripData (data) { return { name:data.name , description:npm.config.get("description") ? data.description : "" - , maintainers:data.maintainers.map(function (m) { + , maintainers:(data.maintainers || []).map(function (m) { return "=" + m.name }) - , url:!Object.keys(data.versions).length ? data.url : null + , url:!Object.keys(data.versions || {}).length ? data.url : null , keywords:data.keywords || [] } } |