({ global, long, seenNodes })
| 554 | } |
| 555 | |
| 556 | const parseableOutput = ({ global, long, seenNodes }) => { |
| 557 | let out = '' |
| 558 | for (const node of seenNodes.values()) { |
| 559 | if (node.path && node[_include]) { |
| 560 | out += node.path |
| 561 | if (long) { |
| 562 | out += `:${node.pkgid}` |
| 563 | out += node.path !== node.realpath ? `:${node.realpath}` : '' |
| 564 | out += isExtraneous(node, { global }) ? ':EXTRANEOUS' : '' |
| 565 | out += node[_invalid] ? ':INVALID' : '' |
| 566 | out += node.overridden ? ':OVERRIDDEN' : '' |
| 567 | } |
| 568 | out += '\n' |
| 569 | } |
| 570 | } |
| 571 | return out.trim() |
| 572 | } |