From 36c27633b9126f6a9b00abfb604386a1e6ef2a4f Mon Sep 17 00:00:00 2001 From: Fokke Zandbergen Date: Mon, 24 Aug 2015 15:22:08 +0200 Subject: [PATCH] Only use semver.satisfies on valid ranges So it doesn't alarm when you use a package straight from git e.g. --- src/meta/dependencies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/dependencies.js b/src/meta/dependencies.js index bd08191c8f..a19a28b2f0 100644 --- a/src/meta/dependencies.js +++ b/src/meta/dependencies.js @@ -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);