-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
add data uri support #311
add data uri support #311
Conversation
Codecov Report
@@ Coverage Diff @@
## master #311 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 6 6
Lines 422 428 +6
Branches 133 134 +1
=====================================
+ Hits 422 428 +6
Continue to review full report at Codecov.
|
d6d5d00
to
1fb8470
Compare
Besides that, you have to construct a Response object, and return a promise from You also have to pass the Handling non- |
Oh, and you need to be careful to wrap all the errors that may occur in the URL-to-data process in a promise instead of throwing synchronously in |
Ok, great, thanks, will do, I'll try to behave like spec/browser |
866c86f
to
df64d7e
Compare
21de65a
to
d97aaa1
Compare
it's not very beautiful, but is it ok now? |
I'd like to put this on hold because of whatwg/fetch#579. |
Looks like the standard change has landed. @caub, can you update this module to use https://www.npmjs.com/package/data-urls instead? |
7cf057e
to
c7aeae3
Compare
@TimothyGu yup, done |
Is |
@bitinn done, indeed |
it fails on node4 because might add rollup there so |
Just proposing this, to behave like browsers fetch which can accept a data uri
not finished, but I don't have precise ideas on how to do