Skip to content

Commit

Permalink
feat(npm): Support for yarn clients accessing the registry (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
eminugurkenar authored Nov 11, 2024
1 parent ae0d68e commit b388c9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func ProxyResponseHandler() func(*http.Response) error {
// Also support for pnpm and bun
if strings.HasPrefix(r.Request.UserAgent(), "npm") ||
strings.HasPrefix(r.Request.UserAgent(), "pnpm") ||
strings.HasPrefix(r.Request.UserAgent(), "yarn") ||
strings.HasPrefix(r.Request.UserAgent(), "Bun") {

// Respond to only requests that respond with JSON
Expand Down

0 comments on commit b388c9b

Please sign in to comment.