Closed shockey closed 4 years ago
Uhhggg... Yeah, I was hoping to avoid this situation. I will have to see if I can switch over to streaming processing of the results since trying to process the entire result will be problematic. It may take a while before I have time to address this.
Thanks for reporting the issue.
I'm looking into using JSONStream and JSONPath filtering so that the application can handle arbitrarily large JSON data. You'll be able to see that work in the Issue-51-_-Handle_large_json_response
as it progresses.
Could you try out the branch Issue-51-_-Handle_large_json_response
and let me know if it meets your needs?
git clone --single-branch --branch Issue-51-_-Handle_large_json_response https://github.com/InfoSec812/npm-audit-ci-wrapper.git
cd npm-audit-ci-wrapper
npm install
npm link
@shockey As soon as you can confirm that this works for you, I will merge/tag/release.
@shockey Bump... Any feedback on this?
@InfoSec812 sorry for the delay here — looks good on my end!
output:
➜ nr security-audit:prod
> swagger-client@3.10.0 security-audit:prod /Users/kyle/Code/swagger-api/js
> npm-audit-ci-wrapper -p -t low
The following production vulnerabilities are low severity or higher:
┌────────────────┬──────────┬───────────────────────────────────────┐
│ module │ severity │ overview │
├────────────────┼──────────┼───────────────────────────────────────┤
│ minimist@0.0.8 │ low │ https://www.npmjs.com/advisories/1179 │
├────────────────┼──────────┼───────────────────────────────────────┤
│ kind-of@6.0.2 │ low │ https://www.npmjs.com/advisories/1490 │
└────────────────┴──────────┴───────────────────────────────────────┘
underlying npm audit
metadata:
➜ npm audit --json | jq '.metadata'
{
"vulnerabilities": {
"info": 0,
"low": 27714,
"moderate": 0,
"high": 0,
"critical": 0
},
"dependencies": 41,
"devDependencies": 1377709,
"optionalDependencies": 14769,
"totalDependencies": 1377750
}
Awesome @shockey, I'll get this merged and released.
I have a project which currently has a ton (27,714) of vulnerabilities. It seems that
npm-audit-ci-wrapper
can't handle that much information coming from npm:Versions
Attachments
npm audit --json
output: swagger-client-npm-audit-2020-03-22-190120.json.zip