Silence npm when using npm.commands.search
parent
9109bd206e
commit
5d7a8adcb7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue