Skip to content

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.

@vercel
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
@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.

3 participants