cartoon-catch
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -29,3 +29,3 @@ "use strict"; | ||
const total = images.length; | ||
bar = new progress_1.default(`${title}(:current/:total): [:bar] [:percent]`, { total: +total, width: 50 }); | ||
bar = new progress_1.default(`${title}(:current/:total): [:bar] [:percent]`, { total: +total, width: 50, clear: true }); | ||
let queue = parallel < total ? parallel : total; | ||
@@ -32,0 +32,0 @@ let finish = null; |
@@ -64,3 +64,3 @@ "use strict"; | ||
error('请求超时', url, e); | ||
urls.push(item); | ||
urls.unshift(item); | ||
return null; | ||
@@ -67,0 +67,0 @@ }); |
{ | ||
"name": "cartoon-catch", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "cartoon-catch", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -17,3 +17,3 @@ import Progress from 'progress' | ||
const total = images.length; | ||
bar = new Progress(`${title}(:current/:total): [:bar] [:percent]`, { total: +total, width: 50 }); | ||
bar = new Progress(`${title}(:current/:total): [:bar] [:percent]`, { total: +total, width: 50, clear: true }); | ||
let queue = parallel < total ? parallel : total; | ||
@@ -20,0 +20,0 @@ let finish = null; |
@@ -64,3 +64,3 @@ | ||
error('请求超时', url, e) | ||
urls.push(item) | ||
urls.unshift(item) | ||
return null | ||
@@ -67,0 +67,0 @@ }); |
24441