Silence npm when using npm.commands.search

pull/1672/head
Marcel Klehr 2013-03-26 11:33:04 +01:00
parent 9109bd206e
commit 5d7a8adcb7
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ exports.getAvailablePlugins = function(maxCacheAge, cb) {
if(exports.availablePlugins && maxCacheAge && Math.round(+new Date/1000)-cacheTimestamp <= maxCacheAge) { if(exports.availablePlugins && maxCacheAge && Math.round(+new Date/1000)-cacheTimestamp <= maxCacheAge) {
return cb && cb(null, exports.availablePlugins) return cb && cb(null, exports.availablePlugins)
} }
npm.commands.search(['ep_'], function(er, results) { npm.commands.search(['ep_'], /*silent?*/true, function(er, results) {
if(er) return cb && cb(er); if(er) return cb && cb(er);
exports.availablePlugins = results; exports.availablePlugins = results;
cacheTimestamp = Math.round(+new Date/1000); cacheTimestamp = Math.round(+new Date/1000);