@npmcli/config
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -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", |
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
48538
1078
+ Addednopt@6.0.0(transitive)
- Removednopt@5.0.0(transitive)
Updatednopt@^6.0.0