diff options
author | Gar <gar+gh@danger.computer> | 2021-03-23 20:28:37 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-03-24 20:27:01 +0300 |
commit | 98efadeb4b2ae9289f14ed6f42a169230faf7239 (patch) | |
tree | 0ed581cd1b0c649364655d4d893962db7e0fcb00 /tap-snapshots | |
parent | 0379eab698b78ae4aa89bbe2043607f420e52f11 (diff) |
fix(audit-level): add `info` audit level
This is a valid level but wasn't configured to be allowed.
Also added this param to the usage output for `npm audit`
PR-URL: https://github.com/npm/cli/pull/2923
Credit: @wraithgar
Close: #2923
Reviewed-by: @ruyadorno
Diffstat (limited to 'tap-snapshots')
-rw-r--r-- | tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js | 2 | ||||
-rw-r--r-- | tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js b/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js index 8af8c1edd..cfb34dfad 100644 --- a/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js +++ b/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js @@ -64,7 +64,7 @@ registry and all registries configured for scopes. See the documentation for #### \`audit-level\` * Default: null -* Type: "low", "moderate", "high", "critical", "none", or null +* Type: "info", "low", "moderate", "high", "critical", "none", or null The minimum level of vulnerability for \`npm audit\` to exit with a non-zero exit code. diff --git a/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js b/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js index 260e2ab8f..5a860bd2e 100644 --- a/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js +++ b/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js @@ -204,7 +204,7 @@ All commands: npm audit [fix] Options: - [--dry-run] [-f|--force] [--json] [--package-lock-only] [--production] + [--audit-level <info|low|moderate|high|critical|none>] [--dry-run] [-f|--force] [--json] [--package-lock-only] [--production] Run "npm help audit" for more info |