From 98efadeb4b2ae9289f14ed6f42a169230faf7239 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 23 Mar 2021 10:28:37 -0700 Subject: 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 --- tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js | 2 +- tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tap-snapshots') 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 ] [--dry-run] [-f|--force] [--json] [--package-lock-only] [--production] Run "npm help audit" for more info -- cgit v1.2.3