Skip to content

Commit 5abdef7

Browse files
committed
npm: Upgrade to 1.3.8
1 parent f55aca6 commit 5abdef7

365 files changed

Lines changed: 5267 additions & 10077 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/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ npm-debug.log
1010
node_modules/ronn
1111
node_modules/tap
1212
node_modules/.bin
13+
node_modules/npm-registry-mock
1314
/npmrc
1415
/release/
1516

deps/npm/LICENSE

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Copyright (c) Isaac Z. Schlueter
22
All rights reserved.
33

4-
npm is released under the Artistic 2.0 License.
4+
npm is released under the Artistic License 2.0.
55
The text of the License follows:
66

77

@@ -119,15 +119,15 @@ you do at least ONE of the following:
119119
make the Source form of the Modified Version available to others
120120
under
121121

122-
(i) the Original License or
122+
(i) the Original License or
123123

124-
(ii) a license that permits the licensee to freely copy,
125-
modify and redistribute the Modified Version using the same
126-
licensing terms that apply to the copy that the licensee
127-
received, and requires that the Source form of the Modified
128-
Version, and of any works derived from it, be made freely
129-
available in that license fees are prohibited but Distributor
130-
Fees are allowed.
124+
(ii) a license that permits the licensee to freely copy,
125+
modify and redistribute the Modified Version using the same
126+
licensing terms that apply to the copy that the licensee
127+
received, and requires that the Source form of the Modified
128+
Version, and of any works derived from it, be made freely
129+
available in that license fees are prohibited but Distributor
130+
Fees are allowed.
131131

132132

133133
Distribution of Compiled Forms of the Standard Version

deps/npm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,6 @@ will no doubt tell you to put the output in a gist or email.
234234
## SEE ALSO
235235

236236
* npm(1)
237-
* npm-faq(1)
237+
* npm-faq(7)
238238
* npm-help(1)
239-
* npm-index(1)
239+
* npm-index(7)

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/api/repo.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
npm-repo(3) -- Open package repository page in the browser
2+
========================================================
3+
4+
## SYNOPSIS
5+
6+
npm.commands.repo(package, callback)
7+
8+
## DESCRIPTION
9+
10+
This command tries to guess at the likely location of a package's
11+
repository URL, and then tries to open it using the `--browser`
12+
config param.
13+
14+
Like other commands, the first parameter is an array. This command only
15+
uses the first element, which is expected to be a package name with an
16+
optional version number.
17+
18+
This command will launch a browser, so this command may not be the most
19+
friendly for programmatic use.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ symbolic link from `prefix/package-name` to the current folder.
1616
Next, in some other location, `npm link package-name` will create a
1717
symlink from the local `node_modules` folder to the global symlink.
1818

19-
Note that `package-name` is taken from `package.json` ,
19+
Note that `package-name` is taken from `package.json`,
2020
not from directory name.
2121

2222
When creating tarballs for `npm publish`, the linked packages are

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ in your git config for this to work properly. For example:
4242

4343
* npm-init(1)
4444
* package.json(5)
45-
* npm-semver(7)
45+
* semver(7)

deps/npm/doc/cli/repo.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
npm-repo(1) -- Open package repository page in the browser
2+
========================================================
3+
4+
## SYNOPSIS
5+
6+
npm repo <pkgname>
7+
8+
## DESCRIPTION
9+
10+
This command tries to guess at the likely location of a package's
11+
repository URL, and then tries to open it using the `--browser`
12+
config param.
13+
14+
## CONFIGURATION
15+
16+
### browser
17+
18+
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
19+
* Type: String
20+
21+
The browser that is called by the `npm repo` command to open websites.
22+
23+
## SEE ALSO
24+
25+
* npm-docs(1)
26+
* npm-config(1)

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

Lines changed: 40 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,7 @@ Version must be parseable by
6868
[node-semver](https://github.com/isaacs/node-semver), which is bundled
6969
with npm as a dependency. (`npm install semver` to use it yourself.)
7070

71-
Here's how npm's semver implementation deviates from what's on semver.org:
72-
73-
* Versions can start with "v"
74-
* A numeric item separated from the main three-number version by a hyphen
75-
will be interpreted as a "build" number, and will *increase* the version.
76-
But, if the tag is not a number separated by a hyphen, then it's treated
77-
as a pre-release tag, and is *less than* the version without a tag.
78-
So, `0.1.2-7 > 0.1.2-7-beta > 0.1.2-6 > 0.1.2 > 0.1.2beta`
79-
80-
This is a little bit confusing to explain, but matches what you see in practice
81-
when people create tags in git like "v1.2.3" and then do "git describe" to generate
82-
a patch version.
71+
More on version numbers and ranges at semver(7).
8372

8473
## description
8574

@@ -335,24 +324,23 @@ configs.
335324

336325
## dependencies
337326

338-
Dependencies are specified with a simple hash of package name to version
339-
range. The version range is EITHER a string which has one or more
340-
space-separated descriptors, OR a range like "fromVersion - toVersion"
327+
Dependencies are specified with a simple hash of package name to
328+
version range. The version range is a string which has one or more
329+
space-separated descriptors. Dependencies can also be identified with
330+
a tarball or git URL.
341331

342-
**Please do not put test harnesses in your `dependencies` hash.** See
343-
`devDependencies`, below.
332+
**Please do not put test harnesses or transpilers in your
333+
`dependencies` hash.** See `devDependencies`, below.
344334

345-
Version range descriptors may be any of the following styles, where "version"
346-
is a semver compatible version identifier.
335+
See semver(7) for more details about specifying version ranges.
347336

348337
* `version` Must match `version` exactly
349-
* `=version` Same as just `version`
350338
* `>version` Must be greater than `version`
351339
* `>=version` etc
352340
* `<version`
353341
* `<=version`
354-
* `~version` See 'Tilde Version Ranges' below
355-
* `1.2.x` See 'X Version Ranges' below
342+
* `~version` "Approximately equivalent to version" See semver(7)
343+
* `1.2.x` 1.2.0, 1.2.1, etc., but not 1.3.0
356344
* `http://...` See 'URLs as Dependencies' below
357345
* `*` Matches any version
358346
* `""` (just an empty string) Same as `*`
@@ -376,40 +364,9 @@ For example, these are all valid:
376364
}
377365
}
378366

379-
### Tilde Version Ranges
380-
381-
A range specifier starting with a tilde `~` character is matched against
382-
a version in the following fashion.
383-
384-
* The version must be at least as high as the range.
385-
* The version must be less than the next major revision above the range.
386-
387-
For example, the following are equivalent:
388-
389-
* `"~1.2.3" = ">=1.2.3 <1.3.0"`
390-
* `"~1.2" = ">=1.2.0 <1.3.0"`
391-
* `"~1" = ">=1.0.0 <1.1.0"`
392-
393-
### X Version Ranges
394-
395-
An "x" in a version range specifies that the version number must start
396-
with the supplied digits, but any digit may be used in place of the x.
397-
398-
The following are equivalent:
399-
400-
* `"1.2.x" = ">=1.2.0 <1.3.0"`
401-
* `"1.x.x" = ">=1.0.0 <2.0.0"`
402-
* `"1.2" = "1.2.x"`
403-
* `"1.x" = "1.x.x"`
404-
* `"1" = "1.x.x"`
405-
406-
You may not supply a comparator with a version containing an x. Any
407-
digits after the first "x" are ignored.
408-
409367
### URLs as Dependencies
410368

411-
Starting with npm version 0.2.14, you may specify a tarball URL in place
412-
of a version range.
369+
You may specify a tarball URL in place of a version range.
413370

414371
This tarball will be downloaded and installed locally to your package at
415372
install time.
@@ -436,11 +393,35 @@ the external test or documentation framework that you use.
436393
In this case, it's best to list these additional items in a
437394
`devDependencies` hash.
438395

439-
These things will be installed whenever the `--dev` configuration flag
440-
is set. This flag is set automatically when doing `npm link` or when doing
441-
`npm install` from the root of a package, and can be managed like any other npm
396+
These things will be installed when doing `npm link` or `npm install`
397+
from the root of a package, and can be managed like any other npm
442398
configuration param. See `npm-config(7)` for more on the topic.
443399

400+
For build steps that are not platform-specific, such as compiling
401+
CoffeeScript or other languages to JavaScript, use the `prepublish`
402+
script to do this, and make the required package a devDependency.
403+
404+
For example:
405+
406+
```json
407+
{ "name": "ethopia-waza",
408+
"description": "a delightfully fruity coffee varietal",
409+
"version": "1.2.3",
410+
"devDependencies": {
411+
"coffee-script": "~1.6.3"
412+
},
413+
"scripts": {
414+
"prepublish": "coffee -o lib/ -c src/waza.coffee"
415+
},
416+
"main": "lib/waza.js"
417+
}
418+
```
419+
420+
The `prepublish` script will be run before publishing, so that users
421+
can consume the functionality without requiring them to compile it
422+
themselves. In dev mode (ie, locally running `npm install`), it'll
423+
run this script as well, so that you can test it easily.
424+
444425
## bundledDependencies
445426

446427
Array of package names that will be bundled when publishing the package.
@@ -481,7 +462,7 @@ Entries in `optionalDependencies` will override entries of the same name in
481462

482463
You can specify the version of node that your stuff works on:
483464

484-
{ "engines" : { "node" : ">=0.1.27 <0.1.30" } }
465+
{ "engines" : { "node" : ">=0.10.3 <0.12" } }
485466

486467
And, like with dependencies, if you don't specify the version (or if you
487468
specify "\*" as the version), then any version of node will do.
@@ -576,7 +557,7 @@ overridden.
576557

577558
## SEE ALSO
578559

579-
* npm-semver(7)
560+
* semver(7)
580561
* npm-init(1)
581562
* npm-version(1)
582563
* npm-config(1)

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ View registry info
191191

192192
Display npm username
193193

194+
## repo(1)
195+
196+
Open package repository page in the browser
197+
194198
# API Documentation
195199

196200
## npm(3)
@@ -345,6 +349,10 @@ View registry info
345349

346350
Display npm username
347351

352+
## repo(3)
353+
354+
Open package repository page in the browser
355+
348356
# Files
349357

350358
## npm-folders(5)

0 commit comments

Comments
 (0)