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

Fix name check for private registries #356

Merged
merged 3 commits into from
Mar 15, 2019
Merged

Fix name check for private registries #356

merged 3 commits into from
Mar 15, 2019

Conversation

itaisteinherz
Copy link
Collaborator

This fixes the name check when publishing to a private registry by skipping it.

Fixes #350
Fixes #317
Closes #318

Copy link
Contributor

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM, but a minor suggestion.

source/npm/check-name.js Outdated Show resolved Hide resolved
Thanks @aladdin-add for the suggestion ✨
source/npm-util.js Outdated Show resolved Hide resolved
@sindresorhus sindresorhus merged commit e8a3a7d into sindresorhus:master Mar 15, 2019
@itaisteinherz itaisteinherz deleted the fix-name-check branch March 15, 2019 09:03
@itaisteinherz
Copy link
Collaborator Author

Cosidering sindresorhus/npm-name#31 (comment), we should check for name availability when publishing to external registries as well (once the feature is implemented in npm-name).

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.

Response code 400 (Bad Request) Publish failed when using 3.1.0 not 3.0.4
3 participants