unpkg-server icon indicating copy to clipboard operation
unpkg-server copied to clipboard

Enable work with scoped names of GitLab npm registry

Open IgorPomelnikov opened this issue 1 year ago • 3 comments

GitLab uses scoped name convention. We can see it in docs and in tarball links. Example: curl --header "Authorization: Bearer <personal_access_token>" "https://gitlab.example.com/api/v4/projects/1/packages/npm/@myscope/my-pkg/-/@my-scope/my-pkg-0.0.1.tgz"

Now by adding --GITLAB_REGISTRY we can turn off splitting tarballName in async function getPackage(packageName, version, log).

IgorPomelnikov avatar Aug 01 '24 09:08 IgorPomelnikov

Found some bugs on Ubuntu. Close until resolve

IgorPomelnikov avatar Aug 01 '24 12:08 IgorPomelnikov

Oh, that wasn't a bug. I typed GITLAB-REGISTRY instead GITLAB_REGISTRY.

IgorPomelnikov avatar Aug 01 '24 13:08 IgorPomelnikov

Adding the ability to override the cache-control header.

IgorPomelnikov avatar Aug 05 '24 10:08 IgorPomelnikov