Socket
Socket
Sign inDemoInstall

audit-ci

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audit-ci - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

21

lib/audit.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc