Comparing version 5.8.0 to 5.8.1
@@ -0,1 +1,5 @@ | ||
## 5.8.1 | ||
* Fixes a bug in `tilelive.copy()` that caused every copy operation to timeout after 60s (or the specified timeout interval). | ||
## 5.8.0 | ||
@@ -2,0 +6,0 @@ |
@@ -379,3 +379,4 @@ var tilelive = exports; | ||
var timeout = setInterval(function() { | ||
if (prog.progress.transferred === previous) { | ||
var current = prog.progress().transferred; | ||
if (current === previous) { | ||
done(new Error('Copy operation timed out')); | ||
@@ -386,3 +387,3 @@ pipeline.unpipe(prog); | ||
} | ||
previous = prog.progress.transferred; | ||
previous = current; | ||
}, opts.timeout || 60000); | ||
@@ -389,0 +390,0 @@ |
{ | ||
"name": "tilelive", | ||
"version": "5.8.0", | ||
"version": "5.8.1", | ||
"main": "./lib/tilelive.js", | ||
@@ -5,0 +5,0 @@ "description": "API for various map tile backends", |
Sorry, the diff of this file is not supported yet
64745
1143
36