Skip to content

Commit

Permalink
deps: @npmcli/config@2.4.0 (#4228)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyadorno committed Jan 10, 2022
1 parent 3b93654 commit 5a87d19
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
14 changes: 14 additions & 0 deletions node_modules/@npmcli/config/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,20 @@ class Config {
}
}

// Returns true if the value is coming directly from the source defined
// in default definitions, if the current value for the key config is
// coming from any other different source, returns false
isDefault (key) {
const [defaultType, ...types] = [...confTypes]
const defaultData = this.data.get(defaultType).data

return hasOwnProperty(defaultData, key)
&& types.every(type => {
const typeData = this.data.get(type).data
return !hasOwnProperty(typeData, key)
})
}

invalidHandler (k, val, type, source, where) {
this.log.warn(
'invalid config',
Expand Down
2 changes: 1 addition & 1 deletion node_modules/@npmcli/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/config",
"version": "2.3.2",
"version": "2.4.0",
"files": [
"lib"
],
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"@isaacs/string-locale-compare": "^1.1.0",
"@npmcli/arborist": "^4.2.0",
"@npmcli/ci-detect": "^1.4.0",
"@npmcli/config": "^2.3.2",
"@npmcli/config": "^2.4.0",
"@npmcli/map-workspaces": "^2.0.0",
"@npmcli/package-json": "^1.0.1",
"@npmcli/run-script": "^2.0.0",
Expand Down Expand Up @@ -812,9 +812,9 @@
"inBundle": true
},
"node_modules/@npmcli/config": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.2.tgz",
"integrity": "sha512-2/9dj143BFgQR8qxJbYptd8k+4+Po2uHYq3H6498ynZcRu4LrsDlngov5HGrvo2+f0pe0fBJwDEP2rRtaW8bkw==",
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.4.0.tgz",
"integrity": "sha512-fwxu/zaZnvBJohXM3igzqa3P1IVYWi5N343XcKvKkJbAx+rTqegS5tAul4NLiMPQh6WoS5a4er6oo/ieUx1f4g==",
"inBundle": true,
"dependencies": {
"ini": "^2.0.0",
Expand Down Expand Up @@ -11411,9 +11411,9 @@
"integrity": "sha512-3BGrt6FLjqM6br5AhWRKTr3u5GIVkjRYeAFrMp3HjnfICrg4xOrVRwFavKT6tsp++bq5dluL5t8ME/Nha/6c1Q=="
},
"@npmcli/config": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.2.tgz",
"integrity": "sha512-2/9dj143BFgQR8qxJbYptd8k+4+Po2uHYq3H6498ynZcRu4LrsDlngov5HGrvo2+f0pe0fBJwDEP2rRtaW8bkw==",
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.4.0.tgz",
"integrity": "sha512-fwxu/zaZnvBJohXM3igzqa3P1IVYWi5N343XcKvKkJbAx+rTqegS5tAul4NLiMPQh6WoS5a4er6oo/ieUx1f4g==",
"requires": {
"ini": "^2.0.0",
"mkdirp-infer-owner": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@isaacs/string-locale-compare": "^1.1.0",
"@npmcli/arborist": "^4.2.0",
"@npmcli/ci-detect": "^1.4.0",
"@npmcli/config": "^2.3.2",
"@npmcli/config": "^2.4.0",
"@npmcli/map-workspaces": "^2.0.0",
"@npmcli/package-json": "^1.0.1",
"@npmcli/run-script": "^2.0.0",
Expand Down

0 comments on commit 5a87d19

Please sign in to comment.