Skip to content

Commit 0636f86

Browse files
npm-cli-bottargos
authored andcommitted
deps: upgrade npm to 8.13.1
PR-URL: #43552 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent bd91337 commit 0636f86

File tree

141 files changed

+1566
-612
lines changed

Some content is hidden

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

141 files changed

+1566
-612
lines changed

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ description: Manipulates packages cache
1111
<!-- see lib/commands/cache.js -->
1212

1313
```bash
14-
npm cache add <tarball file>
15-
npm cache add <folder>
16-
npm cache add <tarball url>
17-
npm cache add <git url>
18-
npm cache add <name>@<version>
14+
npm cache add <package-spec>
1915
npm cache clean [<key>]
2016
npm cache ls [<name>@<version>]
2117
npm cache verify
@@ -101,6 +97,7 @@ cache`](/commands/npm-cache)
10197

10298
### See Also
10399

100+
* [package spec](/using-npm/package-spec)
104101
* [npm folders](/configuring-npm/folders)
105102
* [npm config](/commands/npm-config)
106103
* [npmrc](/configuring-npm/npmrc)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ will *not* run any pre- or post-scripts.
133133
* Type: null or String
134134

135135
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
136-
init <pkg>` commands.
136+
init <package-spec>` commands.
137137

138138
<!-- automatically generated, do not edit manually -->
139139
<!-- see lib/utils/config/definitions.js -->

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Deprecate a version of a package
1111
<!-- see lib/commands/deprecate.js -->
1212

1313
```bash
14-
npm deprecate <pkg>[@<version>] <message>
14+
npm deprecate <package-spec> <message>
1515
```
1616

1717
<!-- automatically generated, do not edit manually -->
@@ -45,8 +45,8 @@ In this case, a version `[email protected]` will also be deprecated.
4545
You must be the package owner to deprecate something. See the `owner` and
4646
`adduser` help topics.
4747

48-
To un-deprecate a package, specify an empty string (`""`) for the `message`
49-
argument. Note that you must use double quotes with no space between them to
48+
To un-deprecate a package, specify an empty string (`""`) for the `message`
49+
argument. Note that you must use double quotes with no space between them to
5050
format an empty string.
5151

5252
### Configuration
@@ -82,6 +82,7 @@ password, npm will prompt on the command line for one.
8282

8383
### See Also
8484

85+
* [package spec](/using-npm/package-spec)
8586
* [npm publish](/commands/npm-publish)
8687
* [npm registry](/using-npm/registry)
8788
* [npm owner](/commands/npm-owner)

deps/npm/docs/content/commands/npm-dist-tag.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ description: Modify package distribution tags
1111
<!-- see lib/commands/dist-tag.js -->
1212

1313
```bash
14-
npm dist-tag add <pkg>@<version> [<tag>]
15-
npm dist-tag rm <pkg> <tag>
16-
npm dist-tag ls [<pkg>]
14+
npm dist-tag add <package-spec (with version)> [<tag>]
15+
npm dist-tag rm <package-spec> <tag>
16+
npm dist-tag ls [<package-spec>]
1717

1818
alias: dist-tags
1919
```
@@ -27,11 +27,11 @@ alias: dist-tags
2727

2828
Add, remove, and enumerate distribution tags on a package:
2929

30-
* add: Tags the specified version of the package with the specified tag, or
31-
the `--tag` config if not specified. If you have two-factor
32-
authentication on auth-and-writes then you’ll need to include a one-time
33-
password on the command line with `--otp <one-time password>`, or at the
34-
OTP prompt.
30+
* add: Tags the specified version of the package with the specified tag,
31+
or the `--tag` config if not specified. If you have two-factor
32+
authentication on auth-and-writes then you’ll need to include a
33+
one-time password on the command line with
34+
`--otp <one-time password>`, or at the OTP prompt.
3535

3636
* rm: Clear a tag that is no longer in use from the package. If you have
3737
two-factor authentication on auth-and-writes then you’ll need to include
@@ -168,6 +168,7 @@ This value is not exported to the environment for child processes.
168168

169169
### See Also
170170

171+
* [package spec](/using-npm/package-spec)
171172
* [npm publish](/commands/npm-publish)
172173
* [npm install](/commands/npm-install)
173174
* [npm dedupe](/commands/npm-dedupe)

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Explain installed packages
1111
<!-- see lib/commands/explain.js -->
1212

1313
```bash
14-
npm explain <folder | specifier>
14+
npm explain <package-spec>
1515

1616
alias: why
1717
```
@@ -26,9 +26,10 @@ alias: why
2626
This command will print the chain of dependencies causing a given package
2727
to be installed in the current project.
2828

29-
Positional arguments can be either folders within `node_modules`, or
30-
`name@version-range` specifiers, which will select the dependency
31-
relationships to explain.
29+
If one or more package specs are provided, then only packages matching
30+
one of the specifiers will have their relationships explained.
31+
32+
The package spec can also refer to a folder within `./node_modules`
3233

3334
For example, running `npm explain glob` within npm's source tree will show:
3435

@@ -110,6 +111,7 @@ This value is not exported to the environment for child processes.
110111

111112
### See Also
112113

114+
* [package spec](/using-npm/package-spec)
113115
* [npm config](/commands/npm-config)
114116
* [npmrc](/configuring-npm/npmrc)
115117
* [npm folders](/configuring-npm/folders)

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

+13-12
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Retrieve funding information
1111
<!-- see lib/commands/fund.js -->
1212

1313
```bash
14-
npm fund [[<@scope>/]<pkg>]
14+
npm fund [<package-spec>]
1515
```
1616

1717
<!-- automatically generated, do not edit manually -->
@@ -23,22 +23,22 @@ npm fund [[<@scope>/]<pkg>]
2323

2424
This command retrieves information on how to fund the dependencies of a
2525
given project. If no package name is provided, it will list all
26-
dependencies that are looking for funding in a tree structure, listing the
27-
type of funding and the url to visit. If a package name is provided then it
28-
tries to open its funding url using the `--browser` config param; if there
29-
are multiple funding sources for the package, the user will be instructed
30-
to pass the `--which` option to disambiguate.
26+
dependencies that are looking for funding in a tree structure, listing
27+
the type of funding and the url to visit. If a package name is provided
28+
then it tries to open its funding url using the `--browser` config
29+
param; if there are multiple funding sources for the package, the user
30+
will be instructed to pass the `--which` option to disambiguate.
3131

3232
The list will avoid duplicated entries and will stack all packages that
33-
share the same url as a single entry. Thus, the list does not have the same
34-
shape of the output from `npm ls`.
33+
share the same url as a single entry. Thus, the list does not have the
34+
same shape of the output from `npm ls`.
3535

3636
#### Example
3737

3838
### Workspaces support
3939

40-
It's possible to filter the results to only include a single workspace and its
41-
dependencies using the `workspace` config option.
40+
It's possible to filter the results to only include a single workspace
41+
and its dependencies using the `workspace` config option.
4242

4343
#### Example:
4444

@@ -58,8 +58,8 @@ [email protected]
5858
5959
```
6060

61-
And here is an example of the expected result when filtering only by
62-
a specific workspace `a` in the same project:
61+
And here is an example of the expected result when filtering only by a
62+
specific workspace `a` in the same project:
6363

6464
```bash
6565
$ npm fund -w a
@@ -156,6 +156,7 @@ If there are multiple funding sources, which 1-indexed source URL to open.
156156

157157
## See Also
158158

159+
* [package spec](/using-npm/package-spec)
159160
* [npm install](/commands/npm-install)
160161
* [npm docs](/commands/npm-docs)
161162
* [npm ls](/commands/npm-ls)

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

+35-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ description: Create a package.json file
1111
<!-- see lib/commands/init.js -->
1212

1313
```bash
14-
npm init [--force|-f|--yes|-y|--scope]
14+
npm init <package-spec> (same as `npx <package-spec>)
1515
npm init <@scope> (same as `npx <@scope>/create`)
16-
npm init [<@scope>/]<name> (same as `npx [<@scope>/]create-<name>`)
1716
1817
aliases: create, innit
1918
```
@@ -204,6 +203,39 @@ mistakes, unnecessary performance degradation, and malicious input.
204203
If you don't have a clear idea of what you want to do, it is strongly
205204
recommended that you do not use this option!
206205
206+
<!-- automatically generated, do not edit manually -->
207+
<!-- see lib/utils/config/definitions.js -->
208+
209+
#### `scope`
210+
211+
* Default: the scope of the current project, if any, or ""
212+
* Type: String
213+
214+
Associate an operation with a scope for a scoped registry.
215+
216+
Useful when logging in to or out of a private registry:
217+
218+
```
219+
# log in, linking the scope to the custom registry
220+
npm login --scope=@mycorp --registry=https://registry.mycorp.com
221+
222+
# log out, removing the link and the auth token
223+
npm logout --scope=@mycorp
224+
```
225+
226+
This will cause `@mycorp` to be mapped to the registry for future
227+
installation of packages specified according to the pattern
228+
`@mycorp/package`.
229+
230+
This will also cause `npm init` to create a scoped package.
231+
232+
```
233+
# accept all defaults, and create a package named "@foo/whatever",
234+
# instead of just named "whatever"
235+
npm init --scope=@foo --yes
236+
```
237+
238+
207239
<!-- automatically generated, do not edit manually -->
208240
<!-- see lib/utils/config/definitions.js -->
209241
@@ -284,6 +316,7 @@ This value is not exported to the environment for child processes.
284316
285317
### See Also
286318
319+
* [package spec](/using-npm/package-spec)
287320
* [init-package-json module](http://npm.im/init-package-json)
288321
* [package.json](/configuring-npm/package-json)
289322
* [npm version](/commands/npm-version)

deps/npm/docs/content/commands/npm-install-ci-test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ will *not* run any pre- or post-scripts.
7979
* Type: null or String
8080

8181
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
82-
init <pkg>` commands.
82+
init <package-spec>` commands.
8383

8484
<!-- automatically generated, do not edit manually -->
8585
<!-- see lib/utils/config/definitions.js -->

deps/npm/docs/content/commands/npm-install-test.md

+1-10
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,7 @@ description: Install package(s) and run tests
1111
<!-- see lib/commands/install-test.js -->
1212

1313
```bash
14-
npm install-test [<@scope>/]<pkg>
15-
npm install-test [<@scope>/]<pkg>@<tag>
16-
npm install-test [<@scope>/]<pkg>@<version>
17-
npm install-test [<@scope>/]<pkg>@<version range>
18-
npm install-test <alias>@npm:<name>
19-
npm install-test <folder>
20-
npm install-test <tarball file>
21-
npm install-test <tarball url>
22-
npm install-test <git:// url>
23-
npm install-test <github username>/<github project>
14+
npm install-test [<package-spec> ...]
2415

2516
alias: it
2617
```

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

+1-10
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,7 @@ description: Install a package
1111
<!-- see lib/commands/install.js -->
1212

1313
```bash
14-
npm install [<@scope>/]<pkg>
15-
npm install [<@scope>/]<pkg>@<tag>
16-
npm install [<@scope>/]<pkg>@<version>
17-
npm install [<@scope>/]<pkg>@<version range>
18-
npm install <alias>@npm:<name>
19-
npm install <folder>
20-
npm install <tarball file>
21-
npm install <tarball url>
22-
npm install <git:// url>
23-
npm install <github username>/<github project>
14+
npm install [<package-spec> ...]
2415

2516
aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
2617
```

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ description: Symlink a package folder
1111
<!-- see lib/commands/link.js -->
1212

1313
```bash
14-
npm link (in package dir)
15-
npm link [<@scope>/]<pkg>[@<version>]
14+
npm link [<package-spec>]
1615

1716
alias: ln
1817
```
@@ -29,11 +28,11 @@ test iteratively without having to continually rebuild.
2928

3029
Package linking is a two-step process.
3130

32-
First, `npm link` in a package folder will create a symlink in the global
33-
folder `{prefix}/lib/node_modules/<package>` that links to the package
34-
where the `npm link` command was executed. It will also link any bins in
35-
the package to `{prefix}/bin/{name}`. Note that `npm link` uses the global
36-
prefix (see `npm prefix -g` for its value).
31+
First, `npm link` in a package folder with no arguments will create a
32+
symlink in the global folder `{prefix}/lib/node_modules/<package>` that
33+
links to the package where the `npm link` command was executed. It will
34+
also link any bins in the package to `{prefix}/bin/{name}`. Note that
35+
`npm link` uses the global prefix (see `npm prefix -g` for its value).
3736

3837
Next, in some other location, `npm link package-name` will create a
3938
symbolic link from globally-installed `package-name` to `node_modules/` of
@@ -399,6 +398,7 @@ symlink. This option has no effect on workspaces.
399398

400399
### See Also
401400

401+
* [package spec](/using-npm/package-spec)
402402
* [npm developers](/using-npm/developers)
403403
* [package.json](/configuring-npm/package-json)
404404
* [npm install](/commands/npm-install)

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: List installed packages
1111
<!-- see lib/commands/ls.js -->
1212

1313
```bash
14-
npm ls [[<@scope>/]<pkg> ...]
14+
npm ls <package-spec>
1515

1616
alias: list
1717
```
@@ -301,6 +301,7 @@ symlink. This option has no effect on workspaces.
301301

302302
### See Also
303303

304+
* [package spec](/using-npm/package-spec)
304305
* [npm explain](/commands/npm-explain)
305306
* [npm config](/commands/npm-config)
306307
* [npmrc](/configuring-npm/npmrc)

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Check for outdated packages
1111
<!-- see lib/commands/outdated.js -->
1212

1313
```bash
14-
npm outdated [[<@scope>/]<pkg> ...]
14+
npm outdated [<package-spec> ...]
1515
```
1616

1717
<!-- automatically generated, do not edit manually -->
@@ -192,6 +192,7 @@ This value is not exported to the environment for child processes.
192192

193193
### See Also
194194

195+
* [package spec](/using-npm/package-spec)
195196
* [npm update](/commands/npm-update)
196197
* [npm dist-tag](/commands/npm-dist-tag)
197198
* [npm registry](/using-npm/registry)

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ description: Manage package owners
1111
<!-- see lib/commands/owner.js -->
1212

1313
```bash
14-
npm owner add <user> [<@scope>/]<pkg>
15-
npm owner rm <user> [<@scope>/]<pkg>
16-
npm owner ls [<@scope>/]<pkg>
14+
npm owner add <user> <package-spec>
15+
npm owner rm <user> <package-spec>
16+
npm owner ls <package-spec>
1717

1818
alias: author
1919
```
@@ -123,6 +123,7 @@ This value is not exported to the environment for child processes.
123123

124124
### See Also
125125

126+
* [package spec](/using-npm/package-spec)
126127
* [npm profile](/commands/npm-profile)
127128
* [npm publish](/commands/npm-publish)
128129
* [npm registry](/using-npm/registry)

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Create a tarball from a package
1111
<!-- see lib/commands/pack.js -->
1212

1313
```bash
14-
npm pack [[<@scope>/]<pkg>...]
14+
npm pack <package-spec>
1515
```
1616

1717
<!-- automatically generated, do not edit manually -->
@@ -144,6 +144,7 @@ If no arguments are supplied, then npm packs the current package folder.
144144

145145
### See Also
146146

147+
* [package spec](/using-npm/package-spec)
147148
* [npm-packlist package](http://npm.im/npm-packlist)
148149
* [npm cache](/commands/npm-cache)
149150
* [npm publish](/commands/npm-publish)

0 commit comments

Comments
 (0)