-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fixes #171: exposes the auth, username and password properties of registries #172
Fixes #171: exposes the auth, username and password properties of registries #172
Conversation
…s of registries.
Seems I only ran the tests, not the full check suite. Will fix that later today, hopefully. |
could you run |
Head branch was pushed to by a user without write access
Done! |
Thanks for the PR! |
No problem! When do you think this will be released? |
hoping for friday |
Hi @mpetuska ! Would you mind releasing a new version of the plugin with these changes? I'd really like to use Thank you! (And thanks @lesteenman for implementing them 😄) |
This exposes a couple of extra authentication related properties of npm registry configuration.
I opted not to throw any exceptions if multiple options were found, but instead rely on the behaviour of NPM itself, and to transparently pass the parameters on.
The only field with special changes needed is the
_password
field, which npm expects to have been set as a base64 encoded string in the.npmrc
file. I've transparently exposed the password field to the plugin's users to simplify usage, but encoded it in the plugin.I haven't found official documentation about that, but was inspired by this line in the official npm github repository: https://github.com/npm/cli/blob/3b8b11161ee2f88817dcc19b4770040d5bc73261/workspaces/arborist/README.md?plain=1#L42