Skip to content

Commit f051f31

Browse files
committed
npm: upgrade to v1.4.14
1 parent 535c777 commit f051f31

358 files changed

Lines changed: 4050 additions & 2343 deletions

File tree

Some content is hidden

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

deps/npm/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-prefix = ~
2+
proprietary-attribs = false

deps/npm/LICENSE

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,8 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
214214
--------
215215

216216

217-
"Node.js" and "node" trademark Joyent, Inc. npm is not officially
218-
part of the Node.js project, and is neither owned by nor
219-
officially affiliated with Joyent, Inc.
217+
"Node.js" trademark Joyent, Inc. npm is not officially part of the Node.js
218+
project, and is neither owned by nor affiliated with Joyent, Inc.
220219

221220
Packages published in the npm registry (other than the Software and
222221
its included dependencies) are not part of npm itself, are the sole

deps/npm/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ publish: link doc
169169
git push origin &&\
170170
git push origin --tags &&\
171171
npm publish &&\
172-
make doc-publish &&\
173-
make zip-publish
172+
make doc-publish
174173

175174
docpublish: doc-publish
176175
doc-publish: doc
@@ -202,13 +201,10 @@ doc-publish: doc
202201
esac; \
203202
done
204203

205-
zip-publish: release
206-
scp release/* node@nodejs.org:dist/npm/
207-
208204
release:
209205
@bash scripts/release.sh
210206

211207
sandwich:
212208
@[ $$(whoami) = "root" ] && (echo "ok"; echo "ham" > sandwich) || (echo "make it yourself" && exit 13)
213209

214-
.PHONY: all latest install dev link doc clean uninstall test man doc-publish doc-clean docclean docpublish release zip-publish
210+
.PHONY: all latest install dev link doc clean uninstall test man doc-publish doc-clean docclean docpublish release

deps/npm/bin/npm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
2+
(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
23

34
basedir=`dirname "$0"`
45

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
npm-cache(3) -- manage the npm cache programmatically
2+
=====================================================
3+
4+
## SYNOPSIS
5+
6+
npm.commands.cache([args], callback)
7+
8+
// helpers
9+
npm.commands.cache.clean([args], callback)
10+
npm.commands.cache.add([args], callback)
11+
npm.commands.cache.read(name, version, forceBypass, callback)
12+
13+
## DESCRIPTION
14+
15+
This acts much the same ways as the npm-cache(1) command line
16+
functionality.
17+
18+
The callback is called with the package.json data of the thing that is
19+
eventually added to or read from the cache.
20+
21+
The top level `npm.commands.cache(...)` functionality is a public
22+
interface, and like all commands on the `npm.commands` object, it will
23+
match the command line behavior exactly.
24+
25+
However, the cache folder structure and the cache helper functions are
26+
considered **internal** API surface, and as such, may change in future
27+
releases of npm, potentially without warning or significant version
28+
incrementation.
29+
30+
Use at your own risk.

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,14 @@ npm stores cache data in the directory specified in `npm config get cache`.
3737
For each package that is added to the cache, three pieces of information are
3838
stored in `{cache}/{name}/{version}`:
3939

40-
* .../package/:
41-
A folder containing the package contents as they appear in the tarball.
42-
* .../package.json:
43-
The package.json file, as npm sees it, with overlays applied and a _id attribute.
40+
* .../package/package.json:
41+
The package.json file, as npm sees it.
4442
* .../package.tgz:
4543
The tarball for that version.
4644

4745
Additionally, whenever a registry request is made, a `.cache.json` file
4846
is placed at the corresponding URI, to store the ETag and the requested
49-
data.
47+
data. This is stored in `{cache}/{hostname}/{path}/.cache.json`.
5048

5149
Commands that make non-essential registry requests (such as `search` and
5250
`view`, or the completion scripts) generally specify a minimum timeout.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ npm-run-script(1) -- Run arbitrary package scripts
44
## SYNOPSIS
55

66
npm run-script [<pkg>] [command]
7+
npm run [<pkg>] [command]
78

89
## DESCRIPTION
910

deps/npm/doc/cli/npm.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ Use `npm install blerg` to install the latest version of "blerg". Check out
3131
Use the `npm search` command to show everything that's available.
3232
Use `npm ls` to show everything you've installed.
3333

34+
## DEPENDENCIES
35+
36+
If a package references to another package with a git URL, npm depends
37+
on a preinstalled git.
38+
39+
If one of the packages npm tries to install is a native node module and
40+
requires compiling of C++ Code, npm will use
41+
[node-gyp](https://github.com/TooTallNate/node-gyp) for that task.
42+
For a Unix system, [node-gyp](https://github.com/TooTallNate/node-gyp)
43+
needs Python, make and a buildchain like GCC. On Windows,
44+
Python and Microsoft Visual Studio C++ is needed. Python 3 is
45+
not supported by [node-gyp](https://github.com/TooTallNate/node-gyp).
46+
For more information visit
47+
[the node-gyp repository](https://github.com/TooTallNate/node-gyp) and
48+
the [node-gyp Wiki](https://github.com/TooTallNate/node-gyp/wiki).
49+
3450
## DIRECTORIES
3551

3652
See `npm-folders(5)` to learn about where npm puts stuff.

deps/npm/doc/files/npmrc.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ For a list of available configuration options, see npm-config(7).
1313

1414
## FILES
1515

16-
The three relevant files are:
16+
The four relevant files are:
1717

18+
* per-project config file (/path/to/my/project/.npmrc)
1819
* per-user config file (~/.npmrc)
1920
* global config file ($PREFIX/npmrc)
2021
* npm builtin config file (/path/to/npm/npmrc)
@@ -29,6 +30,17 @@ Each of these files is loaded, and config options are resolved in
2930
priority order. For example, a setting in the userconfig file would
3031
override the setting in the globalconfig file.
3132

33+
### Per-project config file
34+
35+
When working locally in a project, a `.npmrc` file in the root of the
36+
project (ie, a sibling of `node_modules` and `package.json`) will set
37+
config values specific to this project.
38+
39+
Note that this only applies to the root of the project that you're
40+
running npm in. It has no effect when your module is published. For
41+
example, you can't publish a module that forces itself to install
42+
globally, or in a different location.
43+
3244
### Per-user config file
3345

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

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ same.
2424

2525
### npmrc Files
2626

27-
The three relevant files are:
27+
The four relevant files are:
2828

29+
* per-project config file (/path/to/my/project/.npmrc)
2930
* per-user config file (~/.npmrc)
3031
* global config file ($PREFIX/npmrc)
3132
* npm builtin config file (/path/to/npm/npmrc)
@@ -712,6 +713,17 @@ using `-s` to add a signature.
712713
Note that git requires you to have set up GPG keys in your git configs
713714
for this to work properly.
714715

716+
### spin
717+
718+
* Default: true
719+
* Type: Boolean or `"always"`
720+
721+
When set to `true`, npm will display an ascii spinner while it is doing
722+
things, if `process.stderr` is a TTY.
723+
724+
Set to `false` to suppress the spinner, or set to `always` to output
725+
the spinner even for non-TTY outputs.
726+
715727
### strict-ssl
716728

717729
* Default: true

0 commit comments

Comments
 (0)