@npmcli/config 10.4.4 → 10.5.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.
@@ -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
  }),
@@ -71,10 +71,18 @@ const nerfDarts = [
71
71
  'username', // Does not have a config
72
72
  ]
73
73
 
74
+ const proxyEnv = [
75
+ 'http_proxy',
76
+ 'https_proxy',
77
+ 'proxy',
78
+ 'no_proxy',
79
+ ]
80
+
74
81
  module.exports = {
75
82
  defaults: definitionProps.defaults,
76
83
  definitions,
77
84
  flatten,
78
85
  nerfDarts,
86
+ proxyEnv,
79
87
  shorthands,
80
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/config",
3
- "version": "10.4.4",
3
+ "version": "10.5.0",
4
4
  "files": [
5
5
  "bin/",
6
6
  "lib/"