Comparing version 2.5.0 to 2.5.1
@@ -6,9 +6,9 @@ const npmAuditer = require('./npm-auditer'); | ||
const auditor = pm === 'npm' ? npmAuditer : yarnAuditer; | ||
const RETRY_ERROR_MSG = { | ||
npm: `${ | ||
config.registry | ||
? `npm ERR! audit Your configured registry (${config.registry}) ` | ||
: '' | ||
}does not support audit requests`, | ||
const PARTIAL_RETRY_ERROR_MSG = { | ||
// The three ENOAUDIT error messages for NPM are: | ||
// `Either your login credentials are invalid or your registry (${opts.registry}) does not support audit.` | ||
// `Your configured registry (${opts.registry}) does not support audit requests.` | ||
// `Your configured registry (${opts.registry}) may not support audit requests, or the audit endpoint may be temporarily unavailable.` | ||
// Between them, all three use the phrasing 'not support audit'. | ||
npm: `not support audit`, | ||
yarn: '503 Service Unavailable', | ||
@@ -23,3 +23,3 @@ }; | ||
message && | ||
message.includes(RETRY_ERROR_MSG[pm]) | ||
message.includes(PARTIAL_RETRY_ERROR_MSG[pm]) | ||
) { | ||
@@ -29,3 +29,6 @@ console.log('RETRY-RETRY'); | ||
} | ||
if (config['pass-enoaudit'] && message.includes(RETRY_ERROR_MSG[pm])) { | ||
if ( | ||
config['pass-enoaudit'] && | ||
message.includes(PARTIAL_RETRY_ERROR_MSG[pm]) | ||
) { | ||
console.warn( | ||
@@ -32,0 +35,0 @@ '\x1b[33m%s\x1b[0m', |
{ | ||
"name": "audit-ci", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Audits npm and yarn projects in CI environments", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43205
662