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

npm-package-arg

Package Overview
Dependencies
Maintainers
7
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 8.0.0 to 8.0.1

10

npa.js

@@ -15,3 +15,3 @@ 'use strict'

let validatePackageName
let osenv
let os

@@ -74,3 +74,3 @@ const isWindows = process.platform === 'win32' || global.FAKE_WINDOWS

if (!HostedGit) HostedGit = require('hosted-git-info')
const hosted = HostedGit.fromUrl(spec, {noGitPlus: true, noCommittish: true})
const hosted = HostedGit.fromUrl(spec, { noGitPlus: true, noCommittish: true })
if (hosted) {

@@ -179,4 +179,4 @@ return fromHostedGit(res, hosted)

// this is needed for windows and for file:~/foo/bar
if (!osenv) osenv = require('osenv')
res.fetchSpec = resolvePath(osenv.home(), spec.slice(2))
if (!os) os = require('os')
res.fetchSpec = resolvePath(os.homedir(), spec.slice(2))
res.saveSpec = 'file:' + spec

@@ -197,3 +197,3 @@ } else {

res.hosted = hosted
res.saveSpec = hosted.toString({noGitPlus: false, noCommittish: false})
res.saveSpec = hosted.toString({ noGitPlus: false, noCommittish: false })
res.fetchSpec = hosted.getDefaultRepresentation() === 'shortcut' ? null : hosted.toString()

@@ -200,0 +200,0 @@ return setGitCommittish(res, hosted.committish)

{
"name": "npm-package-arg",
"version": "8.0.0",
"version": "8.0.1",
"description": "Parse the things that can be arguments to `npm install`",

@@ -14,3 +14,2 @@ "main": "npa.js",

"hosted-git-info": "^3.0.2",
"osenv": "^0.1.5",
"semver": "^7.0.0",

@@ -20,12 +19,10 @@ "validate-npm-package-name": "^3.0.0"

"devDependencies": {
"standard": "^11.0.1",
"standard-version": "^7.0.1",
"tap": "^14.10.2"
},
"scripts": {
"prerelease": "npm t",
"postrelease": "npm publish && git push --follow-tags",
"posttest": "standard",
"release": "standard-version -s",
"test": "tap --100 -J --coverage test/*.js"
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"test": "tap",
"snap": "tap"
},

@@ -32,0 +29,0 @@ "repository": {

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