diff options
author | isaacs <i@izs.me> | 2011-04-28 21:34:30 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-04-28 21:34:30 +0400 |
commit | b5a6185c886b42085802e680c8162f015def9927 (patch) | |
tree | d515656cdf787d569aca0d14495cb40dd3a9a60a /lib | |
parent | 0c90bbbb242e9c4568e9c22cd3205377e964718a (diff) |
Close #848 handle oddball no-maintainer case
Diffstat (limited to 'lib')
-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 || [] } } |