@npmcli/config 10.4.3 → 10.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1442,11 +1442,9 @@ const definitions = {
1442
1442
  orgs: new Definition('orgs', {
1443
1443
  default: null,
1444
1444
  type: [null, String, Array],
1445
- hint: '<org1,org2>',
1446
1445
  description: `
1447
1446
  When creating a Granular Access Token with \`npm token create\`,
1448
- this limits the token access to specific organizations. Provide
1449
- a comma-separated list of organization names.
1447
+ this limits the token access to specific organizations.
1450
1448
  `,
1451
1449
  flatten,
1452
1450
  }),
@@ -1549,11 +1547,9 @@ const definitions = {
1549
1547
  packages: new Definition('packages', {
1550
1548
  default: [],
1551
1549
  type: [null, String, Array],
1552
- hint: '<pkg1,pkg2>',
1553
1550
  description: `
1554
1551
  When creating a Granular Access Token with \`npm token create\`,
1555
- this limits the token access to specific packages. Provide
1556
- a comma-separated list of package names.
1552
+ this limits the token access to specific packages.
1557
1553
  `,
1558
1554
  flatten,
1559
1555
  }),
@@ -1955,11 +1951,10 @@ const definitions = {
1955
1951
  scopes: new Definition('scopes', {
1956
1952
  default: null,
1957
1953
  type: [null, String, Array],
1958
- hint: '<@scope1,@scope2>',
1959
1954
  description: `
1960
1955
  When creating a Granular Access Token with \`npm token create\`,
1961
1956
  this limits the token access to specific scopes. Provide
1962
- a comma-separated list of scope names (with or without @ prefix).
1957
+ a scope name (with or without @ prefix).
1963
1958
  `,
1964
1959
  flatten,
1965
1960
  }),
package/lib/index.js CHANGED
@@ -132,15 +132,21 @@ class Config {
132
132
 
133
133
  this.sources = new Map([])
134
134
 
135
- this.list = []
136
135
  for (const { data } of this.data.values()) {
137
136
  this.list.unshift(data)
138
137
  }
139
- Object.freeze(this.list)
140
138
 
141
139
  this.#loaded = false
142
140
  }
143
141
 
142
+ get list () {
143
+ const list = []
144
+ for (const { data } of this.data.values()) {
145
+ list.unshift(data)
146
+ }
147
+ return list
148
+ }
149
+
144
150
  get loaded () {
145
151
  return this.#loaded
146
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/config",
3
- "version": "10.4.3",
3
+ "version": "10.4.5",
4
4
  "files": [
5
5
  "bin/",
6
6
  "lib/"
@@ -41,7 +41,7 @@
41
41
  "@npmcli/package-json": "^7.0.0",
42
42
  "ci-info": "^4.0.0",
43
43
  "ini": "^6.0.0",
44
- "nopt": "^8.1.0",
44
+ "nopt": "^9.0.0",
45
45
  "proc-log": "^6.0.0",
46
46
  "semver": "^7.3.5",
47
47
  "walk-up-path": "^4.0.0"