Skip to content

Enable work with scoped names of GitLab npm registry#6

Open
IgorPomelnikov wants to merge 4 commits into
KevinSheedy:masterfrom
IgorPomelnikov:master
Open

Enable work with scoped names of GitLab npm registry#6
IgorPomelnikov wants to merge 4 commits into
KevinSheedy:masterfrom
IgorPomelnikov:master

Conversation

@IgorPomelnikov
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Author

Found some bugs on Ubuntu. Close until resolve

@IgorPomelnikov
Copy link
Copy Markdown
Author

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

@IgorPomelnikov IgorPomelnikov reopened this Aug 1, 2024
@IgorPomelnikov
Copy link
Copy Markdown
Author

Adding the ability to override the cache-control header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant