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 <admin@oldschoolhack.me>
This commit is contained in:
Zettat123andKN4CK3R authored and GitHub committed 2023-03-17 14:39:19 -04:00
1 parent d0f48187f9
commit 46addc1f93
5 files changed
+18

No files matched your search

+1
View File
@@ -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,
}
}