unpkg-server
unpkg-server copied to clipboard
Enable work with scoped names of GitLab npm registry
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)
.