Skip to content
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 download util #84

Merged
merged 1 commit into from
May 19, 2021
Merged

Add download util #84

merged 1 commit into from
May 19, 2021

Conversation

pgrzesik
Copy link
Contributor

Based on https://github.com/kevva/download and brought in due to outdated got dependency in original library which didn't property handle timeouts for streams, causing interactive CLI flow to hang for the duration of the timeout.

I've tried to change as little code as possible in the original module (hence I left a lot of promise-based code without refatoring to async) - tests had to be adjusted more due to the use of different testing framework in the original module.

@pgrzesik pgrzesik added the enhancement New feature or request label May 19, 2021
@pgrzesik pgrzesik self-assigned this May 19, 2021
@codecov
Copy link

codecov bot commented May 19, 2021

Codecov Report

Merging #84 (016deb0) into master (494006a) will decrease coverage by 1.52%.
The diff coverage is 83.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
- Coverage   91.59%   90.07%   -1.53%     
==========================================
  Files           9       10       +1     
  Lines         226      282      +56     
==========================================
+ Hits          207      254      +47     
- Misses         19       28       +9     
Impacted Files Coverage Δ
download.js 83.92% <83.92%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 494006a...016deb0. Read the comment docs.

@pgrzesik pgrzesik requested a review from medikoo May 19, 2021 10:05
@@ -0,0 +1,3 @@
## Download

Functionality adapted from currently unmaintained `download` package: https://github.com/kevva/download
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll be good to clarify why we did that, and explain how issue was fixed (was upgrade of got good enough`?)

Is issue we're introducing workaround for reported at download repository? If it is, it'll be good to link it, otherwise it'll be good to create report over there and link it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great call, I'll add all explanations and changeset to the documentation. There's an issue on the download repo side, where I posted a comment with our specific case: kevva/download#208

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

@pgrzesik pgrzesik merged commit 888a583 into master May 19, 2021
@pgrzesik pgrzesik deleted the add-download-util branch May 19, 2021 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants