-
Notifications
You must be signed in to change notification settings - Fork 62
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: accept Web API Request object in enableAutoPreviewsFromReq()
#240
Conversation
…`enableAutoPreviewsFromReq()`
Codecov Report
@@ Coverage Diff @@
## master #240 +/- ##
===========================================
- Coverage 100.00% 99.73% -0.27%
===========================================
Files 23 23
Lines 363 372 +9
Branches 67 74 +7
===========================================
+ Hits 363 371 +8
- Partials 0 1 +1
Continue to review full report at Codecov.
|
size-limit report 📦
|
Headers
object when using enableAutoPreviewsFromReq()
enableAutoPreviewsFromReq()
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.
LGTM, just a small one to make it stronger
Types of changes
Description
This PR adds support for Web API Request objects containing a Web API Headers instance. Frameworks like SvelteKit use this API rather than an Express-style request object which, unlike the Web API counterpart, contains plain-object-based data.
For more details, see #239.
Checklist:
🦮