snyk-resolve-deps
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -6,2 +6,3 @@ module.exports = pluck; | ||
var debug = require('debug')('snyk:resolve:pluck'); | ||
var parseOptions = { loose: true }; | ||
@@ -17,3 +18,3 @@ function pluck(root, path, name, range) { | ||
var from = path.slice(0); | ||
var rootPath = moduleToObject(from.shift()).name; | ||
var rootPath = moduleToObject(from.shift(), parseOptions).name; | ||
@@ -27,3 +28,4 @@ // if the root of the virtual tree doesn't even match our path, bail out | ||
// we're looking for, and if it's not, push it on | ||
if (from.length !== 0 && moduleToObject(from.slice(-1).pop()).name === name) { | ||
if (from.length !== 0 && | ||
moduleToObject(from.slice(-1).pop(), parseOptions).name === name) { | ||
from.pop(); | ||
@@ -43,3 +45,3 @@ } | ||
while (from.length) { | ||
var pkg = moduleToObject(from[0]); | ||
var pkg = moduleToObject(from[0], parseOptions); | ||
var test = getMatch(leaf, pkg.name, pkg.version); | ||
@@ -46,0 +48,0 @@ |
@@ -26,3 +26,3 @@ { | ||
"sinon": "^1.17.3", | ||
"snyk-resolve-deps-fixtures": "^1.1.5", | ||
"snyk-resolve-deps-fixtures": "^1.1.6", | ||
"tap": "^5.1.1", | ||
@@ -42,3 +42,3 @@ "tap-only": "0.0.5", | ||
"semver": "^5.1.0", | ||
"snyk-module": "^1.5.0", | ||
"snyk-module": "^1.6.0", | ||
"snyk-resolve": "^1.0.0", | ||
@@ -53,3 +53,3 @@ "snyk-tree": "^1.0.0", | ||
}, | ||
"version": "1.5.1" | ||
"version": "1.5.2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201191
626
Updatedsnyk-module@^1.6.0