Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/ls.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ls.js')
-rw-r--r--lib/ls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ls.js b/lib/ls.js
index 5ea6e94ba..d55cdfb45 100644
--- a/lib/ls.js
+++ b/lib/ls.js
@@ -428,7 +428,7 @@ const ls = async (args) => {
!(node instanceof Arborist.Node) || (node[_depth] > depthToPrint)
return (shouldSkipChildren)
? []
- : [...node.edgesOut.values()]
+ : [...(node.target || node).edgesOut.values()]
.filter(filterByEdgesTypes({
dev,
development,