Skip to content

Commit fa7de9b

Browse files
claudiahdzBridgeAR
authored andcommitted
deps: update npm to 6.11.3
PR-URL: #29430 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 144aeea commit fa7de9b

File tree

300 files changed

+2130
-1769
lines changed

Some content is hidden

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

300 files changed

+2130
-1769
lines changed

deps/npm/.mailmap

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ Alex K. Wolfe <[email protected]>
22
Andrew Bradley <[email protected]>
33
Andrew Lunny <[email protected]>
44
Arlo Breault <[email protected]>
5-
65
6+
77
Benjamin Coe <[email protected]>
88
99
1010
Cedric Nelson <[email protected]>
1111
Charlie Robbins <[email protected]>
12+
Claudia Hernández <[email protected]>
1213
Dalmais Maxence <[email protected]>
1314
Danila Gerasimov <[email protected]>
1415
Dave Galbraith <[email protected]>
@@ -22,22 +23,23 @@ Evan Lucas <[email protected]> <[email protected]>
2223
2324
Faiq Raza <[email protected]>
2425
Forbes Lindesay <[email protected]>
25-
26+
27+
2628
Gabriel Barros <[email protected]>
2729
Geoff Flarity <[email protected]> <gflarity@raptvm-x02.(none)>
2830
Gregers Gram Rygg <[email protected]>
2931
Ifeanyi Oraelosi <[email protected]>
30-
Isaac Z. Schlueter <[email protected]> <[email protected]>
31-
Isaac Z. Schlueter <[email protected]>
32-
32+
33+
34+
3335
Jake Verbaten <[email protected]>
3436
James Sanders <[email protected]>
3537
James Treworgy <[email protected]>
3638
Jason Smith <[email protected]>
3739
40+
Jonas Weber <[email protected]>
3841
Joshua Bennett <[email protected]>
3942
40-
Jonas Weber <[email protected]>
4143
Julien Meddah <[email protected]>
4244
4345
Kevin Lorenz <[email protected]>
@@ -51,12 +53,12 @@ Max Goodman <[email protected]>
5153
Maxim Bogushevich <[email protected]>
5254
5355
54-
Nicolas Morel <[email protected]>
5556
Misha Kaletsky <[email protected]>
57+
Nicolas Morel <[email protected]>
5658
Olivier Melcher <[email protected]>
5759
Ra'Shaun Stovall <[email protected]>
58-
5960
61+
6062
Ryan Emery <[email protected]>
6163
Sam Mikes <[email protected]>
6264
Sreenivas Alapati <[email protected]>

deps/npm/.travis.yml

+31-15
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,53 @@
11
sudo: true
22
# need to declare the language as well as the matrix below
33
language: node_js
4+
5+
os:
6+
- linux
7+
8+
node_js:
9+
- 12
10+
- 10
11+
- 8
12+
13+
env: "DEPLOY_VERSION=testing"
14+
415
# having top-level `env:` adds a phantom build
516
# https://github.com/travis-ci/travis-ci/issues/4681
617
#env: DEPLOY_VERSION=testing
718
matrix:
819
include:
9-
# LTS is our most important target
20+
# Run the sudotest, but only on Linux
1021
- node_js: "12"
1122
# DEPLOY_VERSION is used to set the couchapp setup mode for test/tap/registry.js
1223
# only gather coverage info for LTS
1324
env: DEPLOY_VERSION=testing COVERALLS_REPO_TOKEN="$COVERALLS_OPTIONAL_TOKEN"
1425
script:
1526
# run the sudo tests, with coverage enabled
16-
- "sudo PATH=$PATH $(which node) . run tap -- \"test/tap/*.js\" --coverage"
17-
- "unset COVERALLS_REPO_TOKEN ; node . run tap -- \"test/broken-under-*/*.js\""
18-
# previous LTS is next most important
27+
- "sudo PATH=$PATH $(which node) . run tap -- \"test/tap/*.js\" --coverage --timeout 600"
28+
29+
# also run standard and license checking
1930
- node_js: "10"
20-
env: DEPLOY_VERSION=testing
2131
script:
22-
- "npx standard"
23-
- "node . run licenses"
24-
- "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""
25-
- node_js: "8"
26-
env: DEPLOY_VERSION=testing
32+
- "npx standard"
33+
- "node . run licenses"
34+
35+
# separate out node 6 so we can turn off caching, because that
36+
# always breaks for some reason.
2737
- node_js: "6"
28-
env: DEPLOY_VERSION=testing
38+
cache: false
39+
env: "DEPLOY_VERSION=testing"
40+
41+
# only run one test on Windows, because it's hella slow
42+
- node_js: "12"
43+
os: "windows"
44+
env: "DEPLOY_VERSION=testing"
45+
2946
notifications:
3047
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
31-
cache:
32-
directories:
33-
- node_modules/.cache
48+
3449
install:
3550
- "node . install"
51+
3652
script:
37-
- "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""
53+
- "node . run tap -- \"test/tap/*.js\" -t600 -Rclassic -c"

deps/npm/AUTHORS

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Authors sorted by whether or not they're me
2-
Isaac Z. Schlueter <[email protected]>
32
43
Steve Steiner <[email protected]>
54
Mikeal Rogers <[email protected]>
@@ -644,11 +643,16 @@ Florian Keller <[email protected]>
644643
Sreeram Jayan <[email protected]>
645644
646645
raywu0123 <[email protected]>
647-
648646
Iván Reinoso García <[email protected]>
649647
Roy Marples <[email protected]>
650648
Robert James Gabriel <[email protected]>
651649
John Firebaugh <[email protected]>
652650
Kitten King <[email protected]>
653-
claudiahdz <[email protected]>
651+
Claudia Hernández <[email protected]>
654652
Artem Sapegin <[email protected]>
653+
Márton Salomváry <[email protected]>
654+
655+
Olivier Chevet <[email protected]>
656+
Maël Nison <[email protected]>
657+
Sara Ahbabou <[email protected]>
658+
Gareth Jones <[email protected]>

deps/npm/CHANGELOG.md

+187
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,190 @@
1+
## 6.11.3 (2019-09-03):
2+
3+
Fix npm ci regressions and npm outdated depth.
4+
5+
### BUG FIXES
6+
7+
* [`235ed1d28`](https://github.com/npm/cli/commit/235ed1d2838ef302bb995e183980209d16c51b9b)
8+
[#239](https://github.com/npm/cli/pull/239)
9+
Don't override user specified depth in outdated
10+
Restores ability to update packages using `--depth` as suggested by `npm audit`.
11+
([@G-Rath](https://github.com/G-Rath))
12+
* [`1fafb5151`](https://github.com/npm/cli/commit/1fafb51513466cd793866b576dfea9a8963a3335)
13+
[#242](https://github.com/npm/cli/pull/242)
14+
[npm.community#9586](https://npm.community/t/6-11-1-some-dependencies-are-no-longer-being-installed/9586/4)
15+
Revert "install: do not descend into directory deps' child modules"
16+
([@isaacs](https://github.com/isaacs))
17+
* [`cebf542e6`](https://github.com/npm/cli/commit/cebf542e61dcabdd2bd3b876272bf8eebf7d01cc)
18+
[#243](https://github.com/npm/cli/pull/243)
19+
[npm.community#9720](https://npm.community/t/6-11-2-npm-ci-installs-package-with-wrong-permissions/9720)
20+
ci: pass appropriate configs for file/dir modes
21+
([@isaacs](https://github.com/isaacs))
22+
23+
### DEPENDENCIES
24+
25+
* [`e5fbb7ed1`](https://github.com/npm/cli/commit/e5fbb7ed1fc7ef5c6ca4790e2d0dc441e0ac1596)
26+
27+
([@claudiahdz](https://github.com/claudiahdz))
28+
* [`23ce65616`](https://github.com/npm/cli/commit/23ce65616c550647c586f7babc3c2f60115af2aa)
29+
30+
([@claudiahdz](https://github.com/claudiahdz))
31+
32+
## 6.11.2 (2019-08-22):
33+
34+
Fix a recent Windows regression, and two long-standing Windows bugs. Also,
35+
get CI running on Windows, so these things are less likely in the future.
36+
37+
### DEPENDENCIES
38+
39+
* [`9778a1b87`](https://github.com/npm/cli/commit/9778a1b878aaa817af6e99385e7683c2a389570d)
40+
`[email protected]`: Fix regression where shims fail to preserve exit code
41+
([@isaacs](https://github.com/isaacs))
42+
* [`bf93e91d8`](https://github.com/npm/cli/commit/bf93e91d879c816a055d5913e6e4210d7299f299)
43+
`[email protected]`: Properly handle git+file: urls on Windows when a
44+
drive letter is included. ([@isaacs](https://github.com/isaacs))
45+
46+
### BUGFIXES
47+
48+
* [`6cc4cc66f`](https://github.com/npm/cli/commit/6cc4cc66f1fb050dc4113e35cab59197fd48e04a)
49+
escape args properly on Windows Bash Despite being bash, Node.js running
50+
on windows git mingw bash still executes child processes using cmd.exe.
51+
As a result, arguments in this environment need to be escaped in the
52+
style of cmd.exe, not bash. ([@isaacs](https://github.com/isaacs))
53+
54+
### TESTS
55+
56+
* [`291aba7b8`](https://github.com/npm/cli/commit/291aba7b821e247b96240b1ec037310ead69a594)
57+
make tests pass on Windows ([@isaacs](https://github.com/isaacs))
58+
* [`fea3a023a`](https://github.com/npm/cli/commit/fea3a023a80863f32a5f97f5132401b1a16161b8)
59+
travis: run tests on Windows as well
60+
([@isaacs](https://github.com/isaacs))
61+
62+
## 6.11.1 (2019-08-20):
63+
64+
Fix a regression for windows command shim syntax.
65+
66+
* [`37db29647`](https://github.com/npm/cli/commit/37db2964710c80003604b7e3c1527d17be7ed3d0)
67+
`[email protected]` ([@isaacs](https://github.com/isaacs))
68+
69+
## v6.11.0 (2019-08-20):
70+
71+
A few meaty bugfixes, and introducing `peerDependenciesMeta`.
72+
73+
### FEATURES
74+
75+
* [`a12341088`](https://github.com/npm/cli/commit/a12341088820c0e7ef6c1c0db3c657f0c2b3943e)
76+
[#224](https://github.com/npm/cli/pull/224) Implements
77+
peerDependenciesMeta ([@arcanis](https://github.com/arcanis))
78+
* [`2f3b79bba`](https://github.com/npm/cli/commit/2f3b79bbad820fd4a398aa494b19f79b7fd520a1)
79+
[#234](https://github.com/npm/cli/pull/234) add new forbidden 403 error
80+
code ([@claudiahdz](https://github.com/claudiahdz))
81+
82+
### BUGFIXES
83+
84+
* [`24acc9fc8`](https://github.com/npm/cli/commit/24acc9fc89d99d87cc66206c6c6f7cdc82fbf763)
85+
and
86+
[`45772af0d`](https://github.com/npm/cli/commit/45772af0ddca54b658cb2ba2182eec26d0a4729d)
87+
[#217](https://github.com/npm/cli/pull/217)
88+
[npm.community#8863](https://npm.community/t/installing-the-same-module-under-multiple-relative-paths-fails-on-linux/8863)
89+
[npm.community#9327](https://npm.community/t/reinstall-breaks-after-npm-update-to-6-10-2/9327,)
90+
do not descend into directory deps' child modules, fix shrinkwrap files
91+
that inappropriately list child nodes of symlink packages
92+
([@isaacs](https://github.com/isaacs) and
93+
[@salomvary](https://github.com/salomvary))
94+
* [`50cfe113d`](https://github.com/npm/cli/commit/50cfe113da5fcc59c1d99b0dcf1050ace45803c7)
95+
[#229](https://github.com/npm/cli/pull/229) fixed typo in semver doc
96+
([@gall0ws](https://github.com/gall0ws))
97+
* [`e8fb2a1bd`](https://github.com/npm/cli/commit/e8fb2a1bd9785e0092e9926f4fd65ad431e38452)
98+
[#231](https://github.com/npm/cli/pull/231) Fix spelling mistakes in
99+
CHANGELOG-3.md ([@XhmikosR](https://github.com/XhmikosR))
100+
* [`769d2e057`](https://github.com/npm/cli/commit/769d2e057daf5a2cbfe0ce86f02550e59825a691)
101+
[npm/uid-number#7](https://github.com/npm/uid-number/issues/7) Better
102+
error on invalid `--user`/`--group` configs. This addresses the issue
103+
when people fail to install binary packages on Docker and other
104+
environments where there is no 'nobody' user.
105+
([@isaacs](https://github.com/isaacs))
106+
* [`8b43c9624`](https://github.com/npm/cli/commit/8b43c962498c8e2707527e4fca442d7a4fa51595)
107+
[nodejs/node#28987](https://github.com/nodejs/node/issues/28987)
108+
[npm.community#6032](https://npm.community/t/npm-ci-doesnt-respect-npmrc-variables/6032)
109+
[npm.community#6658](https://npm.community/t/npm-ci-doesnt-fill-anymore-the-process-env-npm-config-cache-variable-on-post-install-scripts/6658)
110+
[npm.community#6069](https://npm.community/t/npm-ci-does-not-compile-native-dependencies-according-to-npmrc-configuration/6069)
111+
[npm.community#9323](https://npm.community/t/npm-6-9-x-not-passing-environment-to-node-gyp-regression-from-6-4-x/9323/2)
112+
Fix the regression where random config values in a .npmrc file are not
113+
passed to lifecycle scripts, breaking build processes which rely on them.
114+
([@isaacs](https://github.com/isaacs))
115+
* [`8b85eaa47`](https://github.com/npm/cli/commit/8b85eaa47da3abaacc90fe23162a68cc6e1f0404)
116+
save files with inferred ownership rather than relying on `SUDO_UID` and
117+
`SUDO_GID`. ([@isaacs](https://github.com/isaacs))
118+
* [`b7f6e5f02`](https://github.com/npm/cli/commit/b7f6e5f0285515087b4614d81db17206524c0fdb)
119+
Infer ownership of shrinkwrap files
120+
([@isaacs](https://github.com/isaacs))
121+
* [`54b095d77`](https://github.com/npm/cli/commit/54b095d77b3b131622b3cf4cb5c689aa2dd10b6b)
122+
[#235](https://github.com/npm/cli/pull/235) Add spec to dist-tag remove
123+
function ([@theberbie](https://github.com/theberbie))
124+
125+
### DEPENDENCIES
126+
127+
* [`dc8f9e52f`](https://github.com/npm/cli/commit/dc8f9e52f0bb107c0a6b20cc0c97cbc3b056c1b3)
128+
`[email protected]`: Infer the ownership of all unpacked files in
129+
`node_modules`, so that we never have user-owned files in root-owned
130+
folders, or root-owned files in user-owned folders.
131+
([@isaacs](https://github.com/isaacs))
132+
* [`bb33940c3`](https://github.com/npm/cli/commit/bb33940c32aad61704084e61ebd1bd8e7cacccc8)
133+
134+
* [`9c93ac3`](https://github.com/npm/cmd-shim/commit/9c93ac39e95b0d6ae852e842e4c5dba5e19687c2)
135+
[#2](https://github.com/npm/cmd-shim/pull/2)
136+
[npm#3380](https://github.com/npm/npm/issues/3380) Handle environment
137+
variables properly ([@basbossink](https://github.com/basbossink))
138+
* [`2d277f8`](https://github.com/npm/cmd-shim/commit/2d277f8e84d45401747b0b9470058f168b974ad5)
139+
[#25](https://github.com/npm/cmd-shim/pull/25)
140+
[#36](https://github.com/npm/cmd-shim/pull/36)
141+
[#35](https://github.com/npm/cmd-shim/pull/35) Fix 'no shebang' case by
142+
always providing `$basedir` in shell script
143+
([@igorklopov](https://github.com/igorklopov))
144+
* [`adaf20b`](https://github.com/npm/cmd-shim/commit/adaf20b7fa2c09c2111a2506c6a3e53ed0831f88)
145+
[#26](https://github.com/npm/cmd-shim/pull/26) Fix `$*` causing an
146+
error when arguments contain parentheses
147+
([@satazor](https://github.com/satazor))
148+
* [`49f0c13`](https://github.com/npm/cmd-shim/commit/49f0c1318fd384e0031c3fd43801f0e22e1e555f)
149+
[#30](https://github.com/npm/cmd-shim/pull/30) Fix paths for MSYS/MINGW
150+
bash ([@dscho](https://github.com/dscho))
151+
* [`51a8af3`](https://github.com/npm/cmd-shim/commit/51a8af30990cb072cb30d67fc1b564b14746bba9)
152+
[#34](https://github.com/npm/cmd-shim/pull/34) Add proper support for
153+
PowerShell ([@ExE-Boss](https://github.com/ExE-Boss))
154+
* [`4c37e04`](https://github.com/npm/cmd-shim/commit/4c37e048dee672237e8962fdffca28e20e9f976d)
155+
[#10](https://github.com/npm/cmd-shim/issues/10) Work around quoted
156+
batch file names ([@isaacs](https://github.com/isaacs))
157+
* [`a4e279544`](https://github.com/npm/cli/commit/a4e279544f7983e0adff1e475e3760f1ea85825a)
158+
`[email protected]` ([@isaacs](https://github.com/isaacs)):
159+
* fail properly if `uid-number` raises an error
160+
* [`7086a1809`](https://github.com/npm/cli/commit/7086a1809bbfda9be81344b3949c7d3ac687ffc4)
161+
`[email protected]` ([@isaacs](https://github.com/isaacs))
162+
* [`8845141f9`](https://github.com/npm/cli/commit/8845141f9d7827dae572c8cf26f2c775db905bd3)
163+
`[email protected]` ([@isaacs](https://github.com/isaacs))
164+
* [`51c028215`](https://github.com/npm/cli/commit/51c02821575d80035ebe853492d110db11a7d1b9)
165+
`[email protected]` ([@isaacs](https://github.com/isaacs))
166+
* [`534a5548c`](https://github.com/npm/cli/commit/534a5548c9ebd59f0dd90e9ccca148ed8946efa6)
167+
`[email protected]` ([@isaacs](https://github.com/isaacs))
168+
* [`3038f2fd5`](https://github.com/npm/cli/commit/3038f2fd5b1d7dd886ee72798241d8943690f508)
169+
`[email protected]` ([@isaacs](https://github.com/isaacs))
170+
* [`a609a1648`](https://github.com/npm/cli/commit/a609a16489f76791697d270b499fd4949ab1f8c3)
171+
`[email protected]` ([@isaacs](https://github.com/isaacs))
172+
* [`f0346f754`](https://github.com/npm/cli/commit/f0346f75490619a81b310bfc18646ae5ae2e0ea4)
173+
`[email protected]` ([@isaacs](https://github.com/isaacs))
174+
* [`ca9c615c8`](https://github.com/npm/cli/commit/ca9c615c8cff5c7db125735eb09f84d912d18694)
175+
`[email protected]` ([@isaacs](https://github.com/isaacs))
176+
* [`b417affbf`](https://github.com/npm/cli/commit/b417affbf7133dc7687fd809e4956a43eae3438a)
177+
`[email protected]` ([@isaacs](https://github.com/isaacs))
178+
179+
### TESTS
180+
181+
* [`b6df0913c`](https://github.com/npm/cli/commit/b6df0913ca73246f1fa6cfa0e81e34ba5f2b6204)
182+
[#228](https://github.com/npm/cli/pull/228) Proper handing of
183+
/usr/bin/node lifecycle-path test
184+
([@olivr70](https://github.com/olivr70))
185+
* [`aaf98e88c`](https://github.com/npm/cli/commit/aaf98e88c78fd6c850d0a3d3ee2f61c02f63bc8c)
186+
`[email protected]` ([@isaacs](https://github.com/isaacs))
187+
1188
## v6.10.3 (2019-08-06):
2189

3190
### BUGFIXES

deps/npm/changelogs/CHANGELOG-3.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2864,7 +2864,7 @@ Historically, if you used a pre-release version of Node.js, you would get
28642864
dozens and dozens of warnings when EVERY engine check failed across all of
28652865
your modules, because `>= 0.10.0` doesn't match prereleases.
28662866

2867-
You might find this stream of redundent warnings undesirable. I do.
2867+
You might find this stream of redundant warnings undesirable. I do.
28682868

28692869
We've moved this into a SINGLE warning you'll get about using a pre-release
28702870
version of Node.js and now suppress those other warnings.
@@ -3524,7 +3524,7 @@ it would just refuse to install anything. (We fixed that in
35243524
[#10338](https://github.com/npm/npm/pull/10338)
35253525
Updating a module could result in the module stealing some of its
35263526
dependencies from the top level, potentially breaking other modules or
3527-
resulting in many redundent installations. This bug was first introduced
3527+
resulting in many redundant installations. This bug was first introduced
35283528
by [`971fd47a`](https://github.com/npm/npm/commit/971fd47a).
35293529
([@iarna](https://github.com/iarna))
35303530
* [`5653366`](https://github.com/npm/npm/commit/5653366)

deps/npm/doc/misc/semver.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,15 @@ range, use the `satisfies(version, range)` function.
398398

399399
* `coerce(version)`: Coerces a string to semver if possible
400400

401-
This aims to provide a very forgiving translation of a non-semver
402-
string to semver. It looks for the first digit in a string, and
403-
consumes all remaining characters which satisfy at least a partial semver
404-
(e.g., `1`, `1.2`, `1.2.3`) up to the max permitted length (256 characters).
405-
Longer versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`).
406-
All surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes `3.4.0`).
407-
Only text which lacks digits will fail coercion (`version one` is not valid).
408-
The maximum length for any semver component considered for coercion is 16 characters;
409-
longer components will be ignored (`10000000000000000.4.7.4` becomes `4.7.4`).
410-
The maximum value for any semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`;
411-
higher value components are invalid (`9999999999999999.4.7.4` is likely invalid).
401+
This aims to provide a very forgiving translation of a non-semver string to
402+
semver. It looks for the first digit in a string, and consumes all
403+
remaining characters which satisfy at least a partial semver (e.g., `1`,
404+
`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer
405+
versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All
406+
surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes
407+
`3.4.0`). Only text which lacks digits will fail coercion (`version one`
408+
is not valid). The maximum length for any semver component considered for
409+
coercion is 16 characters; longer components will be ignored
410+
(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any
411+
semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value
412+
components are invalid (`9999999999999999.4.7.4` is likely invalid).

deps/npm/html/doc/README.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,5 @@ <h2 id="see-also">SEE ALSO</h2>
118118
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
119119
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
120120
</table>
121-
<p id="footer"><a href="../doc/README.html">README</a> &mdash; npm@6.10.3</p>
121+
<p id="footer"><a href="../doc/README.html">README</a> &mdash; npm@6.11.3</p>
122122

0 commit comments

Comments
 (0)