Skip to content

Releases: hgouveia/node-downloader-helper

v2.0.1

09 Feb 14:56
Compare
Choose a tag to compare

Major Update

  • Upgraded package to node 14.x

Fixes

  • Fixed 'incomplete' attribute set as true if 'content-length' is not present #60
  • PR #70 by @thura10 that closed #69 progressThrottle attribute missing from definition file
  • Added request body support #74
  • PR #76 by @Chaphasilor that closes #75, fix content disposition parsing

v1.0.19

04 Oct 09:28
Compare
Choose a tag to compare
  • #40 when timeouts will abort the request instead of freezing for forever
  • PR #51 fileName {ext} type now also optional and boolean by @SrBrahma
  • #57 Fixed error emitting when retry
  • PR #59 Fixed leading dots beign removed @Chaphasilor
  • #61 Crashing instead of catching errors.
  • #62 dl.pause() and dl.stop() not working properly on Node 16

v1.0.18

09 Apr 14:17
Compare
Choose a tag to compare
  • PR #41, fix for issue #27. trailing dots in filenames by @Chaphasilor
  • PR #43: Stronger Typescript Typings by @nathanbarrett
  • Fixed: should close the file when paused #44
  • Fixed: promised been resolved when pause #45
  • Added custom 'progress.throttled' event interval #50

Fixed github action to avoid npm publish without build

26 Jan 17:34
Compare
Choose a tag to compare

v1.0.17 is exactly the same as v1.0,16, but due some misconfiguration on github actions, the package was published incomplete, v1.0.17 attempt to fix this

v1.0.16

26 Jan 17:03
Compare
Choose a tag to compare
  • Fixed CLI mode doesn't work #39
  • PR by @geopic Adding types declaration file (#38)

Security fix for prevent path traversal

12 Oct 10:28
Compare
Choose a tag to compare

PR; Fix: Prevent path traversal (#35) by @Ry0taK

v1.0.14

19 Sep 10:26
Compare
Choose a tag to compare
  • Added PR #33 , Fixed downloader not working when the URL has redirection without absolute path

v1.0.13

25 May 11:29
Compare
Choose a tag to compare
  • Fixed: state is not changed to FAILED when got a failed http status
  • Fixed: 'end' event is emitted when failed
  • Added getTotalSize to get size from server
  • Added progress.throttled that will be emitted every one second
  • PR: skip functionality #26
  • PR: enhanced folder validations #29

v1.0.12

04 Feb 08:57
Compare
Choose a tag to compare
  • Added a simple CLI option
  • Added getStats method, to request it outside progress event
  • Fixed start promise not resolving when pause/stop
  • Fixed pipe function and supporting resume
  • Added download info at the 'download' event
  • Added response status and body attributes to the error object

v1.0.11: Added additional params to fileName opts #10 #12

04 Sep 15:03
Compare
Choose a tag to compare
  • Added pipes support
  • Added retry option ( #4 )
  • Added return filename on end event , and new event called 'renamed' (#10)
  • Added additional params to fileName opts , you can pass a function callback or an object making possible to change the filename with a custom function by the user or proving an object to only change the name and keep the extension (#10 #12)
  • Improve progress event to emit for every downloaded chunk instead of every second (PR #9)