npm-package-arg
Advanced tools
Comparing version 8.1.0 to 8.1.1
@@ -20,2 +20,3 @@ 'use strict' | ||
const isURL = /^(?:git[+])?[a-z]+:/i | ||
const isGit = /^[^@]+@[^:.]+\.[^:]+:.+$/i | ||
const isFilename = /[.](?:tgz|tar.gz|tar)$/i | ||
@@ -39,2 +40,4 @@ | ||
spec = arg | ||
} else if (isGit.test(arg)) { | ||
spec = `git+ssh://${arg}` | ||
} else if (namePart[0] !== '@' && (hasSlashes.test(namePart) || isFilename.test(namePart))) { | ||
@@ -41,0 +44,0 @@ spec = arg |
{ | ||
"name": "npm-package-arg", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"description": "Parse the things that can be arguments to `npm install`", | ||
@@ -5,0 +5,0 @@ "main": "npa.js", |
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
16307
278