-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve client 1 to implement 1 #21
Conversation
A description for the url parameter has been added.
Now the client can handle string in "protocol://foo.bar" and "foo.bar" format. By default the http protocol will be appended if no other protocol is specified.
The GitlabClient has been replaced with a WebClient. This has been done because gitlab does not require a own client. The WebClient can handle all its needs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. 🐋
ep.url = ((url: string) => { | ||
if (!/^(?:f|ht)tps?\:\/\//.test(url)) { | ||
url = "http://" + url; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add newline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good after a change.
The code quality has been improved due to a request of @pinterid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
Due to a new snek-client release, the client has to be replaced. Ref: snek-at/client#21
Checklist:
Type of Changes:
What is the current behavior? (link to any open issues here)
What is the new behavior (if this is a feature change)?
Other information: