@npmcli/config 10.4.3 → 10.4.4

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.
Files changed (2) hide show
  1. package/lib/index.js +8 -2
  2. package/package.json +2 -2
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.4",
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"