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 6.1.0 to 6.1.1

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="6.1.1"></a>
## [6.1.1](https://github.com/npm/npm-package-arg/compare/v6.1.0...v6.1.1) (2019-08-21)
### Bug Fixes
* preserve drive letter on windows git file:// urls ([3909203](https://github.com/npm/npm-package-arg/commit/3909203))
<a name="6.1.0"></a>

@@ -7,0 +17,0 @@ # [6.1.0](https://github.com/npm/npm-package-arg/compare/v6.0.0...v6.1.0) (2018-04-10)

18

npa.js

@@ -9,3 +9,7 @@ 'use strict'

let semver
let path
let path_
function path () {
if (!path_) path_ = require('path')
return path_
}
let validatePackageName

@@ -113,3 +117,2 @@ let osenv

}
Result.prototype = {}

@@ -157,4 +160,3 @@ Result.prototype.setName = function (name) {

if (isAbsolutePath.test(spec)) return spec
if (!path) path = require('path')
return path.resolve(where, spec)
return path().resolve(where, spec)
}

@@ -186,4 +188,3 @@

} else {
if (!path) path = require('path')
res.saveSpec = 'file:' + path.relative(where, res.fetchSpec)
res.saveSpec = 'file:' + path().relative(where, res.fetchSpec)
}

@@ -245,2 +246,7 @@ }

urlparse.protocol = urlparse.protocol.replace(/^git[+]/, '')
if (urlparse.protocol === 'file:' && /^git\+file:\/\/[a-z]:/i.test(res.rawSpec)) {
// keep the drive letter : on windows file paths
urlparse.host += ':'
urlparse.hostname += ':'
}
delete urlparse.hash

@@ -247,0 +253,0 @@ res.fetchSpec = url.format(urlparse)

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

@@ -13,5 +13,5 @@ "main": "npa.js",

"dependencies": {
"hosted-git-info": "^2.6.0",
"hosted-git-info": "^2.7.1",
"osenv": "^0.1.5",
"semver": "^5.5.0",
"semver": "^5.6.0",
"validate-npm-package-name": "^3.0.0"

@@ -21,4 +21,4 @@ },

"standard": "^11.0.1",
"standard-version": "^4.3.0",
"tap": "^11.1.3",
"standard-version": "^4.4.0",
"tap": "^12.5.0",
"weallbehave": "^1.2.0",

@@ -32,3 +32,3 @@ "weallcontribute": "^1.0.8"

"release": "standard-version -s",
"test": "tap -J --coverage test/*.js",
"test": "tap --100 -J --coverage test/*.js",
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'",

@@ -35,0 +35,0 @@ "update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"

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