Skip to content

Commit 4041ea6

Browse files
othiym23rvagg
authored andcommitted
deps: upgrade npm in LTS to 2.15.1
PR-URL: #5967
1 parent ab907eb commit 4041ea6

File tree

1,962 files changed

+66034
-29711
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,962 files changed

+66034
-29711
lines changed

deps/npm/.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ npm-debug.log
77
/test/packages/npm-test-depends-on-spark/which-spark.log
88
/test/packages/test-package/random-data.txt
99
/test/root
10+
/test/npm_cache
1011
node_modules/marked
1112
node_modules/ronn
1213
node_modules/tap

deps/npm/.travis.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
language: node_js
2+
sudo: false
23
node_js:
3-
- "4.1"
4-
- "4.0"
4+
- "5"
5+
- "4"
56
- iojs
67
- "0.12"
78
- "0.10"
@@ -11,7 +12,7 @@ env:
1112
before_install:
1213
- "npm config set spin false"
1314
- "npm install -g npm/npm#2.x"
14-
- "sudo mkdir -p /var/run/couchdb"
15-
script: "npm run-script test-all"
15+
- "mkdir -p /var/run/couchdb"
16+
script: "npm test"
1617
notifications:
1718
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8

deps/npm/AUTHORS

+39
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,42 @@ Jon Hall <[email protected]>
313313
James Hartig <[email protected]>
314314
315315
Jason Kurian <[email protected]>
316+
Juan Caicedo <[email protected]>
317+
Ashley Williams <[email protected]>
318+
Andrew Marcinkevičius <[email protected]>
319+
Jorrit Schippers <[email protected]>
320+
Alex Lukin <[email protected]>
321+
Aria Stewart <[email protected]>
322+
323+
Nick Williams <[email protected]>
324+
Louis Larry <[email protected]>
325+
Jakub Gieryluk <[email protected]>
326+
Martin von Gagern <[email protected]>
327+
Eymen Gunay <[email protected]>
328+
329+
Rafał Pocztarski <[email protected]>
330+
Ashley Williams <[email protected]>
331+
Mark Reeder <[email protected]>
332+
Tiago Rodrigues <[email protected]>
333+
Chris Rebert <[email protected]>
334+
Jeff McMahan <[email protected]>
335+
Scott Addie <[email protected]>
336+
Julian Simioni <[email protected]>
337+
Jimb Esser <[email protected]>
338+
Hal Henke <[email protected]>
339+
Alexis Campailla <[email protected]>
340+
Beau Gunderson <[email protected]>
341+
342+
Jonathan Persson <[email protected]>
343+
Vedat Mahir YILMAZ <[email protected]>
344+
Jan Schär <[email protected]>
345+
346+
Neil Kistner <[email protected]>
347+
Hutson Betts <[email protected]>
348+
Sergey Simonchik <[email protected]>
349+
Lewis Cowper <[email protected]>
350+
Arturo Coronel <[email protected]>
351+
Scott Plumlee <[email protected]>
352+
353+
Robert Ludwig <[email protected]>
354+
Adam Byrne <[email protected]>

deps/npm/CHANGELOG.md

+826
Large diffs are not rendered by default.

deps/npm/LICENSE

+26-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1+
The npm application
12
Copyright (c) npm, Inc. and Contributors
2-
All rights reserved.
3+
Licensed on the terms of The Artistic License 2.0
34

4-
npm is released under the Artistic License 2.0, subject to additional terms
5-
that are listed below.
5+
Node package dependencies of the npm application
6+
Copyright (c) their respective copyright owners
7+
Licensed on their respective license terms
68

7-
The text of the npm License follows and the text of the additional terms
8-
follows the Artistic License 2.0 terms:
9+
The npm public registry at https://registry.npmjs.org
10+
and the npm website at https://www.npmjs.com
11+
Operated by npm, Inc.
12+
Use governed by terms published on https://www.npmjs.com
13+
14+
"Node.js"
15+
Trademark Joyent, Inc., https://joyent.com
16+
Neither npm nor npm, Inc. are affiliated with Joyent, Inc.
17+
18+
The Node.js application
19+
Project of Node Foundation, https://nodejs.org
20+
21+
The npm Logo
22+
Copyright (c) Mathias Pettersson and Brian Hammond
23+
24+
"Gubblebum Blocky" typeface
25+
Copyright (c) Tjarda Koster, https://jelloween.deviantart.com
26+
Used with permission
927

1028

1129
--------
@@ -251,11 +269,11 @@ details.
251269
Any data published to The npm Registry (including user account information) may
252270
be removed or modified at the sole discretion of the npm server administrators.
253271

254-
"npm Logo" created by Mathias Pettersson and Brian Hammond,
255-
used with permission.
272+
"npm Logo" contributed by Mathias Pettersson and Brian Hammond,
273+
use is subject to https://www.npmjs.com/policies/trademark
256274

257275
"Gubblebum Blocky" font
258-
Copyright (c) by Tjarda Koster, http://jelloween.deviantart.com
276+
Copyright (c) by Tjarda Koster, https://jelloween.deviantart.com
259277
included for use in the npm website and documentation,
260278
used with permission.
261279

deps/npm/README.md

+11-87
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ Much more info available via `npm help` once it's installed.
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.
1616

17+
**npm is configured to use npm, Inc.'s public package registry at
18+
<https://registry.npmjs.org> by default.**
19+
20+
You can configure npm to use any compatible registry you
21+
like, and even run your own registry. Check out the [doc on
22+
registries](https://docs.npmjs.com/misc/registry).
23+
24+
Use of someone else's registry may be governed by terms of use. The
25+
terms of use for the default public registry are available at
26+
<https://www.npmjs.com>.
27+
1728
## Super Easy Install
1829

1930
npm is bundled with [node](http://nodejs.org/download/).
@@ -127,52 +138,6 @@ must remove them yourself manually if you want them gone. Note that
127138
this means that future npm installs will not remember the settings that
128139
you have chosen.
129140

130-
## Using npm Programmatically
131-
132-
Although npm can be used programmatically, its API is meant for use by the CLI
133-
*only*, and no guarantees are made regarding its fitness for any other purpose.
134-
If you want to use npm to reliably perform some task, the safest thing to do is
135-
to invoke the desired `npm` command with appropriate arguments.
136-
137-
The semantic version of npm refers to the CLI itself, rather than the
138-
underlying API. _The internal API is not guaranteed to remain stable even when
139-
npm's version indicates no breaking changes have been made according to
140-
semver._
141-
142-
If you _still_ would like to use npm programmatically, it's _possible_. The API
143-
isn't very well documented, but it _is_ rather simple.
144-
145-
Eventually, npm will be just a thin CLI wrapper around the modules that it
146-
depends on, but for now, there are some things that only the CLI can do. You
147-
should try using one of npm's dependencies first, and only use the API if what
148-
you're trying to do is only supported by npm itself.
149-
150-
```javascript
151-
var npm = require("npm")
152-
npm.load(myConfigObject, function (er) {
153-
if (er) return handlError(er)
154-
npm.commands.install(["some", "args"], function (er, data) {
155-
if (er) return commandFailed(er)
156-
// command succeeded, and data might have some info
157-
})
158-
npm.registry.log.on("log", function (message) { .... })
159-
})
160-
```
161-
162-
The `load` function takes an object hash of the command-line configs.
163-
The various `npm.commands.<cmd>` functions take an **array** of
164-
positional argument **strings**. The last argument to any
165-
`npm.commands.<cmd>` function is a callback. Some commands take other
166-
optional arguments. Read the source.
167-
168-
You cannot set configs individually for any single npm function at this
169-
time. Since `npm` is a singleton, any call to `npm.config.set` will
170-
change the value for *all* npm commands in that process.
171-
172-
See `./bin/npm-cli.js` for an example of pulling config values off of the
173-
command line arguments using nopt. You may also want to check out `npm
174-
help config` to learn about all the options you can set there.
175-
176141
## More Docs
177142

178143
Check out the [docs](https://docs.npmjs.com/),
@@ -183,47 +148,6 @@ You can use the `npm help` command to read any of them.
183148
If you're a developer, and you want to use npm to publish your program,
184149
you should [read this](https://docs.npmjs.com/misc/developers)
185150

186-
## Legal Stuff
187-
188-
"npm" and "The npm Registry" are owned by npm, Inc.
189-
All rights reserved. See the included LICENSE file for more details.
190-
191-
"Node.js" and "node" are trademarks owned by Joyent, Inc.
192-
193-
Modules published on the npm registry are not officially endorsed by
194-
npm, Inc. or the Node.js project.
195-
196-
Data published to the npm registry is not part of npm itself, and is
197-
the sole property of the publisher. While every effort is made to
198-
ensure accountability, there is absolutely no guarantee, warranty, or
199-
assertion expressed or implied as to the quality, fitness for a
200-
specific purpose, or lack of malice in any given npm package.
201-
202-
If you have a complaint about a package in the public npm registry,
203-
and cannot [resolve it with the package
204-
owner](https://docs.npmjs.com/misc/disputes), please email
205-
<[email protected]> and explain the situation.
206-
207-
Any data published to The npm Registry (including user account
208-
information) may be removed or modified at the sole discretion of the
209-
npm server administrators.
210-
211-
### In plainer english
212-
213-
npm is the property of npm, Inc.
214-
215-
If you publish something, it's yours, and you are solely accountable
216-
for it.
217-
218-
If other people publish something, it's theirs.
219-
220-
Users can publish Bad Stuff. It will be removed promptly if reported.
221-
But there is no vetting process for published modules, and you use
222-
them at your own risk. Please inspect the source.
223-
224-
If you publish Bad Stuff, we may delete it from the registry, or even
225-
ban your account in extreme cases. So don't do that.
226-
227151
## BUGS
228152

229153
When you find issues, please report them:
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
if not defined npm_config_node_gyp (
2-
node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
3-
) else (
4-
node %npm_config_node_gyp% %*
5-
)
1+
if not defined npm_config_node_gyp (
2+
node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
3+
) else (
4+
node "%npm_config_node_gyp%" %*
5+
)

deps/npm/bin/npm

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ fi
1515
NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js"
1616

1717
case `uname` in
18+
*MINGW*)
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+
;;
1825
*CYGWIN*)
1926
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
2027
NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"

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

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ npm-adduser(1) -- Add a registry user account
55

66
npm adduser [--registry=url] [--scope=@orgname] [--always-auth]
77

8+
aliases: login, add-user
9+
810
## DESCRIPTION
911

1012
Create or verify a user named `<username>` in the specified registry, and
@@ -28,7 +30,7 @@ your existing record.
2830

2931
### registry
3032

31-
Default: http://registry.npmjs.org/
33+
Default: https://registry.npmjs.org/
3234

3335
The base URL of the npm package registry. If `scope` is also specified,
3436
this registry will only be used for packages with that scope. See `npm-scope(7)`.
@@ -57,9 +59,11 @@ registries. Can be used with `--registry` and / or `--scope`, e.g.
5759
npm adduser --registry=http://private-registry.example.com --always-auth
5860

5961
This will ensure that all requests to that registry (including for tarballs)
60-
include an authorization header. See `always-auth` in `npm-config(7)` for more
61-
details on always-auth. Registry-specific configuration of `always-auth` takes
62-
precedence over any global configuration.
62+
include an authorization header. This setting may be necessary for use with
63+
private registries where metadata and package tarballs are stored on hosts with
64+
different hostnames. See `always-auth` in `npm-config(7)` for more details on
65+
always-auth. Registry-specific configuration of `always-auth` takes precedence
66+
over any global configuration.
6367

6468
## SEE ALSO
6569

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

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ npm-bugs(1) -- Bugs for a package in a web browser maybe
66
npm bugs <pkgname>
77
npm bugs (with no args in a package dir)
88

9+
aliases: issues
10+
911
## DESCRIPTION
1012

1113
This command tries to guess at the likely location of a package's

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

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ npm-config(1) -- Manage the npm configuration files
1212
npm get <key>
1313
npm set <key> <value> [--global]
1414

15+
aliases: c
16+
1517
## DESCRIPTION
1618

1719
npm gets its config settings from the command line, environment

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

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ npm-dedupe(1) -- Reduce duplication
66
npm dedupe [package names...]
77
npm ddp [package names...]
88

9+
aliases: find-dupes, ddp
10+
911
## DESCRIPTION
1012

1113
Searches the local package tree and attempts to simplify the overall

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

+21-7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ npm-dist-tag(1) -- Modify package distribution tags
77
npm dist-tag rm <pkg> <tag>
88
npm dist-tag ls [<pkg>]
99

10+
aliases: dist-tags
11+
1012
## DESCRIPTION
1113

1214
Add, remove, and enumerate distribution tags on a package:
@@ -33,17 +35,30 @@ When installing dependencies, a preferred tagged version may be specified:
3335

3436
This also applies to `npm dedupe`.
3537

36-
Publishing a package sets the "latest" tag to the published version unless the
38+
Publishing a package sets the `latest` tag to the published version unless the
3739
`--tag` option is used. For example, `npm publish --tag=beta`.
3840

41+
By default, `npm install <pkg>` (without any `@<version>` or `@<tag>`
42+
specifier) installs the `latest` tag.
43+
3944
## PURPOSE
4045

41-
Tags can be used to provide an alias instead of version numbers. For
42-
example, `npm` currently uses the tag "next" to identify the upcoming
43-
version, and the tag "latest" to identify the current version.
46+
Tags can be used to provide an alias instead of version numbers.
47+
48+
For example, a project might choose to have multiple streams of development
49+
and use a different tag for each stream,
50+
e.g., `stable`, `beta`, `dev`, `canary`.
51+
52+
By default, the `latest` tag is used by npm to identify the current version of
53+
a package, and `npm install <pkg>` (without any `@<version>` or `@<tag>`
54+
specifier) installs the `latest` tag. Typically, projects only use the `latest`
55+
tag for stable release versions, and use other tags for unstable versions such
56+
as prereleases.
57+
58+
The `next` tag is used by some projects to identify the upcoming version.
4459

45-
A project might choose to have multiple streams of development, e.g.,
46-
"stable", "canary".
60+
By default, other than `latest`, no tag has any special significance to npm
61+
itself.
4762

4863
## CAVEATS
4964

@@ -69,5 +84,4 @@ begin with a number or the letter `v`.
6984
* npm-registry(7)
7085
* npm-config(1)
7186
* npm-config(7)
72-
* npm-tag(3)
7387
* npmrc(5)

deps/npm/doc/cli/npm-help-search.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ command directly.
2121
### long
2222

2323
* Type: Boolean
24-
* Default false
24+
* Default: false
2525

2626
If true, the "long" flag will cause help-search to output context around
2727
where the terms were found in the documentation.

0 commit comments

Comments
 (0)