@npmcli/config 10.8.0 → 10.9.0
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.
|
@@ -187,6 +187,36 @@ const definitions = {
|
|
|
187
187
|
`,
|
|
188
188
|
flatten,
|
|
189
189
|
}),
|
|
190
|
+
'allow-directory': new Definition('allow-directory', {
|
|
191
|
+
default: 'all',
|
|
192
|
+
type: ['all', 'none', 'root'],
|
|
193
|
+
description: `
|
|
194
|
+
Limits the ability for npm to install dependencies from directories.
|
|
195
|
+
That is, dependencies that point to a directory instead of a version or semver range.
|
|
196
|
+
Please note that this could leave your tree incomplete and some packages may not function as intended or designed.
|
|
197
|
+
Changing this setting will not remove dependencies that are already installed.
|
|
198
|
+
|
|
199
|
+
\`all\` allows any directories to be installed.
|
|
200
|
+
\`none\` prevents any directories from being installed.
|
|
201
|
+
\`root\` only allows directories defined in your project's package.json to be installed. Also allows directory dependencies to be used for other commands like \`npm view\`
|
|
202
|
+
`,
|
|
203
|
+
flatten,
|
|
204
|
+
}),
|
|
205
|
+
'allow-file': new Definition('allow-file', {
|
|
206
|
+
default: 'all',
|
|
207
|
+
type: ['all', 'none', 'root'],
|
|
208
|
+
description: `
|
|
209
|
+
Limits the ability for npm to install dependencies from tarball files.
|
|
210
|
+
That is, dependencies that point to a local tarball file instead of a version or semver range.
|
|
211
|
+
Please note that this could leave your tree incomplete and some packages may not function as intended or designed.
|
|
212
|
+
Changing this setting will not remove dependencies that are already installed.
|
|
213
|
+
|
|
214
|
+
\`all\` allows any tarball file to be installed.
|
|
215
|
+
\`none\` prevents any tarball file from being installed.
|
|
216
|
+
\`root\` only allows tarball files defined in your project's package.json to be installed. Also allows tarball file dependencies to be used for other commands like \`npm view\`
|
|
217
|
+
`,
|
|
218
|
+
flatten,
|
|
219
|
+
}),
|
|
190
220
|
'allow-git': new Definition('allow-git', {
|
|
191
221
|
default: 'all',
|
|
192
222
|
type: ['all', 'none', 'root'],
|
|
@@ -194,10 +224,26 @@ const definitions = {
|
|
|
194
224
|
Limits the ability for npm to fetch dependencies from git references.
|
|
195
225
|
That is, dependencies that point to a git repo instead of a version or semver range.
|
|
196
226
|
Please note that this could leave your tree incomplete and some packages may not function as intended or designed.
|
|
227
|
+
Changing this setting will not remove dependencies that are already installed.
|
|
197
228
|
|
|
198
229
|
\`all\` allows any git dependencies to be fetched and installed.
|
|
199
230
|
\`none\` prevents any git dependencies from being fetched and installed.
|
|
200
|
-
\`root\` only allows git dependencies defined in your project's package.json to be fetched installed. Also allows git dependencies to be fetched for other commands like \`npm view\`
|
|
231
|
+
\`root\` only allows git dependencies defined in your project's package.json to be fetched and installed. Also allows git dependencies to be fetched for other commands like \`npm view\`
|
|
232
|
+
`,
|
|
233
|
+
flatten,
|
|
234
|
+
}),
|
|
235
|
+
'allow-remote': new Definition('allow-remote', {
|
|
236
|
+
default: 'all',
|
|
237
|
+
type: ['all', 'none', 'root'],
|
|
238
|
+
description: `
|
|
239
|
+
Limits the ability for npm to fetch dependencies from urls.
|
|
240
|
+
That is, dependencies that point to a tarball url instead of a version or semver range.
|
|
241
|
+
Please note that this could leave your tree incomplete and some packages may not function as intended or designed.
|
|
242
|
+
Changing this setting will not remove dependencies that are already installed.
|
|
243
|
+
|
|
244
|
+
\`all\` allows any url to be installed.
|
|
245
|
+
\`none\` prevents any url from being installed.
|
|
246
|
+
\`root\` only allows urls defined in your project's package.json to be installed. Also allows url dependencies to be used for other commands like \`npm view\`
|
|
201
247
|
`,
|
|
202
248
|
flatten,
|
|
203
249
|
}),
|
|
@@ -1378,7 +1424,6 @@ const definitions = {
|
|
|
1378
1424
|
if (obj['min-release-age'] !== null) {
|
|
1379
1425
|
flatOptions.before = new Date(Date.now() - (86400000 * obj['min-release-age']))
|
|
1380
1426
|
obj.before = flatOptions.before
|
|
1381
|
-
delete obj['min-release-age']
|
|
1382
1427
|
}
|
|
1383
1428
|
},
|
|
1384
1429
|
}),
|
|
@@ -1624,7 +1669,6 @@ const definitions = {
|
|
|
1624
1669
|
'prefer-offline': new Definition('prefer-offline', {
|
|
1625
1670
|
default: false,
|
|
1626
1671
|
type: Boolean,
|
|
1627
|
-
exclusive: ['prefer-online'],
|
|
1628
1672
|
description: `
|
|
1629
1673
|
If true, staleness checks for cached data will be bypassed, but missing
|
|
1630
1674
|
data will be requested from the server. To force full offline mode, use
|
|
@@ -1635,7 +1679,6 @@ const definitions = {
|
|
|
1635
1679
|
'prefer-online': new Definition('prefer-online', {
|
|
1636
1680
|
default: false,
|
|
1637
1681
|
type: Boolean,
|
|
1638
|
-
exclusive: ['prefer-offline'],
|
|
1639
1682
|
description: `
|
|
1640
1683
|
If true, staleness checks for cached data will be forced, making the CLI
|
|
1641
1684
|
look for updates immediately even for fresh package data.
|