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(api): stronger types & twitter url check. #42

Merged
merged 3 commits into from
Sep 21, 2022

Conversation

cpreston321
Copy link
Contributor

@cpreston321 cpreston321 commented Sep 20, 2022

Features

  • Added: defu which merges the query together with defaults
  • Added: Twitter URL check that returns the id if it doesn't contain both it will throw an error to endpoint.

Regex Test

https://regex101.com/r/AAtIUu/1

@vercel
Copy link

vercel bot commented Sep 20, 2022

Someone is attempting to deploy a commit to a Personal Account owned by @zernonia on Vercel.

@zernonia first needs to authorize it.

@vercel
Copy link

vercel bot commented Sep 21, 2022

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

Name Status Preview Updated
tweetic ✅ Ready (Inspect) Visit Preview Sep 21, 2022 at 3:19AM (UTC)

@cpreston321
Copy link
Contributor Author

cpreston321 commented Sep 21, 2022

@zernonia I added a helper utility that extends defu using h3 which nitro is wrapped under. You visit it here I released this early in the day.

https://github.com/cpreston321/h3-defu

Essentially the same concept just different package.

Same as useBody(event) -> getBodyWithDefaults(event, defaults = {})

@cpreston321
Copy link
Contributor Author

@zernonia

Also have a pre-release out for nuxt-vscode if you want to test it :)

https://github.com/cpreston321/nuxt-vscode

Appreciate it

@zernonia
Copy link
Owner

h3-defu looks good. Add a suggestion cpreston321/h3-defu#1 😁

@zernonia zernonia merged commit 0257d50 into zernonia:master Sep 21, 2022
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