Socket
Socket
Sign inDemoInstall

@npmcli/config

Package Overview
Dependencies
Maintainers
6
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/config - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

14

lib/index.js

@@ -375,5 +375,13 @@ // TODO: set the scope config from package.json or explicit cli config

const mustBe = typeDescription(type)
const msg = 'Must be' + (mustBe.length > 1 ? ' one of:' : '')
const desc = mustBe.length === 1 ? mustBe[0] : mustBe
const typeDesc = typeDescription(type)
const oneOrMore = typeDesc.indexOf(Array) !== -1
const mustBe = typeDesc
.filter(m => m !== undefined && m !== Array)
const oneOf = mustBe.length === 1 && oneOrMore ? ' one or more'
: mustBe.length > 1 && oneOrMore ? ' one or more of:'
: mustBe.length > 1 ? ' one of:'
: ''
const msg = 'Must be' + oneOf
const desc = mustBe.length === 1 ? mustBe[0]
: mustBe.filter(m => m !== Array).join(', ')
this.log.warn('invalid config', msg, desc)

@@ -380,0 +388,0 @@ }

{
"name": "@npmcli/config",
"version": "1.1.1",
"version": "1.1.2",
"files": [

@@ -5,0 +5,0 @@ "lib"

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