Skip to content

Commit 5a87d19

Browse files
authored
deps: @npmcli/[email protected] (#4228)
1 parent 3b93654 commit 5a87d19

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

node_modules/@npmcli/config/lib/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,20 @@ class Config {
401401
}
402402
}
403403

404+
// Returns true if the value is coming directly from the source defined
405+
// in default definitions, if the current value for the key config is
406+
// coming from any other different source, returns false
407+
isDefault (key) {
408+
const [defaultType, ...types] = [...confTypes]
409+
const defaultData = this.data.get(defaultType).data
410+
411+
return hasOwnProperty(defaultData, key)
412+
&& types.every(type => {
413+
const typeData = this.data.get(type).data
414+
return !hasOwnProperty(typeData, key)
415+
})
416+
}
417+
404418
invalidHandler (k, val, type, source, where) {
405419
this.log.warn(
406420
'invalid config',

node_modules/@npmcli/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/config",
3-
"version": "2.3.2",
3+
"version": "2.4.0",
44
"files": [
55
"lib"
66
],

package-lock.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"@isaacs/string-locale-compare": "^1.1.0",
9090
"@npmcli/arborist": "^4.2.0",
9191
"@npmcli/ci-detect": "^1.4.0",
92-
"@npmcli/config": "^2.3.2",
92+
"@npmcli/config": "^2.4.0",
9393
"@npmcli/map-workspaces": "^2.0.0",
9494
"@npmcli/package-json": "^1.0.1",
9595
"@npmcli/run-script": "^2.0.0",
@@ -812,9 +812,9 @@
812812
"inBundle": true
813813
},
814814
"node_modules/@npmcli/config": {
815-
"version": "2.3.2",
816-
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.2.tgz",
817-
"integrity": "sha512-2/9dj143BFgQR8qxJbYptd8k+4+Po2uHYq3H6498ynZcRu4LrsDlngov5HGrvo2+f0pe0fBJwDEP2rRtaW8bkw==",
815+
"version": "2.4.0",
816+
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.4.0.tgz",
817+
"integrity": "sha512-fwxu/zaZnvBJohXM3igzqa3P1IVYWi5N343XcKvKkJbAx+rTqegS5tAul4NLiMPQh6WoS5a4er6oo/ieUx1f4g==",
818818
"inBundle": true,
819819
"dependencies": {
820820
"ini": "^2.0.0",
@@ -11411,9 +11411,9 @@
1141111411
"integrity": "sha512-3BGrt6FLjqM6br5AhWRKTr3u5GIVkjRYeAFrMp3HjnfICrg4xOrVRwFavKT6tsp++bq5dluL5t8ME/Nha/6c1Q=="
1141211412
},
1141311413
"@npmcli/config": {
11414-
"version": "2.3.2",
11415-
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.2.tgz",
11416-
"integrity": "sha512-2/9dj143BFgQR8qxJbYptd8k+4+Po2uHYq3H6498ynZcRu4LrsDlngov5HGrvo2+f0pe0fBJwDEP2rRtaW8bkw==",
11414+
"version": "2.4.0",
11415+
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.4.0.tgz",
11416+
"integrity": "sha512-fwxu/zaZnvBJohXM3igzqa3P1IVYWi5N343XcKvKkJbAx+rTqegS5tAul4NLiMPQh6WoS5a4er6oo/ieUx1f4g==",
1141711417
"requires": {
1141811418
"ini": "^2.0.0",
1141911419
"mkdirp-infer-owner": "^2.0.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@isaacs/string-locale-compare": "^1.1.0",
5858
"@npmcli/arborist": "^4.2.0",
5959
"@npmcli/ci-detect": "^1.4.0",
60-
"@npmcli/config": "^2.3.2",
60+
"@npmcli/config": "^2.4.0",
6161
"@npmcli/map-workspaces": "^2.0.0",
6262
"@npmcli/package-json": "^1.0.1",
6363
"@npmcli/run-script": "^2.0.0",

0 commit comments

Comments
 (0)