PATH:
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
arborist
/
lib
// given a starting node, what is the *deepest* target where name could go? // This is not on the Node class for the simple reason that we sometimes // need to check the deepest *potential* target for a Node that is not yet // added to the tree where we are checking. const deepestNestingTarget = (start, name) => { for (const target of start.ancestry()) { // note: this will skip past the first target if edge is peer if (target.isProjectRoot || !target.resolveParent || target.globalTop) { return target } const targetEdge = target.edgesOut.get(name) if (!targetEdge || !targetEdge.peer) { return target } } } module.exports = deepestNestingTarget
[-] edge.js
[open]
[-] inventory.js
[open]
[-] debug.js
[open]
[+]
..
[-] optional-set.js
[open]
[-] printable.js
[open]
[-] link.js
[open]
[-] place-dep.js
[open]
[-] realpath.js
[open]
[-] deepest-nesting-target.js
[open]
[-] case-insensitive-map.js
[open]
[-] relpath.js
[open]
[-] signals.js
[open]
[-] calc-dep-flags.js
[open]
[-] signal-handling.js
[open]
[-] peer-entry-sets.js
[open]
[-] index.js
[open]
[-] node.js
[open]
[-] spec-from-lock.js
[open]
[-] yarn-lock.js
[open]
[-] from-path.js
[open]
[-] retire-path.js
[open]
[-] add-rm-pkg-deps.js
[open]
[-] dep-valid.js
[open]
[-] packument-cache.js
[open]
[-] consistent-resolve.js
[open]
[-] audit-report.js
[open]
[-] tracker.js
[open]
[-] vuln.js
[open]
[-] gather-dep-set.js
[open]
[-] tree-check.js
[open]
[-] reset-dep-flags.js
[open]
[-] override-set.js
[open]
[-] diff.js
[open]
[-] override-resolves.js
[open]
[-] version-from-tgz.js
[open]
[-] shrinkwrap.js
[open]
[+]
arborist
[-] can-place-dep.js
[open]
[-] query-selector-all.js
[open]