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

feat(sdk): AbortController #204

Merged
merged 2 commits into from
Jan 9, 2024
Merged

feat(sdk): AbortController #204

merged 2 commits into from
Jan 9, 2024

Conversation

notrab
Copy link
Member

@notrab notrab commented Jan 8, 2024

I forgot to push this on Saturday but I was using the SDK with an input similar to what you see on nameguard.io but there was no way to abort current requests. Also includes some minimal refactoring.

Copy link

vercel bot commented Jan 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nameguard-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2024 9:40am

@notrab notrab changed the title feat: AbortController feat(sdk): AbortController Jan 8, 2024
Copy link
Member

@lightwalker-eth lightwalker-eth left a comment

Choose a reason for hiding this comment

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

@notrab cool improvements here ! Nice work 👍

* @param {object} headers Additional headers for the request.
* @returns {Promise<any>} The response from the API.
*/
async rawRequest(
Copy link
Member

Choose a reason for hiding this comment

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

Should we explicitly identify this as public or private?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd prefer to keep this accessible but not documented. It's useful being public to allow us to make additional requests to the API for new endpoints without having to update or hack the SDK.

@notrab notrab merged commit ea69dc0 into main Jan 9, 2024
5 of 7 checks passed
@notrab notrab deleted the abort-controller branch January 9, 2024 10:11
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.

2 participants