realize-package-specifier
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -36,5 +36,7 @@ "use strict" | ||
} | ||
if (dep.type == "local" || dep.type == "directory") dep.spec = specpath | ||
if (dep.type == "local" || dep.type == "directory") { | ||
dep.spec = path.resolve(specpath) | ||
} | ||
cb(null, dep) | ||
} | ||
} |
{ | ||
"name": "realize-package-specifier", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Like npm-package-arg, but more so, producing full file paths and differentiating local tar and directory sources.", | ||
@@ -18,8 +18,8 @@ "main": "index.js", | ||
"dezalgo": "^1.0.1", | ||
"npm-package-arg": "^4.0.0" | ||
"npm-package-arg": "^4.1.1" | ||
}, | ||
"devDependencies": { | ||
"require-inject": "^1.1.0", | ||
"tap": "^0.4.12" | ||
"tap": "^5.7.1" | ||
} | ||
} |
@@ -72,6 +72,6 @@ "use strict" | ||
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") | ||
}) | ||
@@ -78,0 +78,0 @@ rps("file:./a.tar.gz", function (err, result) { |
@@ -22,4 +22,4 @@ var test = require("tap").test; | ||
rawSpec: "", | ||
spec: "*", | ||
type: "range" | ||
spec: "latest", | ||
type: "tag" | ||
}, | ||
@@ -32,4 +32,4 @@ | ||
rawSpec: "", | ||
spec: "*", | ||
type: "range" | ||
spec: "latest", | ||
type: "tag" | ||
}, | ||
@@ -139,4 +139,4 @@ | ||
name: "foo", | ||
type: "range", | ||
spec: "*", | ||
type: "tag", | ||
spec: "latest", | ||
raw: "foo" | ||
@@ -143,0 +143,0 @@ } |
@@ -61,3 +61,3 @@ var test = require("tap").test; | ||
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" | ||
@@ -64,0 +64,0 @@ }, |
@@ -77,3 +77,3 @@ var test = require("tap").test; | ||
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" | ||
@@ -80,0 +80,0 @@ }, |
@@ -61,3 +61,3 @@ var test = require("tap").test; | ||
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" | ||
@@ -64,0 +64,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22316
602
Updatednpm-package-arg@^4.1.1