lmammino / tall

Promise-based, No-dependency URL unshortner (expander) module for Node.js
https://lmammino.github.io/tall/
MIT License
72 stars 7 forks source link

Add a configurable timeout to the requests #37

Closed GusRuss89 closed 3 years ago

GusRuss89 commented 3 years ago

As of node.js 13, requests have no default timeout. This PR adds a default timeout of 2 minutes, and makes it configurable as an option.

codecov[bot] commented 3 years ago

Codecov Report

Merging #37 (fedcc2f) into master (a3ba337) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #37   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           57        61    +4     
  Branches         9        10    +1     
=========================================
+ Hits            57        61    +4     
Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)

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 a3ba337...fedcc2f. Read the comment docs.