Comparing version 5.10.0 to 5.11.0
@@ -0,1 +1,5 @@ | ||
## 5.11.0 | ||
* Attempt to generate a default list stream from source in `tilelive.copy()` if no explicit list is provided | ||
## 5.10.0 | ||
@@ -2,0 +6,0 @@ |
@@ -310,6 +310,2 @@ var tilelive = exports; | ||
if (options.type === 'list' && !options.listStream) { | ||
return callback(new Error('You must provide a listStream')); | ||
} | ||
if (!dst && !options.outStream) { | ||
@@ -368,2 +364,9 @@ return callback(new Error('You must provide either a dsturi or an output stream')); | ||
function copy(src, dst, opts, callback) { | ||
if (opts.type === 'list') { | ||
opts.listStream = opts.listStream || (src.createZXYStream ? src.createZXYStream() : null); | ||
if (!opts.listStream) { | ||
return callback(new Error('You must provide a listStream')); | ||
} | ||
} | ||
// sinkStream represents a copy to a non-tilelive stream | ||
@@ -370,0 +373,0 @@ var sinkStream = !dst && opts.outStream; |
{ | ||
"name": "tilelive", | ||
"version": "5.10.0", | ||
"version": "5.11.0", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68164
1188