Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

feat: throw errors for invalid auth configuration #92

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

nlf
Copy link
Contributor

@nlf nlf commented Oct 5, 2022

BREAKING CHANGE: unscoped auth configuration is no longer automatically scoped to a registry. the validate method is no longer called automatically. the _auth configuration key is no longer split into username and _password. errors will be thrown by validate() if problems are found.

@nlf nlf requested a review from a team as a code owner October 5, 2022 21:46
lib/index.js Outdated Show resolved Hide resolved
@wraithgar
Copy link
Member

Approved w/ a "food for thought" question.

BREAKING CHANGE: unscoped auth configuration is no longer automatically scoped to a registry. the `validate` method is no longer called automatically. the `_auth` configuration key is no longer split into `username` and `_password`. errors will be thrown by `validate()` if problems are found.
@nlf nlf force-pushed the nlf/throw-on-invalid-auth branch from e24bb80 to fd92d07 Compare October 6, 2022 18:04
@nlf nlf merged commit 344ccd3 into main Oct 6, 2022
@nlf nlf deleted the nlf/throw-on-invalid-auth branch October 6, 2022 18:40
@github-actions github-actions bot mentioned this pull request Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants