MCPcopy Create free account
hub / github.com/nodejs/node / #getEdgesOut

Method #getEdgesOut

deps/npm/lib/commands/outdated.js:123–129  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

121 }
122
123 #getEdgesOut (node) {
124 // TODO: normalize usage of edges and avoid looping through nodes here
125 const edges = this.npm.global ? node.children.values() : node.edgesOut.values()
126 for (const edge of edges) {
127 this.#trackEdge(edge)
128 }
129 }
130
131 #trackEdge (edge) {
132 if (edge.from && this.#filterSet?.size > 0 && !this.#filterSet.has(edge.from.target)) {

Callers 2

#getEdgesMethod · 0.95
#getWorkspacesEdgesMethod · 0.95

Calls 2

#trackEdgeMethod · 0.95
valuesMethod · 0.45

Tested by

no test coverage detected