Socket
Socket
Sign inDemoInstall

@npmcli/config

Package Overview
Dependencies
Maintainers
5
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 8.3.0 to 8.3.1

11

lib/index.js

@@ -560,3 +560,3 @@ // TODO: set the scope config from package.json or explicit cli config

if (where !== 'default') {
this.#checkDeprecated(k, where, obj, [key, value])
this.#checkDeprecated(k)
if (this.definitions[key]?.exclusive) {

@@ -575,3 +575,3 @@ for (const exclusive of this.definitions[key].exclusive) {

#checkDeprecated (key, where, obj, kv) {
#checkDeprecated (key) {
// XXX(npm9+) make this throw an error

@@ -744,3 +744,3 @@ if (this.deprecated[key]) {

// ignore the unlink error (eg, if file doesn't exist)
await unlink(conf.source).catch(er => {})
await unlink(conf.source).catch(() => {})
return

@@ -780,8 +780,5 @@ }

setCredentialsByURI (uri, { token, username, password, email, certfile, keyfile }) {
setCredentialsByURI (uri, { token, username, password, certfile, keyfile }) {
const nerfed = nerfDart(uri)
// email is either provided, a top level key, or nothing
email = email || this.get('email', 'user')
// field that hasn't been used as documented for a LONG time,

@@ -788,0 +785,0 @@ // and as of npm 7.10.0, isn't used at all. We just always

{
"name": "@npmcli/config",
"version": "8.3.0",
"version": "8.3.1",
"files": [

@@ -12,3 +12,3 @@ "bin/",

"type": "git",
"url": "https://github.com/npm/cli.git",
"url": "git+https://github.com/npm/cli.git",
"directory": "workspaces/config"

@@ -15,0 +15,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc