From 46addc1f938abefd346a7a74d815f6c4faaa6818 Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Sat, 18 Mar 2023 02:39:19 +0800 Subject: Return `repository` in npm package metadata endpoint (#23539) Close #23444 Add `Repository` to npm package `Metadata` struct so the `repository` in `package.json` can be stored and be returned in the endpoint. Co-authored-by: KN4CK3R --- routers/api/packages/npm/api.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers') diff --git a/routers/api/packages/npm/api.go b/routers/api/packages/npm/api.go index f8d50f03cf..8470874884 100644 --- a/routers/api/packages/npm/api.go +++ b/routers/api/packages/npm/api.go @@ -45,6 +45,7 @@ func createPackageMetadataResponse(registryURL string, pds []*packages_model.Pac Author: npm_module.User{Name: metadata.Author}, License: metadata.License, Versions: versions, + Repository: metadata.Repository, } } -- cgit v1.2.3