Skip to content

Commit f76c393

Browse files
committed
npm: upgrade to v1.4.8
* Check SHA before using files from cache * adduser: allow change of the saved password * Make `npm install` respect `config.unicode` * Fix lifecycle to pass `Infinity` for config env value * Don't return 0 exit code on invalid command * cache: Handle 404s and other HTTP errors as errors * bump tap dep, make tests stderr a bit quieter * Resolve ~ in path configs to env.HOME * Include npm version in default user-agent conf * npm init: Use ISC as default license, use save-prefix for deps * Many test and doc fixes
1 parent 1038959 commit f76c393

257 files changed

Lines changed: 880 additions & 487 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/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ paths, etc.) then read on.
3838
There's a pretty robust install script at
3939
<https://www.npmjs.org/install.sh>. You can download that and run it.
4040

41+
Here's an example using curl:
42+
43+
curl -L https://npmjs.org/install.sh | sh
44+
4145
### Slightly Fancier
4246

4347
You can set any npm configuration params with that script:

deps/npm/doc/api/npm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ npm(3) -- node package manager
44
## SYNOPSIS
55

66
var npm = require("npm")
7-
npm.load([configObject], function (er, npm) {
7+
npm.load([configObject, ]function (er, npm) {
88
// use the npm object, now that it's loaded.
99

1010
npm.config.set(key, val)

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A `package` is:
2424
* a) a folder containing a program described by a package.json file
2525
* b) a gzipped tarball containing (a)
2626
* c) a url that resolves to (b)
27-
* d) a `<name>@<version>` that is published on the registry with (c)
27+
* d) a `<name>@<version>` that is published on the registry (see `npm-registry(7)`) with (c)
2828
* e) a `<name>@<tag>` that points to (d)
2929
* f) a `<name>` that has a "latest" tag satisfying (e)
3030
* g) a `<git remote url>` that resolves to (b)
@@ -254,7 +254,6 @@ affects a real use-case, it will be investigated.
254254
* npm-config(7)
255255
* npmrc(5)
256256
* npm-registry(7)
257-
* npm-folders(5)
258257
* npm-tag(1)
259258
* npm-rm(1)
260259
* npm-shrinkwrap(1)

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ npm-run-script(1) -- Run arbitrary package scripts
33

44
## SYNOPSIS
55

6-
npm run-script <script> <name>
6+
npm run-script [<pkg>] <command>
77

88
## DESCRIPTION
99

10-
This runs an arbitrary command from a package's "scripts" object.
10+
This runs an arbitrary command from a package's `"scripts"` object.
11+
If no package name is provided, it will search for a `package.json`
12+
in the current folder and use its `"scripts"` object.
1113

1214
It is used by the test, start, restart, and stop commands, but can be
1315
called directly, as well.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ See semver(7) for more details about specifying version ranges.
311311
* `<version`
312312
* `<=version`
313313
* `~version` "Approximately equivalent to version" See semver(7)
314+
* `^version` "Compatible with version" See semver(7)
314315
* `1.2.x` 1.2.0, 1.2.1, etc., but not 1.3.0
315316
* `http://...` See 'URLs as Dependencies' below
316317
* `*` Matches any version

deps/npm/html/doc/README.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<title>README</title>
44
<meta http-equiv="content-type" value="text/html;utf-8">
55
<link rel="stylesheet" type="text/css" href="../static/style.css">
6-
<link rel="canonical" href="https://www.npmjs.org/doc/<a href="../doc/README.html">README</a>.html">
6+
<link rel="canonical" href="https://www.npmjs.org/doc/README.html">
77
<script async=true src="../../static/toc.js"></script>
88

99
<body>
@@ -49,6 +49,10 @@ <h2 id="Fancy-Install-Unix">Fancy Install (Unix)</h2>
4949
<p>There&#39;s a pretty robust install script at
5050
<a href="https://www.npmjs.org/install.sh">https://www.npmjs.org/install.sh</a>. You can download that and run it.</p>
5151

52+
<p>Here&#39;s an example using curl:</p>
53+
54+
<pre><code>curl -L https://npmjs.org/install.sh | sh</code></pre>
55+
5256
<h3 id="Slightly-Fancier">Slightly Fancier</h3>
5357

5458
<p>You can set any npm configuration params with that script:</p>
@@ -256,5 +260,5 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
256260
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
257261
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
258262
</table>
259-
<p id="footer"><a href="../doc/README.html">README</a> &mdash; npm@1.4.7</p>
263+
<p id="footer"><a href="../doc/README.html">README</a> &mdash; npm@1.4.8</p>
260264

deps/npm/html/doc/api/npm-bin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3232
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
3333
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
3434
</table>
35-
<p id="footer">npm-bin &mdash; npm@1.4.7</p>
35+
<p id="footer">npm-bin &mdash; npm@1.4.8</p>
3636

deps/npm/html/doc/api/npm-bugs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3838
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
3939
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
4040
</table>
41-
<p id="footer">npm-bugs &mdash; npm@1.4.7</p>
41+
<p id="footer">npm-bugs &mdash; npm@1.4.8</p>
4242

deps/npm/html/doc/api/npm-commands.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
4141
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
4242
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
4343
</table>
44-
<p id="footer">npm-commands &mdash; npm@1.4.7</p>
44+
<p id="footer">npm-commands &mdash; npm@1.4.8</p>
4545

deps/npm/html/doc/api/npm-config.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
4646
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
4747
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
4848
</table>
49-
<p id="footer">npm-config &mdash; npm@1.4.7</p>
49+
<p id="footer">npm-config &mdash; npm@1.4.8</p>
5050

0 commit comments

Comments
 (0)