Merge pull request #3474 from FokkeZB/patch-5

Only use semver.satisfies on valid ranges
v1.18.x
Julian Lam 10 years ago
commit a682c98626

@ -27,7 +27,7 @@ module.exports = function(Meta) {
try {
var pkgData = JSON.parse(pkgData),
ok = semver.satisfies(pkgData.version, pkg.dependencies[module]);
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);

Loading…
Cancel
Save