Skip to content

Commit dc8d1a7

Browse files
ruyadornotargos
authored andcommitted
deps: upgrade npm to 7.3.0
PR-URL: #36572 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0d4d347 commit dc8d1a7

Some content is hidden

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

71 files changed

+2489
-701
lines changed

deps/npm/.eslintrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
6868
"keyword-spacing": ["error", { "before": true, "after": true }],
6969
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
70+
"max-len": ["error", 80, {
71+
"ignoreUrls": true,
72+
"ignoreComments": false,
73+
"ignoreRegExpLiterals": true,
74+
"ignoreStrings": true,
75+
"ignoreTemplateLiterals": true
76+
}],
7077
"new-cap": ["error", { "newIsCap": true, "capIsNew": false, "properties": true }],
7178
"new-parens": "error",
7279
"no-array-constructor": "error",

deps/npm/AUTHORS

+2
Original file line numberDiff line numberDiff line change
@@ -739,3 +739,5 @@ kai zhu <kaizhu256@gmail.com>
739739
Alex Woollam <alexjhwoollam@gmail.com>
740740
Daniel Fischer <daniel@d-fischer.dev>
741741
Yash-Singh1 <saiansh2525@gmail.com>
742+
Edu93Jer <mailing_93@hotmail.com>
743+
Tieg Zaharia <tieg@tidelift.com>

deps/npm/CHANGELOG.md

+73-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,75 @@
1+
## 7.3.0 (2020-12-18)
2+
3+
### FEATURES
4+
5+
* [`a9b8bf263`](https://github.com/npm/cli/commit/a9b8bf2634c627fbb16ca3a6bb2c2f1058c3e586)
6+
[#2362](https://github.com/npm/cli/issues/2362)
7+
Support multiple set/get/deletes in npm config
8+
([@isaacs](https://github.com/isaacs))
9+
10+
### BUG FIXES
11+
12+
* [`9eef63849`](https://github.com/npm/cli/commit/9eef638499c88689acb00d812c10f0407cb95c08)
13+
Pass full set of options to login helper functions.
14+
This fixes `npm login --no-strict-ssl`, as well as a host of other
15+
options that one might want to set while logging in.
16+
Reported by: [@toddself](https://github.com/toddself)
17+
([@isaacs](https://github.com/isaacs))
18+
* [`628a554bc`](https://github.com/npm/cli/commit/628a554bc113e4e115d34778bfe8a77cfad1d933)
19+
[#2358](https://github.com/npm/cli/issues/2358)
20+
fix doctor test to work correctly for node pre-release versions
21+
([@nlf](https://github.com/nlf))
22+
* [`be4a0900b`](https://github.com/npm/cli/commit/be4a0900b14b2c6315bf62bed8f5affb648215ae)
23+
[#2360](https://github.com/npm/cli/issues/2360)
24+
raise an error early if publishing without login, registry
25+
([@isaacs](https://github.com/isaacs))
26+
* [`44d433105`](https://github.com/npm/cli/commit/44d4331058c53909ada62470b23b2185102b2128)
27+
[#2366](https://github.com/npm/cli/issues/2366)
28+
Include prerelease versions when deprecating
29+
([@tiegz](https://github.com/tiegz))
30+
* [`cba3341da`](https://github.com/npm/cli/commit/cba3341dae4c92541049dc976e82e2ba19566e95)
31+
[#2373](https://github.com/npm/cli/issues/2373)
32+
npm profile refactor
33+
([@ruyadorno](https://github.com/ruyadorno))
34+
* [`7539504e3`](https://github.com/npm/cli/commit/7539504e3abdec28039a7798e5ccb745b536cb6e)
35+
[#2382](https://github.com/npm/cli/issues/2382)
36+
remove the metrics sender
37+
([@nlf](https://github.com/nlf))
38+
39+
### DOCS
40+
41+
* [`b98569a8c`](https://github.com/npm/cli/commit/b98569a8ca28dbd611fe84492aee996e2e567b55)
42+
add note about `INIT_CWD` to run-script doc
43+
* [`292929279`](https://github.com/npm/cli/commit/292929279854a06ca60ff737b574cbd6503ec5db)
44+
[#2368](https://github.com/npm/cli/issues/2368)
45+
Revert bug-reporting links to GH.
46+
Re: <https://blog.npmjs.org/post/188841555980/updates-to-community-docs-more>
47+
([@tiegz](https://github.com/tiegz))
48+
* [`f4560626f`](https://github.com/npm/cli/commit/f4560626f09dba4889d752f7f739aa5a5f3da741)
49+
update `ISSUE_TEMPLATE` with modern links
50+
([@isaacs](https://github.com/isaacs))
51+
* [`bc1c567ed`](https://github.com/npm/cli/commit/bc1c567ed3d853ed4f01d33a800eb453956de6ef)
52+
update npm command doc feature request links
53+
([@isaacs](https://github.com/isaacs))
54+
* [`0ad958fe1`](https://github.com/npm/cli/commit/0ad958fe1cb811699caca235f361c8328baac8c4)
55+
[#2381](https://github.com/npm/cli/issues/2381)
56+
(docs,test): assorted typo fixes
57+
([@XhmikosR](https://github.com/XhmikosR))
58+
59+
### TESTING
60+
61+
* [`a92d310b7`](https://github.com/npm/cli/commit/a92d310b7e9e4c48b08f52785c2e3a6d52a82ad7)
62+
[#2361](https://github.com/npm/cli/issues/2361)
63+
Add max-len to lint rules
64+
([@Edu93Jer](https://github.com/Edu93Jer))
65+
66+
### DEPENDENCIES
67+
68+
* [`4fc2f3e05`](https://github.com/npm/cli/commit/4fc2f3e05b600aa64fe5eb6b8b77bc070e5a9403)
69+
[#2300](https://github.com/npm/cli/issues/2300)
70+
`@npmcli/config@1.2.8`:
71+
* Support setting email without username/password
72+
173
## 7.2.0 (2020-12-15)
274

375
### FEATURES
@@ -977,7 +1049,7 @@
9771049
* fix package.json dependencies order
9781050
* [`49b2bf5a7`](https://github.com/npm/cli/commit/49b2bf5a798b49d52166744088a80b8a39ccaeb6)
9791051
`@npmcli/config@1.1.8`
980-
* fix unkown envs to be passed through
1052+
* fix unknown envs to be passed through
9811053
* fix setting correct globalPrefix on load
9821054
* [`f9aac351d`](https://github.com/npm/cli/commit/f9aac351dd36a19d14e1f951a2e8e20b41545822)
9831055
`libnpmversion@1.0.5`

deps/npm/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ prune:
8888
@[[ "$(shell git status -s)" != "" ]] && echo "ERR: found unpruned files" && exit 1 || echo "git status is clean"
8989

9090

91-
publish: gitclean ls-ok link test docs-clean docs prune
91+
publish: gitclean ls-ok link test docs prune
9292
@git push origin :v$(shell node bin/npm-cli.js --no-timing -v) 2>&1 || true
9393
git push origin $(BRANCH) &&\
9494
git push origin --tags &&\
9595
node bin/npm-cli.js publish --tag=$(PUBLISHTAG)
9696

97-
release: gitclean ls-ok docs-clean docs prune
97+
release: gitclean ls-ok docs prune
9898
@bash scripts/release.sh
9999

100100
.PHONY: all latest install dev link docs clean uninstall test man docs-clean docsclean release ls-ok dev-deps prune

deps/npm/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ you should [read this](https://docs.npmjs.com/misc/developers).
150150
When you find issues, please report them:
151151

152152
* web:
153+
<https://github.com/npm/npm/issues>
154+
* archived web:
153155
<https://npm.community/c/bugs>
154156

155157
Be sure to include *all* of the output from the npm command that didn't work

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

+25-14
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ description: Manage the npm configuration files
77
### Synopsis
88

99
```bash
10-
npm config set <key> <value> [-g|--global]
11-
npm config get <key>
12-
npm config delete <key>
13-
npm config list [-l] [--json]
10+
npm config set <key>=<value> [<key>=<value> ...]
11+
npm config get [<key> [<key> ...]]
12+
npm config delete <key> [<key> ...]
13+
npm config list [--json]
1414
npm config edit
15-
npm get <key>
16-
npm set <key> <value> [-g|--global]
15+
npm set <key>=<value> [<key>=<value> ...]
16+
npm get [<key> [<key> ...]]
1717

18-
aliases: c
18+
alias: c
1919
```
2020
2121
### Description
@@ -39,20 +39,31 @@ Config supports the following sub-commands:
3939
#### set
4040
4141
```bash
42-
npm config set key value
42+
npm config set key=value [key=value...]
43+
npm set key=value [key=value...]
4344
```
4445
45-
Sets the config key to the value.
46+
Sets each of the config keys to the value provided.
4647
47-
If value is omitted, then it sets it to "true".
48+
If value is omitted, then it sets it to an empty string.
49+
50+
Note: for backwards compatibility, `npm config set key value` is supported
51+
as an alias for `npm config set key=value`.
4852
4953
#### get
5054
5155
```bash
52-
npm config get key
56+
npm config get [key ...]
57+
npm get [key ...]
5358
```
5459
55-
Echo the config value to stdout.
60+
Echo the config value(s) to stdout.
61+
62+
If multiple keys are provided, then the values will be prefixed with the
63+
key names.
64+
65+
If no keys are provided, then this command behaves the same as `npm config
66+
list`.
5667
5768
#### list
5869
@@ -66,10 +77,10 @@ to show the settings in json format.
6677
#### delete
6778
6879
```bash
69-
npm config delete key
80+
npm config delete key [key ...]
7081
```
7182
72-
Deletes the key from all configuration files.
83+
Deletes the specified keys from all configuration files.
7384
7485
#### edit
7586

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

+12-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Deprecate a version of a package
77
### Synopsis
88

99
```bash
10-
npm deprecate <pkg>[@<version>] <message>
10+
npm deprecate <pkg>[@<version range>] <message>
1111
```
1212

1313
### Description
@@ -22,8 +22,17 @@ versions, so you can do something like this:
2222
npm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3"
2323
```
2424

25-
Note that you must be the package owner to deprecate something. See the
26-
`owner` and `adduser` help topics.
25+
SemVer ranges passed to this command are interpreted such that they *do*
26+
include prerelease versions. For example:
27+
28+
```bash
29+
npm deprecate my-thing@1.x "1.x is no longer supported"
30+
```
31+
32+
In this case, a version `my-thing@1.0.0-beta.0` will also be deprecated.
33+
34+
You must be the package owner to deprecate something. See the `owner` and
35+
`adduser` help topics.
2736

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

deps/npm/docs/content/commands/npm-run-script.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ on Unix-like systems it is the `/bin/sh` command, on Windows it is the `cmd.exe`
6060
The actual shell referred to by `/bin/sh` also depends on the system.
6161
You can customize the shell with the `script-shell` configuration.
6262

63-
Scripts are run from the root of the module, regardless of what the current
64-
working directory is when `npm run` is called. If you want your script to
65-
use different behavior based on what subdirectory you're in, you can use the
66-
`INIT_CWD` environment variable, which holds the full path you were in when
67-
you ran `npm run`.
68-
69-
`npm run` sets the `NODE` environment variable to the `node` executable with
70-
which `npm` is executed. Also, if the `--scripts-prepend-node-path` is passed,
71-
the directory within which `node` resides is added to the
72-
`PATH`. If `--scripts-prepend-node-path=auto` is passed (which has been the
73-
default in `npm` v3), this is only performed when that `node` executable is
74-
not found in the `PATH`.
63+
Scripts are run from the root of the package folder, regardless of what the
64+
current working directory is when `npm run` is called. If you want your
65+
script to use different behavior based on what subdirectory you're in, you
66+
can use the `INIT_CWD` environment variable, which holds the full path you
67+
were in when you ran `npm run`.
68+
69+
`npm run` sets the `NODE` environment variable to the `node` executable
70+
with which `npm` is executed. Also, if the `--scripts-prepend-node-path` is
71+
passed, the directory within which `node` resides is added to the `PATH`.
72+
If `--scripts-prepend-node-path=auto` is passed (which has been the default
73+
in `npm` v3), this is only performed when that `node` executable is not
74+
found in the `PATH`.
7575

7676
If you try to run a script without having a `node_modules` directory and it fails,
7777
you will be given a warning to run `npm install`, just in case you've forgotten.

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

+13-4
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,21 @@ the contributing guidelines and check the issues list.
143143
When you find issues, please report them:
144144

145145
* web:
146+
<https://github.com/npm/npm/issues>
147+
* archived web:
146148
<https://npm.community/c/bugs>
147149

148-
Be sure to follow the template and bug reporting guidelines. You can also ask
149-
for help in the [support forum](https://npm.community/c/support) if you're
150-
unsure if it's actually a bug or are having trouble coming up with a detailed
151-
reproduction to report.
150+
Be sure to follow the template and bug reporting guidelines.
151+
152+
### Feature Requests
153+
154+
Discuss new feature ideas on our discussion forum:
155+
156+
* <https://github.com/npm/feedback>
157+
158+
Or suggest formal RFC proposals:
159+
160+
* <https://github.com/npm/rfcs>
152161

153162
### Author
154163

deps/npm/docs/content/using-npm/config.md

-17
Original file line numberDiff line numberDiff line change
@@ -744,13 +744,6 @@ Commit message which is used by `npm version` when creating version commit.
744744

745745
Any "%s" in the message will be replaced with the version number.
746746

747-
#### metrics-registry
748-
749-
* Default: The value of `registry` (which defaults to "https://registry.npmjs.org/")
750-
* Type: String
751-
752-
The registry you want to send cli metrics to if `send-metrics` is true.
753-
754747
#### node-options
755748

756749
* Default: null
@@ -1089,16 +1082,6 @@ searches.
10891082
The age of the cache, in seconds, before another registry request is made if
10901083
using legacy search endpoint.
10911084

1092-
#### send-metrics
1093-
1094-
* Default: false
1095-
* Type: Boolean
1096-
1097-
If true, success/failure metrics will be reported to the registry stored in
1098-
`metrics-registry`. These requests contain the number of successful and
1099-
failing runs of the npm CLI and the time period over which those counts were
1100-
gathered. No identifying information is included in these requests.
1101-
11021085
#### shell
11031086

11041087
* Default: SHELL environment variable, or "bash" on Posix, or "cmd" on

deps/npm/docs/content/using-npm/scripts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To create "pre" or "post" scripts for any scripts defined in the `"scripts"` sec
2424

2525
### Life Cycle Scripts
2626

27-
There are some special life cycle scripts that happen only in certain situations. These scripts happen in addtion to the "pre" and "post" script.
27+
There are some special life cycle scripts that happen only in certain situations. These scripts happen in addition to the "pre" and "post" script.
2828
* `prepare`, `prepublish`, `prepublishOnly`, `prepack`, `postpack`
2929

3030
**prepare** (since `npm@4.0.0`)

deps/npm/docs/output/commands/npm-config.html

+21-14
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ <h2 id="table-of-contents">Table of contents</h2>
145145
</section>
146146

147147
<div id="_content"><h3 id="synopsis">Synopsis</h3>
148-
<pre lang="bash"><code>npm config set &lt;key&gt; &lt;value&gt; [-g|--global]
149-
npm config get &lt;key&gt;
150-
npm config delete &lt;key&gt;
151-
npm config list [-l] [--json]
148+
<pre lang="bash"><code>npm config set &lt;key&gt;=&lt;value&gt; [&lt;key&gt;=&lt;value&gt; ...]
149+
npm config get [&lt;key&gt; [&lt;key&gt; ...]]
150+
npm config delete &lt;key&gt; [&lt;key&gt; ...]
151+
npm config list [--json]
152152
npm config edit
153-
npm get &lt;key&gt;
154-
npm set &lt;key&gt; &lt;value&gt; [-g|--global]
153+
npm set &lt;key&gt;=&lt;value&gt; [&lt;key&gt;=&lt;value&gt; ...]
154+
npm get [&lt;key&gt; [&lt;key&gt; ...]]
155155

156-
aliases: c
156+
alias: c
157157
</code></pre>
158158
<h3 id="description">Description</h3>
159159
<p>npm gets its config settings from the command line, environment
@@ -167,23 +167,30 @@ <h3 id="description">Description</h3>
167167
<h3 id="sub-commands">Sub-commands</h3>
168168
<p>Config supports the following sub-commands:</p>
169169
<h4 id="set">set</h4>
170-
<pre lang="bash"><code>npm config set key value
170+
<pre lang="bash"><code>npm config set key=value [key=value...]
171+
npm set key=value [key=value...]
171172
</code></pre>
172-
<p>Sets the config key to the value.</p>
173-
<p>If value is omitted, then it sets it to “true”.</p>
173+
<p>Sets each of the config keys to the value provided.</p>
174+
<p>If value is omitted, then it sets it to an empty string.</p>
175+
<p>Note: for backwards compatibility, <code>npm config set key value</code> is supported
176+
as an alias for <code>npm config set key=value</code>.</p>
174177
<h4 id="get">get</h4>
175-
<pre lang="bash"><code>npm config get key
178+
<pre lang="bash"><code>npm config get [key ...]
179+
npm get [key ...]
176180
</code></pre>
177-
<p>Echo the config value to stdout.</p>
181+
<p>Echo the config value(s) to stdout.</p>
182+
<p>If multiple keys are provided, then the values will be prefixed with the
183+
key names.</p>
184+
<p>If no keys are provided, then this command behaves the same as <code>npm config list</code>.</p>
178185
<h4 id="list">list</h4>
179186
<pre lang="bash"><code>npm config list
180187
</code></pre>
181188
<p>Show all the config settings. Use <code>-l</code> to also show defaults. Use <code>--json</code>
182189
to show the settings in json format.</p>
183190
<h4 id="delete">delete</h4>
184-
<pre lang="bash"><code>npm config delete key
191+
<pre lang="bash"><code>npm config delete key [key ...]
185192
</code></pre>
186-
<p>Deletes the key from all configuration files.</p>
193+
<p>Deletes the specified keys from all configuration files.</p>
187194
<h4 id="edit2">edit</h4>
188195
<pre lang="bash"><code>npm config edit
189196
</code></pre>

0 commit comments

Comments
 (0)