|
|
|
@ -31,19 +31,19 @@ module.exports = function (Meta) {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
pkgData = JSON.parse(pkgData);
|
|
|
|
|
var ok = !semver.validRange(pkg.dependencies[module]) || semver.satisfies(pkgData.version, pkg.dependencies[module]);
|
|
|
|
|
|
|
|
|
|
if (ok || (pkgData._resolved && pkgData._resolved.indexOf('//github.com') !== -1)) {
|
|
|
|
|
next(true);
|
|
|
|
|
} else {
|
|
|
|
|
process.stdout.write('[' + 'outdated'.yellow + '] ' + module.bold + ' installed v' + pkgData.version + ', package.json requires ' + pkg.dependencies[module] + '\n');
|
|
|
|
|
depsOutdated = true;
|
|
|
|
|
next(true);
|
|
|
|
|
}
|
|
|
|
|
} catch(e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
process.stdout.write('[' + 'missing'.red + '] ' + module.bold + ' is a required dependency but could not be found\n');
|
|
|
|
|
depsMissing = true;
|
|
|
|
|
return next(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var ok = !semver.validRange(pkg.dependencies[module]) || semver.satisfies(pkgData.version, pkg.dependencies[module]);
|
|
|
|
|
|
|
|
|
|
if (ok || (pkgData._resolved && pkgData._resolved.indexOf('//github.com') !== -1)) {
|
|
|
|
|
next(true);
|
|
|
|
|
} else {
|
|
|
|
|
process.stdout.write('[' + 'outdated'.yellow + '] ' + module.bold + ' installed v' + pkgData.version + ', package.json requires ' + pkg.dependencies[module] + '\n');
|
|
|
|
|
depsOutdated = true;
|
|
|
|
|
next(true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|