check _resolved

v1.18.x
barisusakli 10 years ago
parent f4da333b42
commit 274844a07f

@ -29,7 +29,7 @@ module.exports = function(Meta) {
var pkgData = JSON.parse(pkgData),
ok = semver.satisfies(pkgData.version, pkg.dependencies[module]);
if (ok || pkgData._resolved.indexOf('//github.com') != -1) {
if (ok || (pkgData._resolved && pkgData._resolved.indexOf('//github.com') !== -1)) {
next(true);
} else {
process.stdout.write('[' + 'outdated'.yellow + '] ' + module.bold + ' v' + pkgData.version + ', requires ' + pkg.dependencies[module] + '\n')

Loading…
Cancel
Save