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 4.2.0 to 4.2.1

16

lib/index.js

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

this.setCredentialsByURI(reg, creds)
// eslint-disable-next-line no-empty
} catch (_) {}

@@ -370,5 +371,7 @@ process.emit('timeEnd', 'config:load:credentials')

}
const key = envKey.slice('npm_config_'.length)
.replace(/(?!^)_/g, '-') // don't replace _ at the start of the key
.toLowerCase()
let key = envKey.slice('npm_config_'.length)
if (!key.startsWith('//')) { // don't normalize nerf-darted keys
key = key.replace(/(?!^)_/g, '-') // don't replace _ at the start of the key
.toLowerCase()
}
conf[key] = envVal

@@ -659,2 +662,3 @@ }

this.setCredentialsByURI(reg, creds)
// eslint-disable-next-line no-empty
} catch (_) {}

@@ -697,4 +701,2 @@ }

}
this.delete(`${nerfed}:-authtoken`, 'user')
this.delete(`${nerfed}:_authtoken`, 'user')
this.delete(`${nerfed}:_authToken`, 'user')

@@ -739,4 +741,2 @@ this.delete(`${nerfed}:_auth`, 'user')

this.delete(`${nerfed}:-authtoken`, 'user')
this.delete(`${nerfed}:_authtoken`, 'user')
this.delete(`${nerfed}:email`, 'user')

@@ -789,4 +789,2 @@ if (certfile && keyfile) {

const tokenReg = this.get(`${nerfed}:_authToken`) ||
this.get(`${nerfed}:_authtoken`) ||
this.get(`${nerfed}:-authtoken`) ||
nerfed === nerfDart(this.get('registry')) && this.get('_authToken')

@@ -793,0 +791,0 @@

{
"name": "@npmcli/config",
"version": "4.2.0",
"version": "4.2.1",
"files": [

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

"mkdirp-infer-owner": "^2.0.0",
"nopt": "^5.0.0",
"nopt": "^6.0.0",
"proc-log": "^2.0.0",

@@ -44,0 +44,0 @@ "read-package-json-fast": "^2.0.3",

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