-
Notifications
You must be signed in to change notification settings - Fork 14
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
Find a replacement for download
package
#12
Comments
Can I refactor the code to use axios to download the APK? If yes, please assign this issue to me. |
@wes-q You could use axios but we'd need the features provided by the It seems from kevva/download#220 that someone has created a fork of the Although it seems that they've migrated the fork to ESM, so you'd have to see how we can use that ESM package in this project. |
@garg3133 |
@wes-q Can you share more about the solution you're talking about? The thing with
So, a replacement to this should also be solid. To answer your second question, yes, it is being used at a single place in the repository, but the function containing |
@garg3133 Apologies, because I didn't realize download was also responsible for decompressing zip. I thought it was enough if download was finished and progress was shown. Noob mistake, by the way this is my first time contributing. So scrap that. I got back to the thread you shared and followed it and learned a lot about the open source process. In the end, I found 3 solutions which other people used to replace download.
I believe the third one was the fork that you mentioned. If we are going to use that, we simply need to replace the import statement with the new one
However when I tried that, typescript was looking for a declaration file for that module. I tried this command but it didn't work: I tried adding a d.ts file (xhmikosr__downloader.d.ts) inside src folder, and it worked but let me know if that is an acceptable solution. |
@wes-q Sorry for not getting back to you earlier. Yes, creating a new declaration file is acceptable. There's a PR for adding the types to the package itself here but I'm not sure if the types are complete or not. Anyway, if you are doing this, make sure that the tool works after changing the import because I feel that just changing the import statement won't be enough here (since the |
@garg3133 , I found a package :https://www.npmjs.com/package/@guoyunhe/downloader And I checked for node-downloader-helper. It can show progress and all but I guess extraction thing is not present in that. |
The
download
package is no longer supported and there are a lot of vulnerabilities in it now. So, we need to find a replacement for the download package and replace it.The text was updated successfully, but these errors were encountered: