Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit ba243dd

Browse files
MylesBorinsQard
authored andcommitted
deps: update npm to 5.5.1
Closes: nodejs/node#16280 PR-URL: nodejs/node#16509 Fixes: nodejs/node#14161 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 1dd85ce commit ba243dd

File tree

1,870 files changed

+109118
-34836
lines changed

Some content is hidden

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

1,870 files changed

+109118
-34836
lines changed

deps/npm/.mailmap

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Jake Verbaten <raynos2@gmail.com>
3232
James Sanders <jimmyjazz14@gmail.com>
3333
James Treworgy <jamietre@gmail.com>
3434
Jason Smith <jhs@iriscouch.com>
35+
Joshua Bennett <legodudejb@gmail.com>
3536
Jonas Weber <github@jonasw.de>
3637
Julien Meddah <julien.meddah@deveryware.com>
3738
Kevin Lorenz <mail@kevinlorenz.com>

deps/npm/.travis.yml

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ matrix:
2525
script:
2626
- "standard"
2727
- "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""
28-
before_install:
29-
# required by test/tap/registry.js
30-
- "mkdir -p /var/run/couchdb"
3128
notifications:
3229
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
3330
cache:

deps/npm/AUTHORS

+24-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Daniel Paz-Soldan <daniel.pazsoldan@gmail.com>
424424
Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
425425
Zach Renner <zarenner@microsoft.com>
426426
Christopher Hiller <boneskull@boneskull.com>
427-
legodude17 <legodudejb@gmail.com>
427+
Joshua Bennett <legodudejb@gmail.com>
428428
Andrew Meyer <andrewm.bpi@gmail.com>
429429
Michael Jasper <mdjasper@gmail.com>
430430
Max <contact@mstoiber.com>
@@ -503,3 +503,26 @@ Sanketh Katta <sankethkatta@gmail.com>
503503
Tim Needham <tim.needham@wmfs.net>
504504
leonardo rojas <leonardo.rojas@shopify.com>
505505
Mark Peter Fejes <fejes.mark@gmail.com>
506+
Ryan Florence <rpflorence@gmail.com>
507+
MichaelQQ <mingsian.tu@vpon.com>
508+
Anders D. Johnson <anders.d.johnson.developer@gmail.com>
509+
Benjamin Fernandes <lotharsee@gmail.com>
510+
Simon Kurtz <simonkurtz@gmail.com>
511+
David Goss <david@davidgoss.co.uk>
512+
Luis Gustavo Pereira <lgp1985@yahoo.com.br>
513+
Amos Wenger <fasterthanlime@users.noreply.github.com>
514+
Samuel Marks <samuelmarks@gmail.com>
515+
Victor Travieso <victor@grabcad.com>
516+
legodude17 <legodude17@users.noreply.github.com>
517+
Joshua Chaitin-Pollak <jbcpollak@users.noreply.github.com>
518+
Brendan Warkentin <faazshift@gmail.com>
519+
Scott Santucci <ScottFreeCode@users.noreply.github.com>
520+
Xavier Cambar <xcambar@gmail.com>
521+
Vikram <nrvikram19@gmail.com>
522+
Igor Nadj <igor.nadj@shinesolutions.com>
523+
Tong Li <supertong@users.noreply.github.com>
524+
tripu <t@tripu.info>
525+
Carsten Brandt <mail@cebe.cc>
526+
Marcin Szczepanski <marcin@imagichine.com.au>
527+
Josh Clow <josh@textio.com>
528+
Jakub Holy <jakubholy@jakubholy.net>

deps/npm/CHANGELOG.md

+399
Large diffs are not rendered by default.

deps/npm/Makefile

+14-10
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,16 @@ doc-clean:
8888
html/doc \
8989
man
9090

91+
## build-time tools for the documentation
92+
build-doc-tools := node_modules/.bin/marked \
93+
node_modules/.bin/marked-man
94+
9195
# use `npm install marked-man` for this to work.
92-
man/man1/npm-README.1: README.md scripts/doc-build.sh package.json
96+
man/man1/npm-README.1: README.md scripts/doc-build.sh package.json $(build-doc-tools)
9397
@[ -d man/man1 ] || mkdir -p man/man1
9498
scripts/doc-build.sh $< $@
9599

96-
man/man1/%.1: doc/cli/%.md scripts/doc-build.sh package.json
100+
man/man1/%.1: doc/cli/%.md scripts/doc-build.sh package.json $(build-doc-tools)
97101
@[ -d man/man1 ] || mkdir -p man/man1
98102
scripts/doc-build.sh $< $@
99103

@@ -106,26 +110,26 @@ man/man5/npm-json.5: man/man5/package.json.5
106110
man/man5/npm-global.5: man/man5/npm-folders.5
107111
cp $< $@
108112

109-
man/man5/%.5: doc/files/%.md scripts/doc-build.sh package.json
113+
man/man5/%.5: doc/files/%.md scripts/doc-build.sh package.json $(build-doc-tools)
110114
@[ -d man/man5 ] || mkdir -p man/man5
111115
scripts/doc-build.sh $< $@
112116

113-
doc/misc/npm-index.md: scripts/index-build.js package.json
117+
doc/misc/npm-index.md: scripts/index-build.js package.json $(build-doc-tools)
114118
node scripts/index-build.js > $@
115119

116-
html/doc/index.html: doc/misc/npm-index.md $(html_docdeps)
120+
html/doc/index.html: doc/misc/npm-index.md $(html_docdeps) $(build-doc-tools)
117121
@[ -d html/doc ] || mkdir -p html/doc
118122
scripts/doc-build.sh $< $@
119123

120-
man/man7/%.7: doc/misc/%.md scripts/doc-build.sh package.json
124+
man/man7/%.7: doc/misc/%.md scripts/doc-build.sh package.json $(build-doc-tools)
121125
@[ -d man/man7 ] || mkdir -p man/man7
122126
scripts/doc-build.sh $< $@
123127

124-
html/doc/README.html: README.md $(html_docdeps)
128+
html/doc/README.html: README.md $(html_docdeps) $(build-doc-tools)
125129
@[ -d html/doc ] || mkdir -p html/doc
126130
scripts/doc-build.sh $< $@
127131

128-
html/doc/cli/%.html: doc/cli/%.md $(html_docdeps)
132+
html/doc/cli/%.html: doc/cli/%.md $(html_docdeps) $(build-doc-tools)
129133
@[ -d html/doc/cli ] || mkdir -p html/doc/cli
130134
scripts/doc-build.sh $< $@
131135

@@ -135,11 +139,11 @@ html/doc/files/npm-json.html: html/doc/files/package.json.html
135139
html/doc/files/npm-global.html: html/doc/files/npm-folders.html
136140
cp $< $@
137141

138-
html/doc/files/%.html: doc/files/%.md $(html_docdeps)
142+
html/doc/files/%.html: doc/files/%.md $(html_docdeps) $(build-doc-tools)
139143
@[ -d html/doc/files ] || mkdir -p html/doc/files
140144
scripts/doc-build.sh $< $@
141145

142-
html/doc/misc/%.html: doc/misc/%.md $(html_docdeps)
146+
html/doc/misc/%.html: doc/misc/%.md $(html_docdeps) $(build-doc-tools)
143147
@[ -d html/doc/misc ] || mkdir -p html/doc/misc
144148
scripts/doc-build.sh $< $@
145149

deps/npm/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ you have chosen.
141141

142142
## More Docs
143143

144-
Check out the [docs](https://docs.npmjs.com/),
144+
Check out the [docs](https://docs.npmjs.com/).
145145

146146
You can use the `npm help` command to read any of them.
147147

148148
If you're a developer, and you want to use npm to publish your program,
149-
you should [read this](https://docs.npmjs.com/misc/developers)
149+
you should [read this](https://docs.npmjs.com/misc/developers).
150150

151151
## BUGS
152152

deps/npm/bin/read-package-json.js

-24
This file was deleted.

deps/npm/doc/cli/npm-access.md

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ You must have privileges to set the access of a package:
6060
* You have been given read-write privileges for a package, either as a member
6161
of a team or directly as an owner.
6262

63+
If you have two-factor authentication enabled then you'll have to pass in an
64+
otp with `--otp` when making access changes.
65+
6366
If your account is not paid, then attempts to publish scoped packages will fail
6467
with an HTTP 402 status code (logically enough), unless you use
6568
`--access=public`.

deps/npm/doc/cli/npm-config.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ npm-config(1) -- Manage the npm configuration files
66
npm config set <key> <value> [-g|--global]
77
npm config get <key>
88
npm config delete <key>
9-
npm config list [-l]
9+
npm config list [-l] [--json]
1010
npm config edit
1111
npm get <key>
1212
npm set <key> <value> [-g|--global]
@@ -48,7 +48,8 @@ Echo the config value to stdout.
4848

4949
npm config list
5050

51-
Show all the config settings. Use `-l` to also show defaults.
51+
Show all the config settings. Use `-l` to also show defaults. Use `--json`
52+
to show the settings in json format.
5253

5354
### delete
5455

deps/npm/doc/cli/npm-dist-tag.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Add, remove, and enumerate distribution tags on a package:
1515

1616
* add:
1717
Tags the specified version of the package with the specified tag, or the
18-
`--tag` config if not specified.
18+
`--tag` config if not specified. The tag you're adding is `latest` and you
19+
have two-factor authentication on auth-and-writes then you'll need to include
20+
an otp on the command line with `--otp`.
1921

2022
* rm:
2123
Clear a tag that is no longer in use from the package.

deps/npm/doc/cli/npm-owner.md

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Note that there is only one level of access. Either you can modify a package,
2727
or you can't. Future versions may contain more fine-grained access levels, but
2828
that is not implemented at this time.
2929

30+
If you have two-factor authentication enabled with `auth-and-writes` then
31+
you'll need to include an otp on the command line when changing ownership
32+
with `--otp`.
33+
3034
## SEE ALSO
3135

3236
* npm-publish(1)

deps/npm/doc/cli/npm-ping.md

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ npm-ping(1) -- Ping npm registry
88
## DESCRIPTION
99

1010
Ping the configured or given npm registry and verify authentication.
11+
If it works it will output something like:
12+
```
13+
Ping success: {*Details about registry*}
14+
```
15+
otherwise you will get:
16+
```
17+
Ping error: {*Detail about error}
18+
```
1119

1220
## SEE ALSO
1321

deps/npm/doc/cli/npm-profile.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
npm-profile(1) -- Change settings on your registry profile
2+
==========================================================
3+
4+
## SYNOPSIS
5+
6+
npm profile get [--json|--parseable] [<property>]
7+
npm profile set [--json|--parseable] <property> <value>
8+
npm profile set password
9+
npm profile enable-2fa [auth-and-writes|auth-only]
10+
npm profile disable-2fa
11+
12+
## DESCRIPTION
13+
14+
Change your profile information on the registry. This not be available if
15+
you're using a non-npmjs registry.
16+
17+
* `npm profile get [<property>]`:
18+
Display all of the properties of your profile, or one or more specific
19+
properties. It looks like:
20+
21+
```
22+
+-----------------+---------------------------+
23+
| name | example |
24+
+-----------------+---------------------------+
25+
| email | me@example.com (verified) |
26+
+-----------------+---------------------------+
27+
| two factor auth | auth-and-writes |
28+
+-----------------+---------------------------+
29+
| fullname | Example User |
30+
+-----------------+---------------------------+
31+
| homepage | |
32+
+-----------------+---------------------------+
33+
| freenode | |
34+
+-----------------+---------------------------+
35+
| twitter | |
36+
+-----------------+---------------------------+
37+
| github | |
38+
+-----------------+---------------------------+
39+
| created | 2015-02-26T01:38:35.892Z |
40+
+-----------------+---------------------------+
41+
| updated | 2017-10-02T21:29:45.922Z |
42+
+-----------------+---------------------------+
43+
```
44+
45+
* `npm profile set <property> <value>`:
46+
Set the value of a profile property. You can set the following properties this way:
47+
email, fullname, homepage, freenode, twitter, github
48+
49+
* `npm profile set password`:
50+
Change your password. This is interactive, you'll be prompted for your
51+
current password and a new password. You'll also be prompted for an OTP
52+
if you have two-factor authentication enabled.
53+
54+
* `npm profile enable-2fa [auth-and-writes|auth-only]`:
55+
Enables two-factor authentication. Defaults to `auth-and-writes` mode. Modes are:
56+
* `auth-only`: Require an OTP when logging in or making changes to your
57+
account's authentication. The OTP will be required on both the website
58+
and the command line.
59+
* `auth-and-writes`: Requires an OTP at all the times `auth-only` does, and also requires one when
60+
publishing a module, setting the `latest` dist-tag, or changing access
61+
via `npm access` and `npm owner`.
62+
63+
* `npm profile disable-2fa`:
64+
Disables two-factor authentication.
65+
66+
## DETAILS
67+
68+
All of the `npm profile` subcommands accept `--json` and `--parseable` and
69+
will tailor their output based on those. Some of these commands may not be
70+
available on non npmjs.com registries.
71+
72+
## SEE ALSO
73+
74+
* npm-config(7)

deps/npm/doc/cli/npm-publish.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ npm-publish(1) -- Publish a package
44

55
## SYNOPSIS
66

7-
npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>]
7+
npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>] [--otp otpcode]
88

99
Publishes '.' if no argument supplied
1010
Sets tag 'latest' if no --tag specified
@@ -41,6 +41,11 @@ specifying a different default registry or using a `npm-scope(7)` in the name
4141
If you don't have a paid account, you must publish with `--access public`
4242
to publish scoped packages.
4343

44+
* `[--otp <otpcode>]`
45+
If you have two-factor authentication enabled in `auth-and-writes` mode
46+
then you can provide a code from your authenticator with this. If you
47+
don't include this and you're running from a TTY then you'll be prompted.
48+
4449
Fails if the package name and version combination already exists in
4550
the specified registry.
4651

@@ -65,3 +70,4 @@ packs them into a tarball to be uploaded to the registry.
6570
* npm-deprecate(1)
6671
* npm-dist-tag(1)
6772
* npm-pack(1)
73+
* npm-profile(1)

deps/npm/doc/cli/npm-run-script.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ and not to any pre or post script.
2727

2828
The `env` script is a special built-in command that can be used to list
2929
environment variables that will be available to the script at runtime. If an
30-
"env" command is defined in your package it will take precedence over the
30+
"env" command is defined in your package, it will take precedence over the
3131
built-in.
3232

3333
In addition to the shell's pre-existing `PATH`, `npm run` adds
@@ -38,7 +38,17 @@ you should write:
3838

3939
"scripts": {"test": "tap test/\*.js"}
4040

41-
instead of `"scripts": {"test": "node_modules/.bin/tap test/\*.js"}` to run your tests.
41+
instead of
42+
43+
"scripts": {"test": "node_modules/.bin/tap test/\*.js"}
44+
45+
to run your tests.
46+
47+
Scripts are run from the root of the module, regardless of what your current
48+
working directory is when you call `npm run`. If you want your script to
49+
use different behavior based on what subdirectory you're in, you can use the
50+
`INIT_CWD` environment variable, which holds the full path you were in when
51+
you ran `npm run`.
4252

4353
`npm run` sets the `NODE` environment variable to the `node` executable with
4454
which `npm` is executed. Also, if the `--scripts-prepend-node-path` is passed,

0 commit comments

Comments
 (0)