Skip to content

Commit f693565

Browse files
zkatjasnell
authored andcommitted
deps: upgrade to npm 2.13.4
PR-URL: nodejs/node-v0.x-archive#25825 Reviewed-By: James M Snell <[email protected]>
1 parent 35bbe98 commit f693565

File tree

828 files changed

+32460
-11829
lines changed

Some content is hidden

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

828 files changed

+32460
-11829
lines changed

deps/npm/.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
- DEPLOY_VERSION=testing
99
before_install:
1010
- "npm config set spin false"
11-
- "npm install -g npm/npm"
11+
- "npm install -g npm/npm#2.x"
1212
- "sudo mkdir -p /var/run/couchdb"
1313
script: "npm run-script test-all"
1414
notifications:

deps/npm/AUTHORS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,17 @@ Cedric Nelson <[email protected]>
288288
Kat Marchán <[email protected]>
289289
290290
Eduardo Pinho <[email protected]>
291+
Rachel Hutchison <[email protected]>
292+
Ryan Temple <[email protected]>
293+
Eugene Sharygin <[email protected]>
294+
Nick Heiner <[email protected]>
295+
James Talmage <[email protected]>
296+
297+
Joseph Dykstra <[email protected]>
298+
Joshua Egan <[email protected]>
299+
Thomas Cort <[email protected]>
300+
Thaddee Tyl <[email protected]>
301+
Steve Klabnik <[email protected]>
302+
Andrew Murray <[email protected]>
303+
Stephan Bönnemann <[email protected]>
304+
Kyle M. Tarplee <[email protected]>

deps/npm/CHANGELOG.md

Lines changed: 532 additions & 5 deletions
Large diffs are not rendered by default.

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
npm-ping(3) -- Ping npm registry
2+
================================
3+
4+
## SYNOPSIS
5+
6+
npm.registry.ping(registry, options, function (er, pong))
7+
8+
## DESCRIPTION
9+
10+
Attempts to connect to the given registry, returning a `pong`
11+
object with various metadata if it succeeds.
12+
13+
This function is primarily useful for debugging connection issues
14+
to npm registries.

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

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,24 @@ after packing it up into a tarball (b).
166166
`git+https`. If no `<commit-ish>` is specified, then `master` is
167167
used.
168168

169+
The following git environment variables are recognized by npm and will be added
170+
to the environment when running git:
171+
172+
* `GIT_ASKPASS`
173+
* `GIT_PROXY_COMMAND`
174+
* `GIT_SSH`
175+
* `GIT_SSH_COMMAND`
176+
* `GIT_SSL_CAINFO`
177+
* `GIT_SSL_NO_VERIFY`
178+
179+
See the git man page for details.
180+
169181
Examples:
170182

171-
git+ssh://[email protected]:npm/npm.git#v1.0.27
172-
git+https://[email protected]/npm/npm.git
173-
git://github.com/npm/npm.git#v1.0.27
183+
npm install git+ssh://[email protected]:npm/npm.git#v1.0.27
184+
npm install git+https://[email protected]/npm/npm.git
185+
npm install git://github.com/npm/npm.git#v1.0.27
186+
GIT_SSH_COMMAND='ssh -i ~/.ssh/custom_ident' npm install git+ssh://[email protected]:npm/npm.git
174187

175188
* `npm install <githubname>/<githubrepo>[#<commit-ish>]`:
176189
* `npm install github:<githubname>/<githubrepo>[#<commit-ish>]`:

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
npm-ping(1) -- Ping npm registry
2+
================================
3+
4+
## SYNOPSIS
5+
6+
npm ping [--registry <registry>]
7+
8+
## DESCRIPTION
9+
10+
Ping the configured or given npm registry and verify authentication.
11+
12+
## SEE ALSO
13+
14+
* npm-config(1)
15+
* npm-config(7)
16+
* npmrc(5)

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ In addition to the shell's pre-existing `PATH`, `npm run` adds
3333
`node_modules/.bin` to the `PATH` provided to scripts. Any binaries provided by
3434
locally-installed dependencies can be used without the `node_modules/.bin`
3535
prefix. For example, if there is a `devDependency` on `tap` in your package,
36-
you should write `"scripts": {"test": "tap test/\*.js"}` instead of `"scripts":
37-
{"test": "node_modules/.bin/tap test/\*.js"}` to run your tests.
36+
you should write:
37+
38+
"scripts": {"test": "tap test/\*.js"}
39+
40+
instead of `"scripts": {"test": "node_modules/.bin/tap test/\*.js"}` to run your tests.
3841

3942
## SEE ALSO
4043

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

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ Run this in a package directory to bump the version and write the new
1111
data back to `package.json` and, if present, `npm-shrinkwrap.json`.
1212

1313
The `newversion` argument should be a valid semver string, *or* a
14-
valid second argument to semver.inc (one of "patch", "minor", "major",
15-
"prepatch", "preminor", "premajor", "prerelease"). In the second case,
14+
valid second argument to semver.inc (one of `patch`, `minor`, `major`,
15+
`prepatch`, `preminor`, `premajor`, `prerelease`). In the second case,
1616
the existing version will be incremented by 1 in the specified field.
1717

18-
If run in a git repo, it will also create a version commit and tag, and fail if
19-
the repo is not clean. This behavior is controlled by `git-tag-version` (see
20-
below), and can be disabled on the command line by running `npm
21-
--no-git-tag-version version`
18+
If run in a git repo, it will also create a version commit and tag.
19+
This behavior is controlled by `git-tag-version` (see below), and can
20+
be disabled on the command line by running `npm --no-git-tag-version version`.
21+
It will fail if the working directory is not clean, unless the `--force`
22+
flag is set.
2223

2324
If supplied with `--message` (shorthand: `-m`) config option, npm will
2425
use it as a commit message when creating a version commit. If the
@@ -40,13 +41,35 @@ in your git config for this to work properly. For example:
4041

4142
Enter passphrase:
4243

43-
If "preversion", "version", "postversion" in the "scripts" property of
44-
the package.json, it will execute by running `npm version`. preversion
45-
and version ware executed before bump the package version, postversion
46-
was executed after bump the package version. For example to run `npm version`
47-
after passed all test:
48-
49-
"scripts": { "preversion": "npm test" }
44+
If `preversion`, `version`, or `postversion` are in the `scripts` property of
45+
the package.json, they will be executed as part of running `npm version`.
46+
47+
The exact order of execution is as follows:
48+
1. Check to make sure the git working directory is clean before we get started.
49+
Your scripts may add files to the commit in future steps.
50+
This step is skipped if the `--force` flag is set.
51+
2. Run the `preversion` script. These scripts have access to the old `version` in package.json.
52+
A typical use would be running your full test suite before deploying.
53+
Any files you want added to the commit should be explicitly added using `git add`.
54+
3. Bump `version` in `package.json` as requested (`patch`, `minor`, `major`, etc).
55+
4. Run the `version` script. These scripts have access to the new `version` in package.json
56+
(so they can incorporate it into file headers in generated files for example).
57+
Again, scripts should explicitly add generated files to the commit using `git add`.
58+
5. Commit and tag.
59+
6. Run the `postversion` script. Use it to clean up the file system or automatically push
60+
the commit and/or tag.
61+
62+
Take the following example:
63+
64+
"scripts": {
65+
"preversion": "npm test",
66+
"version": "npm run build && git add -A dist",
67+
"postversion": "git push && git push --tags && rm -rf build/temp"
68+
}
69+
70+
This runs all your tests, and proceeds only if they pass. Then runs your `build` script, and
71+
adds everything in the `dist` directory to the commit. After the commit, it pushes the new commit
72+
and tag up to the server, and deletes the `build/temp` directory.
5073

5174
## CONFIGURATION
5275

deps/npm/doc/files/npmrc.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ running npm in. It has no effect when your module is published. For
5252
example, you can't publish a module that forces itself to install
5353
globally, or in a different location.
5454

55+
Additionally, this file is not read in global mode, such as when running
56+
`npm install -g`.
57+
5558
### Per-user config file
5659

5760
`$HOME/.npmrc` (or the `userconfig` param, if set in the environment

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

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ expression syntax version 2.0 string](http://npmjs.com/package/spdx), like this:
115115
If you are using a license that hasn't been assigned an SPDX identifier, or if
116116
you are using a custom license, use the following valid SPDX expression:
117117

118-
{ "license" : "LicenseRef-LICENSE" }
118+
{ "license" : "SEE LICENSE IN <filename>" }
119119

120-
Then include a LICENSE file at the top level of the package.
120+
Then include a file named `<filename>` at the top level of the package.
121121

122122
Some old packages used license objects or a "licenses" property containing an
123123
array of license objects:
@@ -147,6 +147,13 @@ Those styles are now deprecated. Instead, use SPDX expressions, like this:
147147

148148
{ "license": "(MIT OR Apache-2.0)" }
149149

150+
Finally, if you do not wish to grant others the right to use a private or
151+
unpublished package under any terms:
152+
153+
{ "license": "UNLICENSED"}
154+
155+
Consider also setting `"private": true` to prevent accidental publication.
156+
150157
## people fields: author, contributors
151158

152159
The "author" is one person. "contributors" is an array of people. A "person"
@@ -176,6 +183,26 @@ which will keep files from being included, even if they would be picked
176183
up by the files array. The ".npmignore" file works just like a
177184
".gitignore".
178185

186+
Certain files are always included, regardless of settings:
187+
188+
* `package.json`
189+
* `README` (and its variants)
190+
* `CHANGELOG` (and its variants)
191+
* `LICENSE` / `LICENCE`
192+
193+
Conversely, some files are always ignored:
194+
195+
* `.git`
196+
* `CVS`
197+
* `.svn`
198+
* `.hg`
199+
* `.lock-wscript`
200+
* `.wafpickle-N`
201+
* `*.swp`
202+
* `.DS_Store`
203+
* `._*`
204+
* `npm-debug.log`
205+
179206
## main
180207

181208
The main field is a module ID that is the primary entry point to your program.
@@ -276,10 +303,13 @@ with the lib folder in any way, but it's useful meta info.
276303

277304
### directories.bin
278305

279-
If you specify a `bin` directory, then all the files in that folder will
280-
be added as children of the `bin` path.
306+
If you specify a `bin` directory in `directories.bin`, all the files in
307+
that folder will be added.
281308

282-
If you have a `bin` path already, then this has no effect.
309+
Because of the way the `bin` directive works, specifying both a
310+
`bin` path and setting `directories.bin` is an error. If you want to
311+
specify individual files, use `bin`, and for all the files in an
312+
existing `bin` directory, use `directories.bin`.
283313

284314
### directories.man
285315

@@ -660,13 +690,13 @@ param at publish-time.
660690

661691
## publishConfig
662692

663-
This is a set of config values that will be used at publish-time. It's
664-
especially handy if you want to set the tag or registry, so that you can
665-
ensure that a given package is not tagged with "latest" or published to
666-
the global public registry by default.
693+
This is a set of config values that will be used at publish-time. It's
694+
especially handy if you want to set the tag, registry or access, so that
695+
you can ensure that a given package is not tagged with "latest", published
696+
to the global public registry or that a scoped module is private by default.
667697

668-
Any config values can be overridden, but of course only "tag" and
669-
"registry" probably matter for the purposes of publishing.
698+
Any config values can be overridden, but of course only "tag", "registry" and
699+
"access" probably matter for the purposes of publishing.
670700

671701
See `npm-config(7)` to see the list of config options that can be
672702
overridden.

0 commit comments

Comments
 (0)