snyk-resolve-deps
Advanced tools
Comparing version 4.5.0 to 4.6.0
@@ -9,3 +9,3 @@ "use strict"; | ||
const colour = require("ansicolors"); | ||
const moduleToObject = require("snyk-module"); | ||
const snyk_module_1 = require("snyk-module"); | ||
const util = require("util"); | ||
@@ -89,3 +89,3 @@ const format = util.format; | ||
let leafPath = (from || []).slice(1, -1).map(function (pkg) { | ||
return moduleToObject(pkg).name; | ||
return snyk_module_1.parsePackageString(pkg).name; | ||
}); | ||
@@ -92,0 +92,0 @@ let entry = tree.dependencies; |
"use strict"; | ||
const semver = require("semver"); | ||
const moduleToObject = require("snyk-module"); | ||
const snyk_module_1 = require("snyk-module"); | ||
const debugModule = require("debug"); | ||
@@ -15,3 +15,3 @@ const debug = debugModule('snyk:resolve:pluck'); | ||
let from = path.slice(0); | ||
let rootPath = moduleToObject(from.shift(), parseOptions).name; | ||
let rootPath = snyk_module_1.parsePackageString(from.shift(), parseOptions).name; | ||
// if the root of the virtual tree doesn't even match our path, bail out | ||
@@ -24,3 +24,3 @@ if (rootPath !== root.name) { | ||
if (from.length !== 0 && | ||
moduleToObject(from.slice(-1).pop(), parseOptions).name === name) { | ||
snyk_module_1.parsePackageString(from.slice(-1).pop(), parseOptions).name === name) { | ||
from.pop(); | ||
@@ -36,3 +36,3 @@ } | ||
while (from.length) { | ||
let pkg = moduleToObject(from[0], parseOptions); | ||
let pkg = snyk_module_1.parsePackageString(from[0], parseOptions); | ||
let test = getMatch(leaf, pkg.name, pkg.version); | ||
@@ -39,0 +39,0 @@ if (test) { |
@@ -47,3 +47,3 @@ { | ||
"semver": "^5.5.1", | ||
"snyk-module": "^1.6.0", | ||
"snyk-module": "^3.1.0", | ||
"snyk-resolve": "^1.0.0", | ||
@@ -58,3 +58,3 @@ "snyk-tree": "^1.0.0", | ||
}, | ||
"version": "4.5.0" | ||
"version": "4.6.0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
47638
+ Addedhosted-git-info@4.1.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedsnyk-module@3.2.0(transitive)
+ Addedyallist@4.0.0(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedsnyk-module@1.9.1(transitive)
Updatedsnyk-module@^3.1.0