diff options
author | Rebecca Turner <turner@mikomi.org> | 2014-09-30 00:03:42 +0400 |
---|---|---|
committer | Rebecca Turner <turner@mikomi.org> | 2014-10-01 01:43:31 +0400 |
commit | 553d830334552b83606b6bebefd821c9ea71e964 (patch) | |
tree | 1a8c22bb39e91bf76b1756ef7cf1f72615318f81 /node_modules/npm-package-arg | |
parent | 5657c1511599431d0242902956ae43bf5eedda58 (diff) |
Update npm-package-arg@2.1.3
Bring in the latest version with fixed tests
Diffstat (limited to 'node_modules/npm-package-arg')
-rw-r--r-- | node_modules/npm-package-arg/package.json | 12 | ||||
-rw-r--r-- | node_modules/npm-package-arg/test/basic.js | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/node_modules/npm-package-arg/package.json b/node_modules/npm-package-arg/package.json index 45604cb08..babbd7312 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.1.2", + "version": "2.1.3", "description": "Parse the things that can be arguments to `npm install`", "main": "npa.js", "directories": { "test": "test" }, "dependencies": { - "semver": "^2.3.0 || 3.x || 4" + "semver": "4" }, "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": "ebb3c5ee4c362aca5722cf805adf871f86b5c4f2", - "_id": "npm-package-arg@2.1.2", - "_shasum": "14f9be32e203a77977dd8120cf749d0db8c93761", - "_from": "npm-package-arg@>=2.1.2 <2.2.0" + "gitHead": "9aaabc2aae746371a05f54cdb57a5f9ada003d8f", + "_id": "npm-package-arg@2.1.3", + "_shasum": "dfba34bd82dd327c10cb43a65c8db6ef0b812bf7", + "_from": "npm-package-arg@~2.1.3" } diff --git a/node_modules/npm-package-arg/test/basic.js b/node_modules/npm-package-arg/test/basic.js index 3bc984e9d..98206db20 100644 --- a/node_modules/npm-package-arg/test/basic.js +++ b/node_modules/npm-package-arg/test/basic.js @@ -8,7 +8,7 @@ require("tap").test("basic", function (t) { "foo@1.2": { name: "foo", type: "range", - spec: ">=1.2.0-0 <1.3.0-0", + spec: ">=1.2.0 <1.3.0", raw: "foo@1.2", rawSpec: "1.2" }, |