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

Ouput registry information before prompting user for login information #2075

Closed
wants to merge 3 commits into from

Conversation

Wicked7000
Copy link
Contributor

This change outputs the registry before prompting the user for the login information.

Related to/Resolves: #2071

@Wicked7000 Wicked7000 requested a review from a team as a code owner October 28, 2020 23:37
@Wicked7000 Wicked7000 changed the title Feature login registry Ouput registry information before prompting user for login information Oct 28, 2020
@Wicked7000 Wicked7000 force-pushed the feature-login-registry branch from 4710309 to 5f6626e Compare October 29, 2020 00:08
@darcyclarke darcyclarke added Release 7.x work is associated with a specific npm 7 release release: next These items should be addressed in the next release labels Oct 29, 2020
Copy link
Contributor

@ruyadorno ruyadorno left a comment

Choose a reason for hiding this comment

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

hi @Wicked7000 thanks for the awesome contribution!

Not a blocker to merge it since I believe we can address it later if the team has strong feelings about it but I believe this message would be better implemented as npmlog.notice for a few reasons:

  • visual printed output is a little bit more highlighted
  • that allow us to keep handling output only in lib/adduser.js
  • provide users a way to opt-out of the message by tuning diff loglevels

lib/auth/legacy.js Outdated Show resolved Hide resolved
@darcyclarke darcyclarke removed the release: next These items should be addressed in the next release label Oct 30, 2020
@Wicked7000 Wicked7000 force-pushed the feature-login-registry branch from 5f6626e to 009a90b Compare October 30, 2020 18:57
@darcyclarke darcyclarke self-assigned this Nov 3, 2020
lib/auth/legacy.js Outdated Show resolved Hide resolved
@ruyadorno ruyadorno force-pushed the feature-login-registry branch from 3bcc188 to cd509e9 Compare November 6, 2020 19:06
@darcyclarke darcyclarke added release: next These items should be addressed in the next release and removed Needs Review labels Nov 6, 2020
@isaacs isaacs closed this in 7716e42 Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: next These items should be addressed in the next release Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Print registry config value before on npm login
3 participants