@npmcli/config
Advanced tools
Comparing version 8.3.0 to 8.3.1
@@ -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 @@ }, |
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
133004
3563
17