auditjs icon indicating copy to clipboard operation
auditjs copied to clipboard

Show what dep brought in a dep, also the path to it

Open DarthHater opened this issue 4 years ago • 0 comments

To help devs figure out how to remediate, it was suggested to add the:

  • list of deps that require the dep
  • the path to the dep

This gives a developer a lot of information to go on to figure out why something was brought in.

This pull request makes the following changes:

  • Adds fields for what required a dependency, populates them as we parse the list from read-installed
  • Adds a field for the realPath to the dependency, populates it
  • Passes both the read-installed coordinates and ossindexserverresults to Audit, and merges them
  • Outputs the dependency information:
Screen Shot 2020-03-19 at 12 01 47 PM

cc @bhamail / @DarthHater / @allenhsieh / @ken-duck

DarthHater avatar Mar 19 '20 20:03 DarthHater