@pnpm/git-resolver
Advanced tools
Comparing version 1000.0.1 to 1000.0.2
@@ -92,3 +92,3 @@ "use strict"; | ||
if (httpsUrl) { | ||
if (hosted.auth && await accessRepository(httpsUrl)) { | ||
if ((hosted.auth || !await isRepoPublic(httpsUrl)) && await accessRepository(httpsUrl)) { | ||
return { | ||
@@ -109,3 +109,3 @@ fetchSpec: httpsUrl, | ||
// use HTTP HEAD request to test whether this is a private repo, to avoid login prompt. | ||
// this is very similar to yarn's behavior. | ||
// this is very similar to yarn classic's behavior. | ||
// npm instead tries git ls-remote directly which prompts user for login credentials. | ||
@@ -153,3 +153,3 @@ // HTTP HEAD on https://domain/user/repo, strip out ".git" | ||
} | ||
catch { // eslint-disable-line | ||
catch { | ||
return false; | ||
@@ -156,0 +156,0 @@ } |
{ | ||
"name": "@pnpm/git-resolver", | ||
"version": "1000.0.1", | ||
"version": "1000.0.2", | ||
"description": "Resolver for git-hosted packages", | ||
@@ -30,3 +30,3 @@ "main": "lib/index.js", | ||
"semver": "^7.6.2", | ||
"@pnpm/fetch": "1000.1.0", | ||
"@pnpm/fetch": "1000.1.1", | ||
"@pnpm/resolver-base": "1000.1.0" | ||
@@ -39,3 +39,3 @@ }, | ||
"is-windows": "^1.0.2", | ||
"@pnpm/git-resolver": "1000.0.1" | ||
"@pnpm/git-resolver": "1000.0.2" | ||
}, | ||
@@ -42,0 +42,0 @@ "funding": "https://opencollective.com/pnpm", |
Sorry, the diff of this file is not supported yet
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
25850
+ Added@pnpm/core-loggers@1000.1.0(transitive)
+ Added@pnpm/fetch@1000.1.1(transitive)
- Removed@pnpm/core-loggers@1000.0.0(transitive)
- Removed@pnpm/fetch@1000.1.0(transitive)
Updated@pnpm/fetch@1000.1.1