npm-package-arg
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -166,2 +166,7 @@ var url = require("url") | ||
case 'file:': | ||
res.type = 'local' | ||
res.spec = urlparse.pathname | ||
break; | ||
default: | ||
@@ -168,0 +173,0 @@ throw new Error('Unsupported URL Type: ' + arg) |
{ | ||
"name": "npm-package-arg", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "Parse the things that can be arguments to `npm install`", | ||
@@ -5,0 +5,0 @@ "main": "npa.js", |
@@ -66,2 +66,9 @@ var npa = require("../npa.js") | ||
"git+ssh://git@github.com/user/foo#1.2.3": { | ||
name: null, | ||
type: "git", | ||
spec: "ssh://git@github.com/user/foo#1.2.3", | ||
raw: "git+ssh://git@github.com/user/foo#1.2.3", | ||
}, | ||
"git://github.com/user/foo": { | ||
@@ -89,2 +96,30 @@ name: null, | ||
"file:path/to/foo": { | ||
name: null, | ||
type: "local", | ||
spec: "path/to/foo", | ||
raw: "file:path/to/foo" | ||
}, | ||
"file:~/path/to/foo": { | ||
name: null, | ||
type: "local", | ||
spec: "~/path/to/foo", | ||
raw: "file:~/path/to/foo" | ||
}, | ||
"file:../path/to/foo": { | ||
name: null, | ||
type: "local", | ||
spec: "../path/to/foo", | ||
raw: "file:../path/to/foo" | ||
}, | ||
"file:///path/to/foo": { | ||
name: null, | ||
type: "local", | ||
spec: "/path/to/foo", | ||
raw: "file:///path/to/foo" | ||
}, | ||
"https://server.com/foo.tgz": { | ||
@@ -91,0 +126,0 @@ name: null, |
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
12662
367
1