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

Lines changed: 0 additions & 2 deletions
This file was deleted.

deps/npm/.travis.yml

Lines changed: 2 additions & 0 deletions
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

Lines changed: 11 additions & 0 deletions
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

Lines changed: 589 additions & 1 deletion
Large diffs are not rendered by default.

deps/npm/Makefile

Lines changed: 15 additions & 69 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 17 additions & 4 deletions
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

Lines changed: 19 additions & 6 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 17 additions & 6 deletions
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)

0 commit comments

Comments
 (0)