From b388c9be992a3f531357293b3582490cbb1de774 Mon Sep 17 00:00:00 2001 From: eminugurkenar Date: Mon, 11 Nov 2024 04:36:01 +0300 Subject: [PATCH] feat(npm): Support for yarn clients accessing the registry (#17) --- src/tools/proxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/proxy.go b/src/tools/proxy.go index 734bda3..8919e02 100644 --- a/src/tools/proxy.go +++ b/src/tools/proxy.go @@ -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