diff options
Diffstat (limited to 'lib/search.js')
-rw-r--r-- | lib/search.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/search.js b/lib/search.js index 68139a7ac..ad3f312e5 100644 --- a/lib/search.js +++ b/lib/search.js @@ -4,6 +4,7 @@ module.exports = exports = search var npm = require("./npm.js") , columnify = require("columnify") , mapToRegistry = require("./utils/map-to-registry.js") + , updateIndex = require("./cache/update-index.js") search.usage = "npm search [some search terms ...]" @@ -66,7 +67,7 @@ function getFilteredData (staleness, args, notArgs, cb) { staleOk : true, auth : auth } - npm.registry.getAll(uri, params, function (er, data) { + updateIndex(uri, params, function (er, data) { if (er) return cb(er) return cb(null, filter(data, args, notArgs)) }) |