Skip to content

Commit b388c9b

Browse files
feat(npm): Support for yarn clients accessing the registry (#17)
1 parent ae0d68e commit b388c9b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tools/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func ProxyResponseHandler() func(*http.Response) error {
8484
// Also support for pnpm and bun
8585
if strings.HasPrefix(r.Request.UserAgent(), "npm") ||
8686
strings.HasPrefix(r.Request.UserAgent(), "pnpm") ||
87+
strings.HasPrefix(r.Request.UserAgent(), "yarn") ||
8788
strings.HasPrefix(r.Request.UserAgent(), "Bun") {
8889

8990
// Respond to only requests that respond with JSON

0 commit comments

Comments
 (0)