Socket
Socket
Sign inDemoInstall

realize-package-specifier

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

realize-package-specifier - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

4

index.js

@@ -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 @@ },

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