summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/realize-package-specifier
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2016-05-06 15:22:02 -0700
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2016-05-10 14:45:28 -0400
commit5c36cfc8438d28ee5050ee6d5c383cf9c5b895fb (patch)
tree6165b1b2ee92982a1e157ac29c924b516771780d /deps/npm/node_modules/realize-package-specifier
parent101dd1ed789175311ab22f9a32dfc480f127bc68 (diff)
downloadnode-new-5c36cfc8438d28ee5050ee6d5c383cf9c5b895fb.tar.gz
deps: upgrade npm to 3.8.9
Contains the following three npm releases: https://github.com/npm/npm/releases/tag/v3.8.7 https://github.com/npm/npm/releases/tag/v3.8.8 https://github.com/npm/npm/releases/tag/v3.8.9 PR-URL: https://github.com/nodejs/node/pull/6664 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/node_modules/realize-package-specifier')
-rw-r--r--deps/npm/node_modules/realize-package-specifier/index.js2
-rw-r--r--deps/npm/node_modules/realize-package-specifier/package.json97
-rw-r--r--deps/npm/node_modules/realize-package-specifier/test/basic.js4
-rw-r--r--deps/npm/node_modules/realize-package-specifier/test/npa-basic.js12
-rw-r--r--deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js2
-rw-r--r--deps/npm/node_modules/realize-package-specifier/test/npa-github.js2
-rw-r--r--deps/npm/node_modules/realize-package-specifier/test/npa-gitlab.js2
7 files changed, 87 insertions, 34 deletions
diff --git a/deps/npm/node_modules/realize-package-specifier/index.js b/deps/npm/node_modules/realize-package-specifier/index.js
index 30214b2da3..935f600b0a 100644
--- a/deps/npm/node_modules/realize-package-specifier/index.js
+++ b/deps/npm/node_modules/realize-package-specifier/index.js
@@ -17,7 +17,7 @@ module.exports = function (spec, where, cb) {
if ((dep.type == "range" || dep.type == "version") && dep.name != dep.raw) return cb(null, dep)
var specpath = dep.type == "local"
? path.resolve(where, dep.spec)
- : path.resolve(dep.rawSpec? dep.rawSpec: dep.name)
+ : path.resolve(where, dep.rawSpec? dep.rawSpec: dep.name)
fs.stat(specpath, function (er, s) {
if (er) return finalize()
if (!s.isDirectory()) return finalize("local")
diff --git a/deps/npm/node_modules/realize-package-specifier/package.json b/deps/npm/node_modules/realize-package-specifier/package.json
index 6f08eef5be..d2fb6da2f7 100644
--- a/deps/npm/node_modules/realize-package-specifier/package.json
+++ b/deps/npm/node_modules/realize-package-specifier/package.json
@@ -1,37 +1,90 @@
{
- "name": "realize-package-specifier",
- "version": "3.0.1",
- "description": "Like npm-package-arg, but more so, producing full file paths and differentiating local tar and directory sources.",
- "main": "index.js",
- "scripts": {
- "test": "tap test/*.js"
+ "_args": [
+ [
+ "realize-package-specifier@~3.0.2",
+ "/Users/rebecca/code/npm"
+ ]
+ ],
+ "_from": "realize-package-specifier@>=3.0.2 <3.1.0",
+ "_id": "realize-package-specifier@3.0.3",
+ "_inCache": true,
+ "_installable": true,
+ "_location": "/realize-package-specifier",
+ "_nodeVersion": "4.4.0",
+ "_npmOperationalInternal": {
+ "host": "packages-16-east.internal.npmjs.com",
+ "tmp": "tmp/realize-package-specifier-3.0.3.tgz_1461233015050_0.3224435243755579"
},
- "license": "ISC",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/realize-package-specifier.git"
+ "_npmUser": {
+ "email": "me@re-becca.org",
+ "name": "iarna"
},
+ "_npmVersion": "3.8.7",
+ "_phantomChildren": {},
+ "_requested": {
+ "name": "realize-package-specifier",
+ "raw": "realize-package-specifier@~3.0.2",
+ "rawSpec": "~3.0.2",
+ "scope": null,
+ "spec": ">=3.0.2 <3.1.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/"
+ ],
+ "_shasum": "d0def882952b8de3f67eba5e91199661271f41f4",
+ "_shrinkwrap": null,
+ "_spec": "realize-package-specifier@~3.0.2",
+ "_where": "/Users/rebecca/code/npm",
"author": {
- "name": "Rebecca Turner",
"email": "me@re-becca.org",
+ "name": "Rebecca Turner",
"url": "http://re-becca.org"
},
- "homepage": "https://github.com/npm/realize-package-specifier",
+ "bugs": {
+ "url": "https://github.com/npm/realize-package-specifier/issues"
+ },
"dependencies": {
"dezalgo": "^1.0.1",
- "npm-package-arg": "^4.0.0"
+ "npm-package-arg": "^4.1.1"
},
+ "description": "Like npm-package-arg, but more so, producing full file paths and differentiating local tar and directory sources.",
"devDependencies": {
"require-inject": "^1.1.0",
- "tap": "^0.4.12"
+ "tap": "^5.7.1"
},
- "readme": "realize-package-specifier\n-------------------------\n\nParse a package specifier, peeking at the disk to differentiate between\nlocal tarballs, directories and named modules. This implements the logic\nused by `npm install` and `npm cache` to determine where to get packages\nfrom.\n\n```javascript\nvar realizePackageSpecifier = require(\"realize-package-specifier\")\nrealizePackageSpecifier(\"foo.tar.gz\", \".\", function (err, package) {\n …\n})\n```\n\n## Using\n\n* realizePackageSpecifier(*spec*, [*where*,] *callback*)\n\nParses *spec* using `npm-package-arg` and then uses stat to check to see if\nit refers to a local tarball or package directory. Stats are done relative\nto *where*. If it does then the local module is loaded. If it doesn't then\ntarget is left as a remote package specifier. Package directories are\nrecognized by the presence of a package.json in them.\n\n*spec* -- a package specifier, like: `foo@1.2`, or `foo@user/foo`, or\n`http://x.com/foo.tgz`, or `git+https://github.com/user/foo`\n\n*where* (optional, default: .) -- The directory in which we should look for\nlocal tarballs or package directories.\n\n*callback* function(*err*, *result*) -- Called once we've determined what\nkind of specifier this is. The *result* object will be very like the one\nreturned by `npm-package-arg` except with three differences: 1) There's a\nnew type of `directory`. 2) The `local` type only refers to tarballs. 2)\nFor all `local` and `directory` type results spec will contain the full path of\nthe local package.\n\n## Result Object\n\nThe full definition of the result object is:\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 * `hosted` - A hosted project, from github, bitbucket or gitlab. Originally\n either a full url pointing at one of these services or a shorthand like\n `user/project` or `github:user/project` for github or `bitbucket:user/project`\n for bitbucket.\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 path\n * `directory` - A local package directory\n * `remote` - An http url (presumably to a tgz)\n* `spec` - The \"thing\". URL, the range, git repo, etc.\n* `hosted` - If type=hosted this will be an object with the following keys:\n * `type` - github, bitbucket or gitlab\n * `ssh` - The ssh path for this git repo\n * `sshurl` - The ssh URL for this git repo\n * `https` - The HTTPS URL for this git repo\n * `directUrl` - The URL for the package.json in this git repo\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\n",
- "readmeFilename": "README.md",
- "gitHead": "4f50130fa6b5e80954a90ea12bab382f53d890b1",
- "bugs": {
- "url": "https://github.com/npm/realize-package-specifier/issues"
+ "directories": {},
+ "dist": {
+ "shasum": "d0def882952b8de3f67eba5e91199661271f41f4",
+ "tarball": "https://registry.npmjs.org/realize-package-specifier/-/realize-package-specifier-3.0.3.tgz"
+ },
+ "gitHead": "388221ee8e5b586932372949091aa2ee3ee7ab78",
+ "homepage": "https://github.com/npm/realize-package-specifier",
+ "license": "ISC",
+ "main": "index.js",
+ "maintainers": [
+ {
+ "email": "me@re-becca.org",
+ "name": "iarna"
+ },
+ {
+ "email": "ogd@aoaioxxysz.net",
+ "name": "othiym23"
+ },
+ {
+ "email": "kat@sykosomatic.org",
+ "name": "zkat"
+ }
+ ],
+ "name": "realize-package-specifier",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/npm/realize-package-specifier.git"
+ },
+ "scripts": {
+ "test": "tap test/*.js"
},
- "_id": "realize-package-specifier@3.0.1",
- "_shasum": "fde32e926448e38f99334d95b7b08d51e3a98d9f",
- "_from": "realize-package-specifier@>=3.0.1 <3.1.0"
+ "version": "3.0.3"
}
diff --git a/deps/npm/node_modules/realize-package-specifier/test/basic.js b/deps/npm/node_modules/realize-package-specifier/test/basic.js
index 7fe659fbf6..692ca07d5a 100644
--- a/deps/npm/node_modules/realize-package-specifier/test/basic.js
+++ b/deps/npm/node_modules/realize-package-specifier/test/basic.js
@@ -69,10 +69,10 @@ test("realize-package-specifier", function (t) {
t.is(result.type, "directory", "local package directory")
})
rps("c", function (err, result) {
- t.is(result.type, "range", "remote package, non-package local directory")
+ t.is(result.type, "tag", "remote package, non-package local directory")
})
rps("d", function (err, result) {
- t.is(result.type, "range", "remote package, no local directory")
+ t.is(result.type, "tag", "remote package, no local directory")
})
rps("file:./a.tar.gz", function (err, result) {
t.is(result.type, "local", "local tarball")
diff --git a/deps/npm/node_modules/realize-package-specifier/test/npa-basic.js b/deps/npm/node_modules/realize-package-specifier/test/npa-basic.js
index bd7ab4aec3..1155911789 100644
--- a/deps/npm/node_modules/realize-package-specifier/test/npa-basic.js
+++ b/deps/npm/node_modules/realize-package-specifier/test/npa-basic.js
@@ -19,8 +19,8 @@ test("npa-basic", function (t) {
name: "@foo/bar",
scope: "@foo",
rawSpec: "",
- spec: "*",
- type: "range"
+ spec: "latest",
+ type: "tag"
},
"@foo/bar@": {
@@ -28,8 +28,8 @@ test("npa-basic", function (t) {
name: "@foo/bar",
scope: "@foo",
rawSpec: "",
- spec: "*",
- type: "range"
+ spec: "latest",
+ type: "tag"
},
"@foo/bar@baz": {
@@ -134,8 +134,8 @@ test("npa-basic", function (t) {
"foo": {
name: "foo",
- type: "range",
- spec: "*",
+ type: "tag",
+ spec: "latest",
raw: "foo"
}
}
diff --git a/deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js b/deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js
index 4381e6c401..2bef724b9e 100644
--- a/deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js
+++ b/deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js
@@ -58,7 +58,7 @@ test("npa-bitbucket", function (t) {
name: null,
type: "hosted",
hosted: { type: "bitbucket" },
- spec: "https://bitbucket.org/user/foo.git",
+ spec: "git+https://bitbucket.org/user/foo.git",
raw: "https://bitbucket.org/user/foo.git"
},
diff --git a/deps/npm/node_modules/realize-package-specifier/test/npa-github.js b/deps/npm/node_modules/realize-package-specifier/test/npa-github.js
index b0c405e7de..7ae6b254ac 100644
--- a/deps/npm/node_modules/realize-package-specifier/test/npa-github.js
+++ b/deps/npm/node_modules/realize-package-specifier/test/npa-github.js
@@ -74,7 +74,7 @@ test("npa-github", function (t) {
name: null,
type: "hosted",
hosted: { type: "github" },
- spec: "https://github.com/user/foo.git",
+ spec: "git+https://github.com/user/foo.git",
raw: "https://github.com/user/foo.git"
},
diff --git a/deps/npm/node_modules/realize-package-specifier/test/npa-gitlab.js b/deps/npm/node_modules/realize-package-specifier/test/npa-gitlab.js
index cb1a625bc2..c7b45c2f8a 100644
--- a/deps/npm/node_modules/realize-package-specifier/test/npa-gitlab.js
+++ b/deps/npm/node_modules/realize-package-specifier/test/npa-gitlab.js
@@ -58,7 +58,7 @@ test("npa-gitlab", function (t) {
name: null,
type: "hosted",
hosted: { type: "gitlab" },
- spec: "https://gitlab.com/user/foo.git",
+ spec: "git+https://gitlab.com/user/foo.git",
raw: "https://gitlab.com/user/foo.git"
},