dependency-tree
Advanced tools
Comparing version 10.0.8 to 10.0.9
22
index.js
@@ -99,5 +99,5 @@ 'use strict'; | ||
for (const dep of dependencies) { | ||
for (const dependency of dependencies) { | ||
const result = cabinet({ | ||
partial: dep, | ||
partial: dependency, | ||
filename: config.filename, | ||
@@ -114,4 +114,4 @@ directory: config.directory, | ||
if (!result) { | ||
debug(`skipping an empty filepath resolution for partial: ${dep}`); | ||
config.nonExistent.push(dep); | ||
debug(`skipping an empty filepath resolution for partial: ${dependency}`); | ||
config.nonExistent.push(dependency); | ||
continue; | ||
@@ -123,4 +123,4 @@ } | ||
if (!exists) { | ||
config.nonExistent.push(dep); | ||
debug(`skipping non-empty but non-existent resolution: ${result} for partial: ${dep}`); | ||
config.nonExistent.push(dependency); | ||
debug(`skipping non-empty but non-existent resolution: ${result} for partial: ${dependency}`); | ||
continue; | ||
@@ -164,5 +164,5 @@ } | ||
for (const dep of dependencies) { | ||
for (const dependency of dependencies) { | ||
const localConfig = config.clone(); | ||
localConfig.filename = dep; | ||
localConfig.filename = dependency; | ||
@@ -174,3 +174,3 @@ if (localConfig.isListForm) { | ||
} else { | ||
subTree[dep] = traverse(localConfig); | ||
subTree[dependency] = traverse(localConfig); | ||
} | ||
@@ -194,5 +194,7 @@ } | ||
for (const { elem, i } of Object.entries(deduped)) { | ||
let i = 0; | ||
for (const elem of deduped) { | ||
nonExistent[i] = elem; | ||
i++; | ||
} | ||
} |
{ | ||
"name": "dependency-tree", | ||
"version": "10.0.8", | ||
"version": "10.0.9", | ||
"description": "Get the dependency tree of a module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
20922
264