npm-package-arg
Advanced tools
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": { |
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
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
3
1
16203
- Removedosenv@^0.1.5
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)