Skip to content

Commit c130b31

Browse files
committed
deps: upgrade npm to 2.15.11
Refs: nodejs/Release#143 PR-URL: #9619 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent d8e27ec commit c130b31

File tree

865 files changed

+18570
-25146
lines changed

Some content is hidden

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

865 files changed

+18570
-25146
lines changed

deps/npm/.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ html/*.png
2828
*.pyc
2929

3030
/test/tap/builtin-config
31+
32+
.nyc_output

deps/npm/.travis.yml

+28-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
1-
language: node_js
21
sudo: false
3-
node_js:
4-
- "5"
5-
- "4"
6-
- iojs
7-
- "0.12"
8-
- "0.10"
9-
- "0.8"
10-
env:
11-
- DEPLOY_VERSION=testing
2+
# need to declare the language as well as the matrix below
3+
language: node_js
4+
# having top-level `env:` adds a phantom build
5+
# https://github.com/travis-ci/travis-ci/issues/4681
6+
#env: DEPLOY_VERSION=testing
7+
matrix:
8+
include:
9+
# LTS is our most important target
10+
- node_js: "4"
11+
# DEPLOY_VERSION is used to set the couchapp setup mode for test/tap/registry.js
12+
# only gather coverage info for LTS
13+
env: DEPLOY_VERSION=testing COVERALLS_REPO_TOKEN="$COVERALLS_OPTIONAL_TOKEN"
14+
# next LTS and master is next most important
15+
- node_js: "6"
16+
env: DEPLOY_VERSION=testing
17+
# still in LTS maintenance until fall 2016 (also still in wide use)
18+
- node_js: "0.10"
19+
env: DEPLOY_VERSION=testing
20+
# will be unsupported as soon as 6 becomes LTS and 7 released
21+
- node_js: "5"
22+
env: DEPLOY_VERSION=testing
23+
# technically in LTS / distros, unbeloved
24+
- node_js: "0.12"
25+
env: DEPLOY_VERSION=testing
1226
before_install:
13-
- "npm config set spin false"
14-
- "npm install -g npm/npm#2.x"
27+
# explicitly install rimraf for LTS self-install
28+
- "npm install -g rimraf"
29+
- "node . install -g ."
30+
# required by test/tap/registry.js
1531
- "mkdir -p /var/run/couchdb"
16-
script: "npm test"
1732
notifications:
1833
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8

deps/npm/AUTHORS

+23
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,26 @@ Adam Byrne <[email protected]>
355355
GriffinSchneider <[email protected]>
356356
doug.wade <[email protected]>
357357
358+
359+
Yann Odeyer <[email protected]>
360+
James Monger <[email protected]>
361+
Paul Irish <[email protected]>
362+
Paul O'Leary McCann <[email protected]>
363+
Francis Gulotta <[email protected]>
364+
Rachel Evans <[email protected]>
365+
Michael Jackson <[email protected]>
366+
Myles Borins <[email protected]>
367+
André Herculano <[email protected]>
368+
Wyatt Preul <[email protected]>
369+
Gianluca Casati <[email protected]>
370+
Tapani Moilanen <[email protected]>
371+
Simon MacDonald <[email protected]>
372+
Adam Stankiewicz <[email protected]>
373+
Julian Duque <[email protected]>
374+
Michael Hart <[email protected]>
375+
Daniel Paz-Soldan <[email protected]>
376+
legodude17 <[email protected]>
377+
Andrew Meyer <[email protected]>
378+
Michael Jasper <[email protected]>
379+
380+
Jason Karns <[email protected]>

deps/npm/CHANGELOG.md

+762-3
Large diffs are not rendered by default.

deps/npm/LICENSE

-46
Original file line numberDiff line numberDiff line change
@@ -233,49 +233,3 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
233233

234234

235235
--------
236-
237-
238-
The following additional terms shall apply to use of the npm software, the npm
239-
website, the npm repository and any other services or products offered by npm,
240-
Inc.:
241-
242-
"Node.js" trademark Joyent, Inc. npm is not officially part of the Node.js
243-
project, and is neither owned by nor affiliated with Joyent, Inc.
244-
245-
"npm" and "The npm Registry" are owned by npm, Inc. All rights reserved.
246-
247-
Modules published on the npm registry are not officially endorsed by npm, Inc.
248-
or the Node.js project.
249-
250-
Data published to the npm registry is not part of npm itself, and is the sole
251-
property of the publisher. While every effort is made to ensure accountability,
252-
there is absolutely no guarantee, warrantee, or assertion expressed or implied
253-
as to the quality, fitness for a specific purpose, or lack of malice in any
254-
given npm package. Packages downloaded through the npm registry are
255-
independently licensed and are not covered by this license.
256-
257-
Additional policies relating to, and restrictions on use of, npm products and
258-
services are available on the npm website. All such policies and restrictions,
259-
as updated from time to time, are hereby incorporated into this license
260-
agreement. By using npm, you acknowledge your agreement to all such policies
261-
and restrictions.
262-
263-
If you have a complaint about a package in the public npm registry, and cannot
264-
resolve it with the package owner, please email [email protected] and explain
265-
the situation. See the [npm Dispute Resolution
266-
policy](https://github.com/npm/policies/blob/master/disputes.md) for more
267-
details.
268-
269-
Any data published to The npm Registry (including user account information) may
270-
be removed or modified at the sole discretion of the npm server administrators.
271-
272-
"npm Logo" contributed by Mathias Pettersson and Brian Hammond,
273-
use is subject to https://www.npmjs.com/policies/trademark
274-
275-
"Gubblebum Blocky" font
276-
Copyright (c) by Tjarda Koster, https://jelloween.deviantart.com
277-
included for use in the npm website and documentation,
278-
used with permission.
279-
280-
This program uses several Node modules contained in the node_modules/
281-
subdirectory, according to the terms of their respective licenses.

deps/npm/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ test: doc
176176
tag:
177177
npm tag npm@$(PUBLISHTAG) latest
178178

179-
publish: link doc
179+
publish: link doc-clean doc
180180
@git push origin :v$(shell npm -v) 2>&1 || true
181181
git clean -fd &&\
182182
git push origin $(BRANCH) &&\

deps/npm/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Much more info available via `npm help` once it's installed.
99

1010
## IMPORTANT
1111

12-
**You need node v0.8 or higher to run this program.**
12+
**You need node v0.10 or higher to run this program.**
1313

1414
To install an old **and unsupported** version of npm that works on node 0.3
1515
and prior, clone the git repo and dig through the old tags and branches.

deps/npm/appveyor.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
environment:
2+
matrix:
3+
# LTS is our most important target
4+
- nodejs_version: "4"
5+
# next LTS and master is next most important
6+
- nodejs_version: "6"
7+
# still in LTS maintenance until fall 2016
8+
# (also still in wide use)
9+
- nodejs_version: "0.10"
10+
# will be unsupported as soon as 6 becomes LTS and 7 released
11+
- nodejs_version: "5"
12+
# technically in LTS / distros, unbeloved
13+
- nodejs_version: "0.12"
14+
COVERALLS_REPO_TOKEN:
15+
secure: XdC0aySefK0HLh1GNk6aKrzZPbCfPQLyA4mYtFGEp4DrTuZA/iuCUS0LDqFYO8JQ
16+
platform:
17+
- x86
18+
- x64
19+
install:
20+
- ps: Install-Product node $env:nodejs_version $env:platform
21+
- npm config set spin false
22+
- npm rebuild
23+
- node . install -g .
24+
- set "PATH=%APPDATA%\npm;C:\Program Files\Git\mingw64\libexec;%PATH%"
25+
- npm install --loglevel=http
26+
test_script:
27+
- node --version
28+
- npm --version
29+
- npm test
30+
notifications:
31+
- provider: Slack
32+
incoming_webhook:
33+
secure: vXiG5AgpqxJsXZ0N0CTYDuVrX6RMjBybZKtOx6IbRxCyjgd+DAx6Z9/0XgYQjuof7QFJY3M/U6HxaREQVYbNVHA+C5N5dNALRbKzAC8QNbA=
34+
# GO_FAST
35+
matrix:
36+
fast_finish: true
37+
# we don't need the builds, we just need tests
38+
build: off

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

+4
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ after packing it up into a tarball (b).
171171
to the environment when running git:
172172

173173
* `GIT_ASKPASS`
174+
* `GIT_EXEC_PATH`
174175
* `GIT_PROXY_COMMAND`
175176
* `GIT_SSH`
176177
* `GIT_SSH_COMMAND`
@@ -250,6 +251,9 @@ local copy exists on disk.
250251
The `--global` argument will cause npm to install the package globally
251252
rather than locally. See `npm-folders(5)`.
252253

254+
The `--ignore-scripts` argument will cause npm to not execute any
255+
scripts defined in the package.json. See `npm-scripts(7)`.
256+
253257
The `--link` argument will cause npm to link global installs into the
254258
local space in some cases.
255259

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Package linking is a two-step process.
1313

1414
First, `npm link` in a package folder will create a symlink in the global folder
1515
`{prefix}/lib/node_modules/<package>` that links to the package where the `npm
16-
link` command was executed. (see `npm-config(7)` for the value of `prefix`).
16+
link` command was executed. (see `npm-config(7)` for the value of `prefix`). It
17+
will also link any bins in the package to `{prefix}/bin/{name}`.
1718

1819
Next, in some other location, `npm link package-name` will create a
1920
symbolic link from globally-installed `package-name` to `node_modules/`

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ that do not begin with a number or the letter `v`.
5656
* npm-registry(7)
5757
* npm-config(1)
5858
* npm-config(7)
59-
* npm-tag(3)
59+
* npm-dist-tag(1)
6060
* npmrc(5)

deps/npm/doc/cli/npm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ requires compiling of C++ Code, npm will use
4141
[node-gyp](https://github.com/TooTallNate/node-gyp) for that task.
4242
For a Unix system, [node-gyp](https://github.com/TooTallNate/node-gyp)
4343
needs Python, make and a buildchain like GCC. On Windows,
44-
Python and Microsoft Visual Studio C++ is needed. Python 3 is
44+
Python and Microsoft Visual Studio C++ are needed. Python 3 is
4545
not supported by [node-gyp](https://github.com/TooTallNate/node-gyp).
4646
For more information visit
4747
[the node-gyp repository](https://github.com/TooTallNate/node-gyp) and

deps/npm/doc/files/npmrc.md

+10
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ sensitive credentials, they must be readable and writable _only_ by your user
4141
account (i.e. must have a mode of `0600`), otherwise they _will be ignored by
4242
npm!_
4343

44+
#### Comments
45+
46+
Lines in `.npmrc` files are interpreted as comments when they begin with a `;` or `#` character. `.npmrc` files are parsed by [npm/ini](https://github.com/npm/ini), which specifies this comment syntax.
47+
48+
For example:
49+
50+
# last modified: 01 Jan 2016
51+
; Set a new registry for a scoped package
52+
@myscope:registry=https://mycustomregistry.example.org
53+
4454
### Per-project config file
4555

4656
When working locally in a project, a `.npmrc` file in the root of the

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

+10-5
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ Conversely, some files are always ignored:
204204
* `._*`
205205
* `npm-debug.log`
206206
* `.npmrc`
207+
* `node_modules`
207208

208209
## main
209210

@@ -248,6 +249,10 @@ would be the same as this:
248249
, "version": "1.2.5"
249250
, "bin" : { "my-program" : "./path/to/program" } }
250251

252+
Please make sure that your file(s) referenced in `bin` starts with
253+
`#!/usr/bin/env node`, otherwise the scripts are started without the node
254+
executable!
255+
251256
## man
252257

253258
Specify either a single file or an array of filenames to put in place for the
@@ -644,8 +649,8 @@ are capable of properly installing your program. For example:
644649

645650
{ "engines" : { "npm" : "~1.0.20" } }
646651

647-
Note that, unless the user has set the `engine-strict` config flag, this
648-
field is advisory only.
652+
Unless the user has set the `engine-strict` config flag, this
653+
field is advisory only will produce warnings when your package is installed as a dependency.
649654

650655
## engineStrict
651656

@@ -733,10 +738,10 @@ npm will default some values based on package contents.
733738
If there is a `server.js` file in the root of your package, then npm
734739
will default the `start` command to `node server.js`.
735740

736-
* `"scripts":{"preinstall": "node-gyp rebuild"}`
741+
* `"scripts":{"install": "node-gyp rebuild"}`
737742

738-
If there is a `binding.gyp` file in the root of your package, npm will
739-
default the `preinstall` command to compile using node-gyp.
743+
If there is a `binding.gyp` file in the root of your package and you have not defined an `install` or `preinstall` script, npm will
744+
default the `install` command to compile using node-gyp.
740745

741746
* `"contributors": [...]`
742747

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

+18-6
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ same.
2626

2727
The four relevant files are:
2828

29-
* per-project config file (/path/to/my/project/.npmrc)
30-
* per-user config file (~/.npmrc)
31-
* global config file ($PREFIX/npmrc)
32-
* npm builtin config file (/path/to/npm/npmrc)
29+
* per-project configuration file (`/path/to/my/project/.npmrc`)
30+
* per-user configuration file (defaults to `$HOME/.npmrc`; configurable via CLI
31+
option `--userconfig` or environment variable `$NPM_CONF_USERCONFIG`)
32+
* global configuration file (defaults to `$PREFIX/etc/npmrc`; configurable via
33+
CLI option `--globalconfig` or environment variable `$NPM_CONF_GLOBALCONFIG`)
34+
* npm's built-in configuration file (`/path/to/npm/npmrc`)
3335

3436
See npmrc(5) for more details.
3537

@@ -228,7 +230,12 @@ explicitly used, and that only GET requests use the cache.
228230
* Default: `null`
229231
* Type: String
230232

231-
A client certificate to pass when accessing the registry.
233+
A client certificate to pass when accessing the registry. Values should be in
234+
PEM format with newlines replaced by the string "\n". For example:
235+
236+
cert="-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----"
237+
238+
It is _not_ the path to a certificate file (and there is no "certfile" option).
232239

233240
### color
234241

@@ -470,7 +477,12 @@ change. Only the output from `npm ls --json` is currently valid.
470477
* Default: `null`
471478
* Type: String
472479

473-
A client key to pass when accessing the registry.
480+
A client key to pass when accessing the registry. Values should be in PEM
481+
format with newlines replaced by the string "\n". For example:
482+
483+
key="-----BEGIN PRIVATE KEY-----\nXXXX\nXXXX\n-----END PRIVATE KEY-----"
484+
485+
It is _not_ the path to a key file (and there is no "keyfile" option).
474486

475487
### link
476488

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ The developer will be able to access packages based on the teams they are on. Ac
1717

1818
There are two main commands:
1919

20-
1. `npm team` see npm-access(1) for more details
21-
2. `npm access` see npm-team(1) for more details
20+
1. `npm team` see npm-team(1) for more details
21+
2. `npm access` see npm-access(1) for more details
2222

2323
## Team Admins create teams
2424

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

+10-8
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ followed by a slash, e.g.
1313
Scopes are a way of grouping related packages together, and also affect a few
1414
things about the way npm treats the package.
1515

16-
Scoped packages are supported by the public npm registry. The npm
17-
client is backwards-compatible with un-scoped registries, so it can be
18-
used to work with scoped and un-scoped registries at the same time.
16+
Scoped packages can be published and installed as of `npm@2` and are supported
17+
by the primary npm registry. The npm client is backwards-compatible with
18+
un-scoped registries, so it can be used to work with scoped and un-scoped
19+
registries at the same time.
1920

2021
## Installing scoped packages
2122

@@ -51,15 +52,16 @@ just specifying to require the module `mypackage` in the folder called `@myorg`.
5152

5253
## Publishing scoped packages
5354

54-
Scoped packages can be published to any registry that supports them, including
55-
the public npm registry.
55+
Scoped packages can be published from the CLI as of `npm@2` and can be
56+
published to any registry that supports them, including the primary npm
57+
registry.
5658

57-
(As of 2015-04-19, and with npm 2.0 or newer, the public npm registry **does**
59+
(As of 2015-04-19, and with npm 2.0 or newer, the primary npm registry **does**
5860
support scoped packages)
5961

6062
If you wish, you may associate a scope with a registry; see below.
6163

62-
### Publishing public scoped packages to the public npm registry
64+
### Publishing public scoped packages to the primary npm registry
6365

6466
To publish a public scoped package, you must specify `--access public` with
6567
the initial publication. This will publish the package and set access
@@ -79,7 +81,7 @@ desired, with `npm access` or on the npmjs.com website.
7981
## Associating a scope with a registry
8082

8183
Scopes can be associated with a separate registry. This allows you to
82-
seamlessly use a mix of packages from the public npm registry and one or more
84+
seamlessly use a mix of packages from the primary npm registry and one or more
8385
private registries, such as npm Enterprise.
8486

8587
You can associate a scope with a registry at login, e.g.

0 commit comments

Comments
 (0)