MCPcopy Create free account
hub / github.com/npm/cli / appendExtraneousChildren

Function appendExtraneousChildren

lib/commands/ls.js:424–428  ·  view source on GitHub ↗
({ node, seenPaths })

Source from the content-addressed store, hash-verified

422}
423
424const appendExtraneousChildren = ({ node, seenPaths }) =>
425 // extraneous children are not represented
426 // in edges out, so here we add them to the list:
427 [...node.children.values()]
428 .filter(i => !seenPaths.has(i.path) && i.extraneous)
429
430const mapEdgesToNodes = ({ seenPaths }) => (edge) => {
431 let node = edge.to

Callers 1

getChildrenMethod · 0.85

Calls 2

filterMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected