Skip to content

Commit ca97fb6

Browse files
othiym23jasnell
authored andcommitted
deps: upgrade npm to 2.14.9
This is a roll-up release that includes all changes to npm since 2.13.4. PR-URL: #3684 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8344161 commit ca97fb6

File tree

979 files changed

+20346
-53262
lines changed

Some content is hidden

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

979 files changed

+20346
-53262
lines changed

deps/npm/.npmrc

-2
This file was deleted.

deps/npm/.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: node_js
22
node_js:
3+
- "4.1"
4+
- "4.0"
35
- iojs
46
- "0.12"
57
- "0.10"

deps/npm/AUTHORS

+11
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,14 @@ Steve Klabnik <[email protected]>
302302
Andrew Murray <[email protected]>
303303
Stephan Bönnemann <[email protected]>
304304
Kyle M. Tarplee <[email protected]>
305+
Derek Peterson <[email protected]>
306+
Greg Whiteley <[email protected]>
307+
murgatroid99 <[email protected]>
308+
Marcin Cieslak <[email protected]>
309+
João Reis <[email protected]>
310+
Matthew Hasbach <[email protected]>
311+
Anna Henningsen <[email protected]>
312+
313+
James Hartig <[email protected]>
314+
315+
Jason Kurian <[email protected]>

deps/npm/CHANGELOG.md

+589-1
Large diffs are not rendered by default.

deps/npm/Makefile

+15-69
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,6 @@ misc_mandocs = $(shell find doc/misc -name '*.md' \
3131
|sed 's|doc/misc/|man/man7/|g' ) \
3232
man/man7/npm-index.7
3333

34-
35-
cli_partdocs = $(shell find doc/cli -name '*.md' \
36-
|sed 's|.md|.html|g' \
37-
|sed 's|doc/cli/|html/partial/doc/cli/|g' ) \
38-
html/partial/doc/README.html
39-
40-
api_partdocs = $(shell find doc/api -name '*.md' \
41-
|sed 's|.md|.html|g' \
42-
|sed 's|doc/api/|html/partial/doc/api/|g' )
43-
44-
files_partdocs = $(shell find doc/files -name '*.md' \
45-
|sed 's|.md|.html|g' \
46-
|sed 's|doc/files/|html/partial/doc/files/|g' ) \
47-
html/partial/doc/files/npm-json.html \
48-
html/partial/doc/files/npm-global.html
49-
50-
misc_partdocs = $(shell find doc/misc -name '*.md' \
51-
|sed 's|.md|.html|g' \
52-
|sed 's|doc/misc/|html/partial/doc/misc/|g' ) \
53-
html/partial/doc/index.html
54-
55-
5634
cli_htmldocs = $(shell find doc/cli -name '*.md' \
5735
|sed 's|.md|.html|g' \
5836
|sed 's|doc/cli/|html/doc/cli/|g' ) \
@@ -75,8 +53,6 @@ misc_htmldocs = $(shell find doc/misc -name '*.md' \
7553

7654
mandocs = $(api_mandocs) $(cli_mandocs) $(files_mandocs) $(misc_mandocs)
7755

78-
partdocs = $(api_partdocs) $(cli_partdocs) $(files_partdocs) $(misc_partdocs)
79-
8056
htmldocs = $(api_htmldocs) $(cli_htmldocs) $(files_htmldocs) $(misc_htmldocs)
8157

8258
all: doc
@@ -103,7 +79,7 @@ clean: markedclean marked-manclean doc-clean uninstall
10379
uninstall:
10480
node cli.js rm npm -g -f
10581

106-
doc: $(mandocs) $(htmldocs) $(partdocs)
82+
doc: $(mandocs) $(htmldocs)
10783

10884
markedclean:
10985
rm -rf node_modules/marked node_modules/.bin/marked .building_marked
@@ -143,73 +119,43 @@ man/man5/%.5: doc/files/%.md scripts/doc-build.sh package.json
143119
@[ -d man/man5 ] || mkdir -p man/man5
144120
scripts/doc-build.sh $< $@
145121

146-
man/man7/%.7: doc/misc/%.md scripts/doc-build.sh package.json
147-
@[ -d man/man7 ] || mkdir -p man/man7
148-
scripts/doc-build.sh $< $@
149-
150-
151122
doc/misc/npm-index.md: scripts/index-build.js package.json
152123
node scripts/index-build.js > $@
153124

154-
155-
# html/doc depends on html/partial/doc
156-
html/doc/%.html: html/partial/doc/%.html
157-
@[ -d html/doc ] || mkdir -p html/doc
158-
scripts/doc-build.sh $< $@
159-
160-
html/doc/README.html: html/partial/doc/README.html
125+
html/doc/index.html: doc/misc/npm-index.md $(html_docdeps)
161126
@[ -d html/doc ] || mkdir -p html/doc
162127
scripts/doc-build.sh $< $@
163128

164-
html/doc/cli/%.html: html/partial/doc/cli/%.html
165-
@[ -d html/doc/cli ] || mkdir -p html/doc/cli
129+
man/man7/%.7: doc/misc/%.md scripts/doc-build.sh package.json
130+
@[ -d man/man7 ] || mkdir -p man/man7
166131
scripts/doc-build.sh $< $@
167132

168-
html/doc/misc/%.html: html/partial/doc/misc/%.html
169-
@[ -d html/doc/misc ] || mkdir -p html/doc/misc
133+
html/doc/README.html: README.md $(html_docdeps)
134+
@[ -d html/doc ] || mkdir -p html/doc
170135
scripts/doc-build.sh $< $@
171136

172-
html/doc/files/%.html: html/partial/doc/files/%.html
173-
@[ -d html/doc/files ] || mkdir -p html/doc/files
137+
html/doc/cli/%.html: doc/cli/%.md $(html_docdeps)
138+
@[ -d html/doc/cli ] || mkdir -p html/doc/cli
174139
scripts/doc-build.sh $< $@
175140

176-
html/doc/api/%.html: html/partial/doc/api/%.html
141+
html/doc/api/%.html: doc/api/%.md $(html_docdeps)
177142
@[ -d html/doc/api ] || mkdir -p html/doc/api
178143
scripts/doc-build.sh $< $@
179144

180-
181-
html/partial/doc/index.html: doc/misc/npm-index.md $(html_docdeps)
182-
@[ -d html/partial/doc ] || mkdir -p html/partial/doc
183-
scripts/doc-build.sh $< $@
184-
185-
html/partial/doc/README.html: README.md $(html_docdeps)
186-
@[ -d html/partial/doc ] || mkdir -p html/partial/doc
187-
scripts/doc-build.sh $< $@
188-
189-
html/partial/doc/cli/%.html: doc/cli/%.md $(html_docdeps)
190-
@[ -d html/partial/doc/cli ] || mkdir -p html/partial/doc/cli
191-
scripts/doc-build.sh $< $@
192-
193-
html/partial/doc/api/%.html: doc/api/%.md $(html_docdeps)
194-
@[ -d html/partial/doc/api ] || mkdir -p html/partial/doc/api
195-
scripts/doc-build.sh $< $@
196-
197-
html/partial/doc/files/npm-json.html: html/partial/doc/files/package.json.html
145+
html/doc/files/npm-json.html: html/doc/files/package.json.html
198146
cp $< $@
199-
html/partial/doc/files/npm-global.html: html/partial/doc/files/npm-folders.html
147+
html/doc/files/npm-global.html: html/doc/files/npm-folders.html
200148
cp $< $@
201149

202-
html/partial/doc/files/%.html: doc/files/%.md $(html_docdeps)
203-
@[ -d html/partial/doc/files ] || mkdir -p html/partial/doc/files
150+
html/doc/files/%.html: doc/files/%.md $(html_docdeps)
151+
@[ -d html/doc/files ] || mkdir -p html/doc/files
204152
scripts/doc-build.sh $< $@
205153

206-
html/partial/doc/misc/%.html: doc/misc/%.md $(html_docdeps)
207-
@[ -d html/partial/doc/misc ] || mkdir -p html/partial/doc/misc
154+
html/doc/misc/%.html: doc/misc/%.md $(html_docdeps)
155+
@[ -d html/doc/misc ] || mkdir -p html/doc/misc
208156
scripts/doc-build.sh $< $@
209157

210158

211-
212-
213159
marked: node_modules/.bin/marked
214160

215161
node_modules/.bin/marked:

deps/npm/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and prior, clone the git repo and dig through the old tags and branches.
1616

1717
## Super Easy Install
1818

19-
npm comes with [node](http://nodejs.org/download/) now.
19+
npm is bundled with [node](http://nodejs.org/download/).
2020

2121
### Windows Computers
2222

deps/npm/bin/npm

+17-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,21 @@ case `uname` in
77
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
88
esac
99

10-
if [ -x "$basedir/node.exe" ]; then
11-
"$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
12-
else
13-
node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
10+
NODE_EXE="$basedir/node.exe"
11+
if ! [ -x "$NODE_EXE" ]; then
12+
NODE_EXE=node
1413
fi
14+
15+
NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js"
16+
17+
case `uname` in
18+
*CYGWIN*)
19+
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
20+
NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
21+
if [ -f "$NPM_PREFIX_NPM_CLI_JS" ]; then
22+
NPM_CLI_JS="$NPM_PREFIX_NPM_CLI_JS"
23+
fi
24+
;;
25+
esac
26+
27+
"$NODE_EXE" "$NPM_CLI_JS" "$@"

deps/npm/bin/npm.cmd

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
:: Created by npm, please don't edit manually.
2-
@IF EXIST "%~dp0\node.exe" (
3-
"%~dp0\node.exe" "%~dp0\.\node_modules\npm\bin\npm-cli.js" %*
4-
) ELSE (
5-
node "%~dp0\.\node_modules\npm\bin\npm-cli.js" %*
6-
)
1+
:: Created by npm, please don't edit manually.
2+
@ECHO OFF
3+
4+
SETLOCAL
5+
6+
SET "NODE_EXE=%~dp0\node.exe"
7+
IF NOT EXIST "%NODE_EXE%" (
8+
SET "NODE_EXE=node"
9+
)
10+
11+
SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
12+
FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO (
13+
SET "NPM_PREFIX_NPM_CLI_JS=%%F\node_modules\npm\bin\npm-cli.js"
14+
)
15+
IF EXIST "%NPM_PREFIX_NPM_CLI_JS%" (
16+
SET "NPM_CLI_JS=%NPM_PREFIX_NPM_CLI_JS%"
17+
)
18+
19+
"%NODE_EXE%" "%NPM_CLI_JS%" %*

deps/npm/doc/api/npm-view.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ If a version range is provided, then data will be printed for every
6565
matching version of the package. This will show which version of jsdom
6666
was required by each matching version of yui3:
6767

68-
npm.commands.view(["yui3@'>0.5.4'", "dependencies.jsdom"], callback)
68+
npm.commands.view(["yui3@>0.5.4", "dependencies.jsdom"], callback)
6969

7070
## OUTPUT
7171

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

+17-6
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ npm-access(1) -- Set access level on published packages
66
npm access public [<package>]
77
npm access restricted [<package>]
88

9-
npm access add <read-only|read-write> <entity> [<package>]
10-
npm access rm <entity> [<package>]
9+
npm access grant <read-only|read-write> <scope:team> [<package>]
10+
npm access revoke <scope:team> [<package>]
1111

12-
npm access ls [<package>]
12+
npm access ls-packages [<user>|<scope>|<scope:team>]
13+
npm access ls-collaborators [<package> [<user>]]
1314
npm access edit [<package>]
1415

1516
## DESCRIPTION
@@ -23,13 +24,20 @@ subcommand.
2324
* public / restricted:
2425
Set a package to be either publicly accessible or restricted.
2526

26-
* add / rm:
27+
* grant / revoke:
2728
Add or remove the ability of users and teams to have read-only or read-write
2829
access to a package.
2930

30-
* ls:
31+
* ls-packages:
32+
33+
Show all of the packages a user or a team is able to access, along with the
34+
access level, except for read-only public packages (it won't print the whole
35+
registry listing)
36+
37+
* ls-collaborators:
3138
Show all of the access privileges for a package. Will only show permissions
32-
for packages to which you have at least read access.
39+
for packages to which you have at least read access. If `<user>` is passed in,
40+
the list is filtered only to teams _that_ user happens to belong to.
3341

3442
* edit:
3543
Set the access privileges for a package at once using `$EDITOR`.
@@ -56,8 +64,11 @@ If your account is not paid, then attempts to publish scoped packages will fail
5664
with an HTTP 402 status code (logically enough), unless you use
5765
`--access=public`.
5866

67+
Management of teams and team memberships is done with the `npm team` command.
68+
5969
## SEE ALSO
6070

71+
* npm-team(1)
6172
* npm-publish(1)
6273
* npm-config(7)
6374
* npm-registry(7)

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

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
npm-team(1) -- Manage organization teams and team memberships
2+
=============================================================
3+
4+
## SYNOPSIS
5+
6+
npm team create <scope:team>
7+
npm team destroy <scope:team>
8+
9+
npm team add <scope:team> <user>
10+
npm team rm <scope:team> <user>
11+
12+
npm team ls <scope>|<scope:team>
13+
14+
npm team edit <scope:team>
15+
16+
## DESCRIPTION
17+
18+
Used to manage teams in organizations, and change team memberships. Does not
19+
handle permissions for packages.
20+
21+
Teams must always be fully qualified with the organization/scope they belond to
22+
when operating on them, separated by a colon (`:`). That is, if you have a
23+
`developers` team on a `foo` organization, you must always refer to that team as
24+
`developers:foo` in these commands.
25+
26+
* create / destroy:
27+
Create a new team, or destroy an existing one.
28+
29+
* add / rm:
30+
Add a user to an existing team, or remove a user from a team they belong to.
31+
32+
* ls:
33+
If performed on an organization name, will return a list of existing teams
34+
under that organization. If performed on a team, it will instead return a list
35+
of all users belonging to that particular team.
36+
37+
## DETAILS
38+
39+
`npm team` always operates directly on the current registry, configurable from
40+
the command line using `--registry=<registry url>`.
41+
42+
In order to create teams and manage team membership, you must be a *team admin*
43+
under the given organization. Listing teams and team memberships may be done by
44+
any member of the organizations.
45+
46+
Organization creation and management of team admins and *organization* members
47+
is done through the website, not the npm CLI.
48+
49+
To use teams to manage permissions on packages belonging to your organization,
50+
use the `npm access` command to grant or revoke the appropriate permissions.
51+
52+
## SEE ALSO
53+
54+
* npm-access(1)
55+
* npm-registr(7)

deps/npm/doc/files/package.json.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ The "files" field is an array of files to include in your project. If
178178
you name a folder in the array, then it will also include the files
179179
inside that folder. (Unless they would be ignored by another rule.)
180180

181-
You can also provide a ".npmignore" file in the root of your package,
182-
which will keep files from being included, even if they would be picked
183-
up by the files array. The ".npmignore" file works just like a
184-
".gitignore".
181+
You can also provide a ".npmignore" file in the root of your package or
182+
in subdirectories, which will keep files from being included, even
183+
if they would be picked up by the files array. The `.npmignore` file
184+
works just like a `.gitignore`.
185185

186186
Certain files are always included, regardless of settings:
187187

@@ -571,7 +571,7 @@ this. If you depend on features introduced in 1.5.2, use `">= 1.5.2 < 2"`.
571571

572572
Array of package names that will be bundled when publishing the package.
573573

574-
If this is spelled `"bundleDependencies"`, then that is also honorable.
574+
If this is spelled `"bundleDependencies"`, then that is also honored.
575575

576576
## optionalDependencies
577577

deps/npm/doc/misc/npm-developers.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ Use a `.npmignore` file to keep stuff out of your package. If there's
100100
no `.npmignore` file, but there *is* a `.gitignore` file, then npm will
101101
ignore the stuff matched by the `.gitignore` file. If you *want* to
102102
include something that is excluded by your `.gitignore` file, you can
103-
create an empty `.npmignore` file to override it.
103+
create an empty `.npmignore` file to override it. Like `git`, `npm` looks
104+
for `.npmignore` and `.gitignore` files in all subdirectories of your
105+
package, not only the root directory.
104106

105107
`.npmignore` files follow the [same pattern rules](http://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files)
106108
as `.gitignore` files:
@@ -118,9 +120,11 @@ need to add them to `.npmignore` explicitly:
118120
* `.DS_Store`
119121
* `.git`
120122
* `.hg`
123+
* `.npmrc`
121124
* `.lock-wscript`
122125
* `.svn`
123126
* `.wafpickle-*`
127+
* `config.gypi`
124128
* `CVS`
125129
* `npm-debug.log`
126130

@@ -132,7 +136,9 @@ The following paths and files are never ignored, so adding them to
132136
`.npmignore` is pointless:
133137

134138
* `package.json`
135-
* `README.*`
139+
* `README` (and its variants)
140+
* `CHANGELOG` (and its variants)
141+
* `LICENSE` / `LICENCE`
136142

137143
## Link Packages
138144

0 commit comments

Comments
 (0)