Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-07-25 04:51:29 +0400
committerisaacs <i@izs.me>2014-07-25 04:52:02 +0400
commitea547e29f1245e516fc67641875841c10f04e1ee (patch)
treed4ee0d8a6c49f20ce4a402f17bd4e350136c1a7b /node_modules/npm-package-arg/package.json
parent33ccd13d161ff185d9c9c545013e0775f86c13ac (diff)
Bump semver to version 3
This makes the '^' operator stricter for 0.x.y versions, even if 'x' is not 0. As a direct result, several *other* deps had to be updated, because they either depended on semver 2.x, or because the new stricter rules meant that they (or their deps) were no longer valid. The update to 'read-installed', in particular, causes a test failure. That update must be rolled back, or the test made to pass, prior to a stable npm 2.0.0 release going out.
Diffstat (limited to 'node_modules/npm-package-arg/package.json')
-rw-r--r--node_modules/npm-package-arg/package.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/npm-package-arg/package.json b/node_modules/npm-package-arg/package.json
index fd9e74c42..f4a1bcdc7 100644
--- a/node_modules/npm-package-arg/package.json
+++ b/node_modules/npm-package-arg/package.json
@@ -1,13 +1,13 @@
{
"name": "npm-package-arg",
- "version": "2.0.1",
+ "version": "2.0.2",
"description": "Parse the things that can be arguments to `npm install`",
"main": "npa.js",
"directories": {
"test": "test"
},
"dependencies": {
- "semver": "^2.3.0"
+ "semver": "^2.3.0 || 3.x"
},
"devDependencies": {
"tap": "^0.4.9"
@@ -31,8 +31,8 @@
"homepage": "https://github.com/npm/npm-package-arg",
"readme": "# npm-package-arg\n\nParse the things that can be arguments to `npm install`\n\nTakes an argument like `foo@1.2`, or `foo@user/foo`, or\n`http://x.com/foo.tgz`, or `git+https://github.com/user/foo`, and\nfigures out what type of thing it is.\n\n## USAGE\n\n```javascript\nvar assert = require(\"assert\")\nvar npa = require(\"npm-package-arg\")\n\n// Pass in the descriptor, and it'll return an object\nvar parsed = npa(\"foo@1.2\")\n\n// Returns an object like:\n// {\n// name: \"foo\", // The bit in front of the @\n// type: \"range\", // the type of descriptor this is\n// spec: \"1.2\" // the specifier for this descriptor\n// }\n\n// Completely unreasonable invalid garbage throws an error\n// Make sure you wrap this in a try/catch if you have not\n// already sanitized the inputs!\nassert.throws(function() {\n npa(\"this is not \\0 a valid package name or url\")\n})\n```\n\nFor more examples, see the test file.\n\n## Result Objects\n\nThe objects that are returned by npm-package-arg contain the following\nfields:\n\n* `name` - If known, the `name` field expected in the resulting pkg.\n* `type` - One of the following strings:\n * `git` - A git repo\n * `github` - A github shorthand, like `user/project`\n * `tag` - A tagged version, like `\"foo@latest\"`\n * `version` - A specific version number, like `\"foo@1.2.3\"`\n * `range` - A version range, like `\"foo@2.x\"`\n * `local` - A local file or folder path\n * `remote` - An http url (presumably to a tgz)\n* `spec` - The \"thing\". URL, the range, git repo, etc.\n* `raw` - The original un-modified string that was provided.\n* `rawSpec` - The part after the `name@...`, as it was originally\n provided.\n* `scope` - If a name is something like `@org/module` then the `scope`\n field will be set to `org`. If it doesn't have a scoped name, then\n scope is `null`.\n",
"readmeFilename": "README.md",
- "gitHead": "543239e7db293cea99ac366050dd96c6cc55879c",
- "_id": "npm-package-arg@2.0.1",
- "_shasum": "73340bbb51cdf7656ac0bfa4fd18c16db245ba58",
+ "gitHead": "2e21602126b7bda86a7db95f9939e43a6710b8be",
+ "_id": "npm-package-arg@2.0.2",
+ "_shasum": "e4f660c683068eccba9b27b4075cc00c0ccc6037",
"_from": "npm-package-arg@latest"
}