MCPcopy Index your code
hub / github.com/nodejs/node / #getEdges

Method #getEdges

deps/npm/lib/commands/outdated.js:100–115  ·  view source on GitHub ↗
(nodes, type)

Source from the content-addressed store, hash-verified

98 }
99
100 #getEdges (nodes, type) {
101 // when no nodes are provided then it should only read direct deps from the root node and its workspaces direct dependencies
102 if (!nodes) {
103 this.#getEdgesOut(this.#tree)
104 this.#getWorkspacesEdges()
105 return
106 }
107
108 for (const node of nodes) {
109 if (type === 'edgesOut') {
110 this.#getEdgesOut(node)
111 } else {
112 this.#getEdgesIn(node)
113 }
114 }
115 }
116
117 #getEdgesIn (node) {
118 for (const edge of node.edgesIn) {

Callers 1

execMethod · 0.95

Calls 3

#getEdgesOutMethod · 0.95
#getWorkspacesEdgesMethod · 0.95
#getEdgesInMethod · 0.95

Tested by

no test coverage detected