Replies: 1 comment 5 replies
-
hey @s0rthak, sorry for the late response. Yes, its definitely possible with npm v6 👍🏻 there is a sample mock of v6 audit response here https://github.com/jeemok/better-npm-audit/blob/master/test/__mocks__/v6-json-buffer.json you can refer to. However, this I can work on it over this weekend, or happy to review one if you can submit one MR too!
|
Beta Was this translation helpful? Give feedback.
-
Hi!
First of all, the new interface to the tool is great. It's so much more cleaner to go through now.
Would it be possible to show the path to the module with the reported vulnerability in the new UI?
Here's a example output:

(I'm using npm v6 with node 14 right now)
This is from a frontend repo and all the dependencies mentioned here are nested dependencies of
react-scripts
The
tar
module for example is used herereact-scripts > terser-webpack-plugin > cacache > tar
Being able to see the module path would make it easier to figure out if we need to prioritize fixing this or ignoring it if it doesn't fit our use-case.
Right now, I have to run
npm audit
again after looking at the UI.Also, I understand that a package may have more than one path, particularly when there are vulnerabilities in packages used by a lot of other packages. Maybe it can be present in the following manner:
I'll be happy to contribute to an MR for this as well if it's possible with npm.
Please let me know, thanks!
Beta Was this translation helpful? Give feedback.
All reactions