Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-package-arg

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-package-arg - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0

5

npa.js

@@ -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)

2

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc