Comparing version 2.0.1 to 2.1.0
@@ -11,2 +11,3 @@ 'use strict' | ||
const parsedUrl = URL.parse(url) | ||
, resume = options.resume !== false | ||
@@ -23,3 +24,3 @@ return new Promise((res, rej) => { | ||
let start = (stat && stat.size) ? stat.size - 1 : 0 | ||
let start = (resume && stat && stat.size) ? stat.size - 1 : 0 | ||
@@ -26,0 +27,0 @@ const req = (parsedUrl.protocol === 'https:' ? https : http).request(Object.assign( |
{ | ||
"name": "downit", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Resumeable downloader", | ||
@@ -20,3 +20,6 @@ "main": "index.js", | ||
"downit": "bin/downit" | ||
} | ||
}, | ||
"files": [ | ||
"index.js" | ||
] | ||
} |
4812
70