(nodes, type)
| 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) { |
no test coverage detected