Comparing version 0.4.0-alpha1 to 0.4.0-alpha2
@@ -105,2 +105,3 @@ module.exports = protect; | ||
if (vuln.patches && vuln.patches.length) { | ||
@@ -113,2 +114,3 @@ // check that the version we have has a patch available | ||
debug(patches); | ||
if (patches !== null) { | ||
@@ -115,0 +117,0 @@ debug('%s@%s', vuln.name, vuln.version, patches); |
@@ -445,3 +445,3 @@ var protect = module.exports = { | ||
if (semver.satisfies(vuln.version, patch.version)) { | ||
return (patch.files || []).length ? patch : false; | ||
return (patch.urls || []).length ? patch : false; | ||
} | ||
@@ -448,0 +448,0 @@ return false; |
@@ -5,3 +5,3 @@ { | ||
"main": "lib/index.js", | ||
"version": "0.4.0-alpha1", | ||
"version": "0.4.0-alpha2", | ||
"directories": { | ||
@@ -8,0 +8,0 @@ "test": "test" |
74607
1900