Skip to content

Conversation

@carlonluca
Copy link

Quick fix to avoid crashing when filename is not specified.

@christiansalazar
Copy link
Contributor

christiansalazar commented May 2, 2020 via email

@Satwa
Copy link

Satwa commented May 7, 2020

What you can do then is adding contributors to the repo so that other people can maintain this library for you. PRs from years ago are still waiting to be merged and it doesn't make sense you don't delegate the maintenance if you don't have time.

@christiansalazar
Copy link
Contributor

christiansalazar commented May 7, 2020 via email

@Satwa
Copy link

Satwa commented May 7, 2020

Of course, I can give few hours per month to look at issues and PRs on this package

@christiansalazar
Copy link
Contributor

christiansalazar commented May 7, 2020 via email

@Satwa
Copy link

Satwa commented May 7, 2020

but if the test data test passes, this shouldn't break anything?
as you prefer, you could maybe at least make a fork of your own project that would be for other developers and keep this for you client

@christiansalazar
Copy link
Contributor

christiansalazar commented May 7, 2020 via email

@Satwa
Copy link

Satwa commented May 7, 2020

that's the game of open-source, they'll either make a PR or open an issue
if you don't plan on updating the dependency, you should make it clear on repo description and readme imo but don't give hope to others waiting for you to merge

@christiansalazar
Copy link
Contributor

christiansalazar commented May 7, 2020 via email

@carlonluca
Copy link
Author

I don't think anyone should ever base his own business on master in any case. That is the reason why tags exist. If you have a version you trust, I'd tag it.
In any case please don't trust this pull request too much. I only used it in my specific use case. I would not integrate before someone else confirms this is ok.

@christiansalazar
Copy link
Contributor

christiansalazar commented May 8, 2020 via email

@eugenelim
Copy link

@christiansalazar If @Satwa were to just clone the repo on his own time, would you mind updating your Readme.md to link to @Satwa new repo?

@Satwa would you be ok to be primary maintainer for the new repo if @christiansalazar is ok?

@vbackeberg
Copy link

I can confirm this issue. I was about to use your modification which looks reasonable but I decided to use a workaround:

Always provide the missing filename by sending your payload as a blob.

MDN even has an example for a JSON:
https://developer.mozilla.org/en-US/docs/Web/API/Blob#creating_a_blob

Maybe this is helpful to other people running into this issue but not wanting to change the library.

Anyway, big thanks to @christiansalazar for providing this library in the first place and that discussion here also helped me. 👍

@christiansalazar
Copy link
Contributor

thank you :)
im sorry about not performing changes on this repo, i have no time to deal with necesary details to ensure stability after chaning its code. so, please read the open issues and commentaries to find the right solution for your case.
:)

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.

5 participants