From 278862aeb9e2a38ef0258ba085bdec5b5163c5a6 Mon Sep 17 00:00:00 2001
From: Ruy Adorno
Date: Fri, 27 Nov 2020 12:22:50 -0500
Subject: [PATCH] deps: upgrade npm to 7.0.15
PR-URL: https://github.com/nodejs/node/pull/36293
Reviewed-By: Luigi Pinca
Reviewed-By: Rich Trott
---
deps/npm/AUTHORS | 3 +
deps/npm/CHANGELOG.md | 35 +++
deps/npm/docs/content/commands/npm-star.md | 17 +-
deps/npm/docs/content/commands/npm-stars.md | 1 +
deps/npm/docs/content/commands/npm-unstar.md | 36 +++
deps/npm/docs/content/using-npm/config.md | 4 +-
deps/npm/docs/content/using-npm/scripts.md | 6 +-
deps/npm/docs/content/using-npm/workspaces.md | 4 +-
deps/npm/docs/output/commands/npm-ls.html | 2 +-
deps/npm/docs/output/commands/npm-star.html | 13 +-
deps/npm/docs/output/commands/npm-stars.html | 1 +
deps/npm/docs/output/commands/npm-unstar.html | 181 ++++++++++++++
deps/npm/docs/output/commands/npm.html | 2 +-
deps/npm/docs/output/using-npm/config.html | 4 +-
deps/npm/docs/output/using-npm/scripts.html | 6 +-
.../npm/docs/output/using-npm/workspaces.html | 4 +-
deps/npm/lib/link.js | 9 +
deps/npm/lib/rebuild.js | 9 +-
deps/npm/lib/stars.js | 11 +-
deps/npm/man/man1/npm-ls.1 | 2 +-
deps/npm/man/man1/npm-star.1 | 16 +-
deps/npm/man/man1/npm-stars.1 | 2 +
deps/npm/man/man1/npm-unstar.1 | 37 +++
deps/npm/man/man1/npm.1 | 2 +-
deps/npm/man/man7/config.7 | 4 +-
deps/npm/man/man7/scripts.7 | 6 +-
.../@npmcli/arborist/lib/arborist/reify.js | 15 +-
.../arborist/lib/update-root-package-json.js | 48 ++++
.../@npmcli/arborist/package.json | 2 +-
deps/npm/package.json | 5 +-
.../test-lib-stars.js-TAP.test.js | 15 ++
deps/npm/test/lib/link.js | 12 +-
deps/npm/test/lib/npm.js | 15 +-
deps/npm/test/lib/rebuild.js | 222 ++++++++++++++++++
deps/npm/test/lib/stars.js | 151 ++++++++++++
35 files changed, 841 insertions(+), 61 deletions(-)
create mode 100644 deps/npm/docs/content/commands/npm-unstar.md
create mode 100644 deps/npm/docs/output/commands/npm-unstar.html
create mode 100644 deps/npm/man/man1/npm-unstar.1
create mode 100644 deps/npm/node_modules/@npmcli/arborist/lib/update-root-package-json.js
create mode 100644 deps/npm/tap-snapshots/test-lib-stars.js-TAP.test.js
create mode 100644 deps/npm/test/lib/rebuild.js
create mode 100644 deps/npm/test/lib/stars.js
diff --git a/deps/npm/AUTHORS b/deps/npm/AUTHORS
index 6dfd49d38bef4e..33647f09277cf2 100644
--- a/deps/npm/AUTHORS
+++ b/deps/npm/AUTHORS
@@ -735,3 +735,6 @@ Vlad GURDIGA
Sébastien Puech
Jannis Hell
Hollow Man
+kai zhu
+Alex Woollam
+Daniel Fischer
diff --git a/deps/npm/CHANGELOG.md b/deps/npm/CHANGELOG.md
index 6ac63cfba3336d..a3a9984d24462f 100644
--- a/deps/npm/CHANGELOG.md
+++ b/deps/npm/CHANGELOG.md
@@ -1,3 +1,38 @@
+## 7.0.15 (2020-11-27)
+
+### DEPENDENCIES
+
+* [`00e6028ef`](https://github.com/npm/cli/commit/00e6028ef83bf76eaae10241fd7ba59e39768603)
+ `@npmcli/arborist@1.0.13`
+ * do not override user-defined shorthand values when saving `package.json`
+
+### BUG FIXES
+
+* [`9c3413fbc`](https://github.com/npm/cli/commit/9c3413fbcb37e79fc0b3d980e0b5810d7961277c)
+ [#2034](https://github.com/npm/cli/issues/2034)
+ [#2245](https://github.com/npm/cli/issues/2245)
+ `npm link ` should not save `package.json`
+ ([@ruyadorno](https://github.com/ruyadorno))
+
+### DOCUMENTATION
+
+* [`1875347f9`](https://github.com/npm/cli/commit/1875347f9f4f2b50c28fe8857c5533eeebf42da2)
+ [#2196](https://github.com/npm/cli/issues/2196)
+ remove doc on obsolete `unsafe-perm` flag
+ ([@kaizhu256](https://github.com/kaizhu256))
+* [`f51e50603`](https://github.com/npm/cli/commit/f51e5060340c783a8a00dadd98e5786960caf43f)
+ [#2200](https://github.com/npm/cli/issues/2200)
+ `config.md` cleanup
+ ([@alexwoollam](https://github.com/alexwoollam))
+* [`997cbdb40`](https://github.com/npm/cli/commit/997cbdb400bcd22e457e8a06b69a7be697cfd66d)
+ [#2238](https://github.com/npm/cli/issues/2238)
+ Fix broken link to `package.json` documentation
+ ([@d-fischer](https://github.com/d-fischer))
+* [`9da972dc4`](https://github.com/npm/cli/commit/9da972dc44c21cf0e337f1c3fca44eb9df3e40d5)
+ [#2241](https://github.com/npm/cli/issues/2241)
+ `npm star` docs cleanup
+ ([@ruyadorno](https://github.com/ruyadorno))
+
## 7.0.14 (2020-11-23)
### DEPENDENCIES
diff --git a/deps/npm/docs/content/commands/npm-star.md b/deps/npm/docs/content/commands/npm-star.md
index c68a057aa08d29..aab6e107747fd9 100644
--- a/deps/npm/docs/content/commands/npm-star.md
+++ b/deps/npm/docs/content/commands/npm-star.md
@@ -8,7 +8,6 @@ description: Mark your favorite packages
```bash
npm star [...]
-npm unstar [...]
```
### Description
@@ -16,12 +15,26 @@ npm unstar [...]
"Starring" a package means that you have some interest in it. It's
a vaguely positive way to show that you care.
+It's a boolean thing. Starring repeatedly has no additional effect.
+
+### More
+
+There's also these extra commands to help you manage your favorite packages:
+
+#### Unstar
+
+You can also "unstar" a package using [`npm unstar`](/commands/npm-unstar)
+
"Unstarring" is the same thing, but in reverse.
-It's a boolean thing. Starring repeatedly has no additional effect.
+#### Listing stars
+
+You can see all your starred packages using [`npm stars`](/commands/npm-stars)
### See Also
+* [npm unstar](/commands/npm-unstar)
+* [npm stars](/commands/npm-stars)
* [npm view](/commands/npm-view)
* [npm whoami](/commands/npm-whoami)
* [npm adduser](/commands/npm-adduser)
diff --git a/deps/npm/docs/content/commands/npm-stars.md b/deps/npm/docs/content/commands/npm-stars.md
index 706134398f3b12..dab11bc669d1a7 100644
--- a/deps/npm/docs/content/commands/npm-stars.md
+++ b/deps/npm/docs/content/commands/npm-stars.md
@@ -20,6 +20,7 @@ you will most certainly enjoy this command.
### See Also
* [npm star](/commands/npm-star)
+* [npm unstar](/commands/npm-unstar)
* [npm view](/commands/npm-view)
* [npm whoami](/commands/npm-whoami)
* [npm adduser](/commands/npm-adduser)
diff --git a/deps/npm/docs/content/commands/npm-unstar.md b/deps/npm/docs/content/commands/npm-unstar.md
new file mode 100644
index 00000000000000..632b1b5e3360f0
--- /dev/null
+++ b/deps/npm/docs/content/commands/npm-unstar.md
@@ -0,0 +1,36 @@
+---
+title: npm-unstar
+section: 1
+description: Remove an item from your favorite packages
+---
+
+### Synopsis
+
+```bash
+npm unstar [...]
+```
+
+### Description
+
+"Unstarring" a package is the opposite of [`npm star`](/commands/npm-star),
+it removes an item from your list of favorite packages.
+
+### More
+
+There's also these extra commands to help you manage your favorite packages:
+
+#### Star
+
+You can "star" a package using [`npm star`](/commands/npm-star)
+
+#### Listing stars
+
+You can see all your starred packages using [`npm stars`](/commands/npm-stars)
+
+### See Also
+
+* [npm star](/commands/npm-star)
+* [npm stars](/commands/npm-stars)
+* [npm view](/commands/npm-view)
+* [npm whoami](/commands/npm-whoami)
+* [npm adduser](/commands/npm-adduser)
diff --git a/deps/npm/docs/content/using-npm/config.md b/deps/npm/docs/content/using-npm/config.md
index 52aa07f1704853..71102d2e204ea0 100644
--- a/deps/npm/docs/content/using-npm/config.md
+++ b/deps/npm/docs/content/using-npm/config.md
@@ -432,7 +432,7 @@ Format `package-lock.json` or `npm-shrinkwrap.json` as a human readable file.
* Type: Boolean
When "true" displays the message at the end of each `npm install`
-aknowledging the number of dependencies looking for funding.
+acknowledging the number of dependencies looking for funding.
See [`npm fund`](/commands/npm-fund) for details.
#### fetch-retries
@@ -1096,7 +1096,7 @@ using legacy search endpoint.
If true, success/failure metrics will be reported to the registry stored in
`metrics-registry`. These requests contain the number of successful and
-failing runs of the npm CLI and the time period overwhich those counts were
+failing runs of the npm CLI and the time period over which those counts were
gathered. No identifying information is included in these requests.
#### shell
diff --git a/deps/npm/docs/content/using-npm/scripts.md b/deps/npm/docs/content/using-npm/scripts.md
index c111aa3f3ab533..cf274e44de3ac7 100644
--- a/deps/npm/docs/content/using-npm/scripts.md
+++ b/deps/npm/docs/content/using-npm/scripts.md
@@ -122,10 +122,8 @@ npm will default some script values based on package contents.
### User
-If npm was invoked with root privileges, then it will change the uid
-to the user account or uid specified by the `user` config, which
-defaults to `nobody`. Set the `unsafe-perm` flag to run scripts with
-root privileges.
+When npm is run as root, scripts are always run with the effective uid
+and gid of the working directory owner.
### Environment
diff --git a/deps/npm/docs/content/using-npm/workspaces.md b/deps/npm/docs/content/using-npm/workspaces.md
index 0379bd1549062e..2024627c758679 100644
--- a/deps/npm/docs/content/using-npm/workspaces.md
+++ b/deps/npm/docs/content/using-npm/workspaces.md
@@ -18,13 +18,13 @@ order to add references to packages that should be symlinked into the current
We also refer to these packages being auto-symlinked during `npm install` as a
single **workspace**, meaning it's a nested package within the current local
-file system that is explicitly defined in the [`package.json`](/using-npm/package-json)
+file system that is explicitly defined in the [`package.json`](/configuring-npm/package-json#workspaces)
`workspaces` configuration.
### Installing workspaces
Workspaces are usually defined via the `workspaces` property of the
-[`package.json`](/using-npm/package-json) file, e.g:
+[`package.json`](/configuring-npm/package-json#workspaces) file, e.g:
```json
{
diff --git a/deps/npm/docs/output/commands/npm-ls.html b/deps/npm/docs/output/commands/npm-ls.html
index 0891ac81e5a760..39519f29717da3 100644
--- a/deps/npm/docs/output/commands/npm-ls.html
+++ b/deps/npm/docs/output/commands/npm-ls.html
@@ -156,7 +156,7 @@
Description
limit the results to only the paths to the packages named. Note that
nested packages will also show the paths to the specified packages.
For example, running npm ls promzard in npm’s source tree will show:
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/deps/npm/docs/output/commands/npm.html b/deps/npm/docs/output/commands/npm.html
index bae6ef6e803442..2e8ed9e7103e7b 100644
--- a/deps/npm/docs/output/commands/npm.html
+++ b/deps/npm/docs/output/commands/npm.html
@@ -148,7 +148,7 @@
Table of contents
npm <command> [args]
Version
-
7.0.14
+
7.0.15
Description
npm is the package manager for the Node JavaScript platform. It puts
modules in place so that node can find them, and manages dependency
diff --git a/deps/npm/docs/output/using-npm/config.html b/deps/npm/docs/output/using-npm/config.html
index 6298e2f7d61cb8..e3fbeaae8c89c7 100644
--- a/deps/npm/docs/output/using-npm/config.html
+++ b/deps/npm/docs/output/using-npm/config.html
@@ -500,7 +500,7 @@
fund
Type: Boolean
When “true” displays the message at the end of each npm install
-aknowledging the number of dependencies looking for funding.
+acknowledging the number of dependencies looking for funding.
See npm fund for details.
fetch-retries
@@ -1069,7 +1069,7 @@
send-metrics
If true, success/failure metrics will be reported to the registry stored in
metrics-registry. These requests contain the number of successful and
-failing runs of the npm CLI and the time period overwhich those counts were
+failing runs of the npm CLI and the time period over which those counts were
gathered. No identifying information is included in these requests.
If npm was invoked with root privileges, then it will change the uid
-to the user account or uid specified by the user config, which
-defaults to nobody. Set the unsafe-perm flag to run scripts with
-root privileges.
+
When npm is run as root, scripts are always run with the effective uid
+and gid of the working directory owner.
Environment
Package scripts run in an environment where many pieces of information
are made available regarding the setup of npm and the current state of
diff --git a/deps/npm/docs/output/using-npm/workspaces.html b/deps/npm/docs/output/using-npm/workspaces.html
index 3da7e2371f9c25..ffec6467c4a515 100644
--- a/deps/npm/docs/output/using-npm/workspaces.html
+++ b/deps/npm/docs/output/using-npm/workspaces.html
@@ -155,11 +155,11 @@
Table of contents
node_modules folder.
We also refer to these packages being auto-symlinked during npm install as a
single workspace, meaning it’s a nested package within the current local
-file system that is explicitly defined in the package.json
+file system that is explicitly defined in the package.jsonworkspaces configuration.
Installing workspaces
Workspaces are usually defined via the workspaces property of the
-package.json file, e.g: