Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add always option to replaceRegistryHost #164

Merged
merged 2 commits into from
May 2, 2022

Conversation

fritzy
Copy link
Contributor

@fritzy fritzy commented Apr 26, 2022

The pacote option replaceRegistryHost currently supports values "npmjs" (default) and "never".
This PR adds "always". When "always" is set, the registry host in the tarball url of the packument is always replaced with the current registry, regardless of its packument reference value.

@fritzy fritzy requested a review from a team as a code owner April 26, 2022 20:52
@fritzy fritzy force-pushed the fritzy/replace-host-always branch from 4106065 to 1e8a6ab Compare April 26, 2022 21:44
lib/remote.js Outdated Show resolved Hide resolved
Copy link
Member

@wraithgar wraithgar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice. No regex.

@fritzy fritzy merged commit edd1ee5 into main May 2, 2022
@fritzy fritzy deleted the fritzy/replace-host-always branch May 2, 2022 20:34
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.

3 participants