UNPKG

578 BJavaScriptView Raw
1var nextUpdate = require('./next-update');
2
3module.exports = function nextUpdateTopLevel(options) {
4 options = options || {};
5 var opts = {
6 names: options.module,
7 testCommand: options.test,
8 latest: Boolean(options.latest),
9 keep: Boolean(options.keep),
10 color: Boolean(options.color || options.colors),
11 allow: options.allow || options.allowed,
12 type: options.type,
13 changedLog: options['changed-log']
14 };
15
16 var checkUpdates = nextUpdate.checkAllUpdates.bind(null, opts);
17
18 return nextUpdate.checkCurrentInstall(opts)
19 .then(checkUpdates);
20};