gitea/routers/api/packages
Wayne Starr 995ae06a6e
Allow for resolution of NPM registry paths that match upstream (#21568) (#21723)
Backport (#21568)

This PR fixes issue #21567 allowing for package tarball URLs to match
the upstream registry (and GitLab/JFrog Artifactory URLs). It uses a
regex to parse the filename (which contains the NPM version) and does a
fuzzy search to pull it out. The regex was built/expanded from
http://json.schemastore.org/package,
https://github.com/Masterminds/semver, and
https://docs.npmjs.com/cli/v6/using-npm/semver and is testable here:
https://regex101.com/r/OydBJq/5

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-11-09 14:00:09 +08:00
..
composer Add Docker /v2/_catalog endpoint (#20469) (#20556) 2022-07-30 17:52:04 +02:00
conan Set SemverCompatible to false for Conan packages (#21275) (#21366) 2022-10-10 20:46:09 +08:00
container Keep download count on Container tag overwrite (#20728) (#20735) 2022-08-09 17:33:45 +02:00
generic packages/generic: Do not restrict package versions to SemVer (#20414) (#20531) 2022-07-29 01:17:56 +02:00
helm Add Helm Chart registry (#19406) 2022-04-19 12:55:35 -04:00
helper Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
maven Allow multiple metadata files for Maven packages (#20674) (#20916) 2022-08-23 10:00:58 +08:00
npm Allow for resolution of NPM registry paths that match upstream (#21568) (#21723) 2022-11-09 14:00:09 +08:00
nuget Case-insensitive NuGet symbol file GUID (#21409) (#21575) 2022-10-24 19:57:19 +08:00
pypi Allow local package identifiers for PyPI packages (#21690) (#21726) 2022-11-09 09:10:25 +08:00
rubygems Package registry changes (#19305) 2022-04-06 03:32:09 +02:00
api.go Allow for resolution of NPM registry paths that match upstream (#21568) (#21723) 2022-11-09 14:00:09 +08:00