Global

Type Definitions

# getDownloadDelay(retryCount) → {Number}

Function for calculating the how much delay to assign a given download
Parameters:
Name Type Description
retryCount Number The number of times the download has been retried

View Source index.js, line 27

The delay in seconds to wait before starting the download
Number
Example
const getDownloadDelay = (retryCount) => {
   return retryCount * 5;
}

# getManifest() → {Promise.<Array>}

Asynchronous function for retrieving the download manifest

View Source index.js, line 12

The list of files to download (i.e. the manifest)
Promise.<Array>
Example
const getManifest = async () => {
 return [
   {
     url: 'https://www.example.com/file1.zip',
     fileName: 'file1.zip',
     unzipTo: './file1'
   },
 }