Skip to content

Commit c779aac

Browse files
committed
deps: upgrade npm to 9.0.1
1 parent 9fb612e commit c779aac

File tree

712 files changed

+39053
-31426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

712 files changed

+39053
-31426
lines changed

deps/npm/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
One of the following versions of [Node.js](https://nodejs.org/en/download/) must be installed to run **`npm`**:
1111

12-
* `12.x.x` >= `12.13.0`
13-
* `14.x.x` >= `14.15.0`
14-
* `16.0.0` or higher
12+
* `14.x.x` >= `14.17.0`
13+
* `16.x.x` >= `16.13.0`
14+
* `18.0.0` or higher
1515

1616
### Installation
1717

deps/npm/docs/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# docs
2+
3+
[![CI - docs](https://github.com/npm/cli/actions/workflows/ci-docs.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci-docs.yml)
4+
5+
Scripts to build the npm docs.

deps/npm/docs/content/commands/npm-access.md

+18-28
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,16 @@ description: Set access level on published packages
66

77
### Synopsis
88

9-
<!-- AUTOGENERATED USAGE DESCRIPTIONS START -->
10-
<!-- automatically generated, do not edit manually -->
11-
<!-- see lib/commands/access.js -->
12-
139
```bash
14-
npm access public [<package>]
15-
npm access restricted [<package>]
10+
npm access list packages [<user>|<scope>|<scope:team> [<package>]
11+
npm access list collaborators [<package> [<user>]]
12+
npm access get status [<package>]
13+
npm access set status=public|private [<package>]
14+
npm access set mfa=none|publish|automation [<package>]
1615
npm access grant <read-only|read-write> <scope:team> [<package>]
1716
npm access revoke <scope:team> [<package>]
18-
npm access 2fa-required [<package>]
19-
npm access 2fa-not-required [<package>]
20-
npm access ls-packages [<user>|<scope>|<scope:team>]
21-
npm access ls-collaborators [<package> [<user>]]
22-
npm access edit [<package>]
2317
```
2418
25-
<!-- automatically generated, do not edit manually -->
26-
<!-- see lib/commands/access.js -->
27-
28-
<!-- AUTOGENERATED USAGE DESCRIPTIONS END -->
29-
3019
### Description
3120
3221
Used to set access controls on private packages.
@@ -88,18 +77,17 @@ Management of teams and team memberships is done with the `npm team` command.
8877
8978
### Configuration
9079
91-
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
92-
<!-- automatically generated, do not edit manually -->
93-
<!-- see lib/utils/config/definitions.js -->
94-
#### `registry`
80+
#### `json`
9581
96-
* Default: "https://registry.npmjs.org/"
97-
* Type: URL
82+
* Default: false
83+
* Type: Boolean
9884
99-
The base URL of the npm registry.
85+
Whether or not to output JSON data, rather than the normal output.
10086
101-
<!-- automatically generated, do not edit manually -->
102-
<!-- see lib/utils/config/definitions.js -->
87+
* In `npm pkg set` it enables parsing set values with JSON.parse() before
88+
saving them to your `package.json`.
89+
90+
Not supported by all npm commands.
10391
10492
#### `otp`
10593
@@ -112,10 +100,12 @@ when publishing or changing package permissions with `npm access`.
112100
If not set, and a registry response fails with a challenge for a one-time
113101
password, npm will prompt on the command line for one.
114102
115-
<!-- automatically generated, do not edit manually -->
116-
<!-- see lib/utils/config/definitions.js -->
103+
#### `registry`
104+
105+
* Default: "https://registry.npmjs.org/"
106+
* Type: URL
117107
118-
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
108+
The base URL of the npm registry.
119109
120110
### See Also
121111

deps/npm/docs/content/commands/npm-adduser.md

+8-44
Original file line numberDiff line numberDiff line change
@@ -6,57 +6,32 @@ description: Add a registry user account
66

77
### Synopsis
88

9-
<!-- AUTOGENERATED USAGE DESCRIPTIONS START -->
10-
<!-- automatically generated, do not edit manually -->
11-
<!-- see lib/commands/adduser.js -->
12-
139
```bash
1410
npm adduser
1511

16-
aliases: login, add-user
12+
alias: add-user
1713
```
1814

19-
<!-- automatically generated, do not edit manually -->
20-
<!-- see lib/commands/adduser.js -->
21-
22-
<!-- AUTOGENERATED USAGE DESCRIPTIONS END -->
23-
2415
Note: This command is unaware of workspaces.
2516

2617
### Description
2718

28-
Create or verify a user named `<username>` in the specified registry, and
29-
save the credentials to the `.npmrc` file. If no registry is specified,
30-
the default registry will be used (see [`config`](/using-npm/config)).
31-
32-
The username, password, and email are read in from prompts.
33-
34-
To reset your password, go to <https://www.npmjs.com/forgot>
35-
36-
To change your email address, go to <https://www.npmjs.com/email-edit>
19+
Create a new user in the specified registry, and save the credentials to
20+
the `.npmrc` file. If no registry is specified, the default registry
21+
will be used (see [`registry`](/using-npm/registry)).
3722

38-
You may use this command multiple times with the same user account to
39-
authorize on a new machine. When authenticating on a new machine,
40-
the username, password and email address must all match with
41-
your existing record.
42-
43-
`npm login` is an alias to `adduser` and behaves exactly the same way.
23+
When using `legacy` for your `auth-type`, the username, password, and
24+
email are read in from prompts.
4425

4526
### Configuration
4627

47-
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
48-
<!-- automatically generated, do not edit manually -->
49-
<!-- see lib/utils/config/definitions.js -->
5028
#### `registry`
5129

5230
* Default: "https://registry.npmjs.org/"
5331
* Type: URL
5432

5533
The base URL of the npm registry.
5634

57-
<!-- automatically generated, do not edit manually -->
58-
<!-- see lib/utils/config/definitions.js -->
59-
6035
#### `scope`
6136

6237
* Default: the scope of the current project, if any, or ""
@@ -87,24 +62,13 @@ npm init --scope=@foo --yes
8762
```
8863

8964

90-
<!-- automatically generated, do not edit manually -->
91-
<!-- see lib/utils/config/definitions.js -->
92-
9365
#### `auth-type`
9466

95-
* Default: "legacy"
96-
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
97-
98-
NOTE: auth-type values "sso", "saml", "oauth", and "webauthn" will be
99-
removed in a future version.
67+
* Default: "web"
68+
* Type: "legacy" or "web"
10069

10170
What authentication strategy to use with `login`.
10271

103-
<!-- automatically generated, do not edit manually -->
104-
<!-- see lib/utils/config/definitions.js -->
105-
106-
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
107-
10872
### See Also
10973

11074
* [npm registry](/using-npm/registry)

deps/npm/docs/content/commands/npm-audit.md

+8-58
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,10 @@ description: Run a security audit
66

77
### Synopsis
88

9-
<!-- AUTOGENERATED USAGE DESCRIPTIONS START -->
10-
<!-- automatically generated, do not edit manually -->
11-
<!-- see lib/commands/audit.js -->
12-
139
```bash
1410
npm audit [fix|signatures]
1511
```
1612

17-
<!-- automatically generated, do not edit manually -->
18-
<!-- see lib/commands/audit.js -->
19-
20-
<!-- AUTOGENERATED USAGE DESCRIPTIONS END -->
21-
2213
### Description
2314

2415
The audit command submits a description of the dependencies configured in
@@ -109,9 +100,9 @@ the path `/-/npm/v1/security/advisories/bulk`.
109100

110101
Any packages in the tree that do not have a `version` field in their
111102
package.json file will be ignored. If any `--omit` options are specified
112-
(either via the `--omit` config, or one of the shorthands such as
113-
`--production`, `--only=dev`, and so on), then packages will be omitted
114-
from the submitted payload as appropriate.
103+
(either via the [`--omit` config](/using-npm/config#omit), or one of the
104+
shorthands such as `--production`, `--only=dev`, and so on), then packages will
105+
be omitted from the submitted payload as appropriate.
115106

116107
If the registry responds with an error, or with an invalid response, then
117108
npm will attempt to load advisory data from the `Quick Audit` endpoint.
@@ -188,7 +179,7 @@ vulnerabilities are found _or_ if the remediation is able to successfully
188179
fix all vulnerabilities.
189180

190181
If vulnerabilities were found the exit code will depend on the
191-
`audit-level` configuration setting.
182+
[`audit-level` config](/using-npm/config#audit-level).
192183

193184
### Examples
194185

@@ -247,9 +238,6 @@ $ npm audit --audit-level=moderate
247238

248239
### Configuration
249240

250-
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
251-
<!-- automatically generated, do not edit manually -->
252-
<!-- see lib/utils/config/definitions.js -->
253241
#### `audit-level`
254242

255243
* Default: null
@@ -258,9 +246,6 @@ $ npm audit --audit-level=moderate
258246
The minimum level of vulnerability for `npm audit` to exit with a non-zero
259247
exit code.
260248

261-
<!-- automatically generated, do not edit manually -->
262-
<!-- see lib/utils/config/definitions.js -->
263-
264249
#### `dry-run`
265250

266251
* Default: false
@@ -274,9 +259,6 @@ commands that modify your local installation, eg, `install`, `update`,
274259
Note: This is NOT honored by other network related commands, eg `dist-tags`,
275260
`owner`, etc.
276261

277-
<!-- automatically generated, do not edit manually -->
278-
<!-- see lib/utils/config/definitions.js -->
279-
280262
#### `force`
281263

282264
* Default: false
@@ -303,9 +285,6 @@ mistakes, unnecessary performance degradation, and malicious input.
303285
If you don't have a clear idea of what you want to do, it is strongly
304286
recommended that you do not use this option!
305287

306-
<!-- automatically generated, do not edit manually -->
307-
<!-- see lib/utils/config/definitions.js -->
308-
309288
#### `json`
310289

311290
* Default: false
@@ -318,9 +297,6 @@ Whether or not to output JSON data, rather than the normal output.
318297

319298
Not supported by all npm commands.
320299

321-
<!-- automatically generated, do not edit manually -->
322-
<!-- see lib/utils/config/definitions.js -->
323-
324300
#### `package-lock-only`
325301

326302
* Default: false
@@ -335,9 +311,6 @@ instead of checking `node_modules` and downloading dependencies.
335311
For `list` this means the output will be based on the tree described by the
336312
`package-lock.json`, rather than the contents of `node_modules`.
337313

338-
<!-- automatically generated, do not edit manually -->
339-
<!-- see lib/utils/config/definitions.js -->
340-
341314
#### `omit`
342315

343316
* Default: 'dev' if the `NODE_ENV` environment variable is set to
@@ -356,9 +329,6 @@ it will be included.
356329
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
357330
variable will be set to `'production'` for all lifecycle scripts.
358331

359-
<!-- automatically generated, do not edit manually -->
360-
<!-- see lib/utils/config/definitions.js -->
361-
362332
#### `foreground-scripts`
363333

364334
* Default: false
@@ -371,9 +341,6 @@ input, output, and error with the main npm process.
371341
Note that this will generally make installs run slower, and be much noisier,
372342
but can be useful for debugging.
373343

374-
<!-- automatically generated, do not edit manually -->
375-
<!-- see lib/utils/config/definitions.js -->
376-
377344
#### `ignore-scripts`
378345

379346
* Default: false
@@ -386,9 +353,6 @@ Note that commands explicitly intended to run a particular script, such as
386353
will still run their intended script if `ignore-scripts` is set, but they
387354
will *not* run any pre- or post-scripts.
388355

389-
<!-- automatically generated, do not edit manually -->
390-
<!-- see lib/utils/config/definitions.js -->
391-
392356
#### `workspace`
393357

394358
* Default:
@@ -411,9 +375,6 @@ brand new workspace within the project.
411375

412376
This value is not exported to the environment for child processes.
413377

414-
<!-- automatically generated, do not edit manually -->
415-
<!-- see lib/utils/config/definitions.js -->
416-
417378
#### `workspaces`
418379

419380
* Default: null
@@ -432,9 +393,6 @@ _unless_ one or more workspaces are specified in the `workspace` config.
432393

433394
This value is not exported to the environment for child processes.
434395

435-
<!-- automatically generated, do not edit manually -->
436-
<!-- see lib/utils/config/definitions.js -->
437-
438396
#### `include-workspace-root`
439397

440398
* Default: false
@@ -448,22 +406,14 @@ the specified workspaces, and not on the root project.
448406

449407
This value is not exported to the environment for child processes.
450408

451-
<!-- automatically generated, do not edit manually -->
452-
<!-- see lib/utils/config/definitions.js -->
453-
454409
#### `install-links`
455410

456-
* Default: false
411+
* Default: true
457412
* Type: Boolean
458413

459-
When set file: protocol dependencies that exist outside of the project root
460-
will be packed and installed as regular dependencies instead of creating a
461-
symlink. This option has no effect on workspaces.
462-
463-
<!-- automatically generated, do not edit manually -->
464-
<!-- see lib/utils/config/definitions.js -->
465-
466-
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
414+
When set file: protocol dependencies will be packed and installed as regular
415+
dependencies instead of creating a symlink. This option has no effect on
416+
workspaces.
467417

468418
### See Also
469419

0 commit comments

Comments
 (0)