-
Notifications
You must be signed in to change notification settings - Fork 128
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: add options
field and improve formatting of errors
#270
feat: add options
field and improve formatting of errors
#270
Conversation
as fetch options extending request object, it will be more convenient to return options object in error instead of request, as request can be just string if not passed request object, which is not very useful
Codecov Report
@@ Coverage Diff @@
## main #270 +/- ##
==========================================
+ Coverage 92.20% 92.35% +0.14%
==========================================
Files 5 5
Lines 513 523 +10
Branches 94 97 +3
==========================================
+ Hits 473 483 +10
Misses 40 40
|
Request
is a String
return FetchOptions
in FetchError
request
field
Request
is a String
return FetchOptions
in FetchError
request
fieldoptions
filed of type FetchOptions
to FetchError
object
options
filed of type FetchOptions
to FetchError
objectoptions
field of type FetchOptions
to FetchError
object
4b8c15b
to
5ec2d80
Compare
Sorry for amount of commits, I was trying to make codecov working. |
462d25b
to
ab9fb9a
Compare
Thanks for recent changes! I might need little bit more time to properly review this on. Planning for next minor release ππΌ |
options
field of type FetchOptions
to FetchError
objectoptions
field and improve formatting of errors
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.
Thanks!
π Linked issue
Issue #265
β Type of change
π Description
As fetch options extending
RequestInit
object, it will be more convenient to returnFetchOptions
object inoptions
field ofFetchError
object.π Checklist