Comparing version 5.12.1 to 5.12.2
@@ -0,1 +1,6 @@ | ||
## 5.12.2 | ||
* Allow transform-like streams to be used in the `transform` property | ||
* Catch errors in transform stream | ||
## 5.12.1 | ||
@@ -2,0 +7,0 @@ |
@@ -319,3 +319,3 @@ var tilelive = exports; | ||
// if (options.transform && (!options.transform._write || !options.transform._read)) { | ||
if (options.transform && !(options.transform instanceof stream.Transform)) { | ||
if (options.transform && (!options.transform.readable || !options.transform.writable)) { | ||
return callback(new Error('You must provide a valid transform stream')); | ||
@@ -419,3 +419,6 @@ } | ||
var pipeline = opts.type === 'list' ? opts.listStream.pipe(get) : get; | ||
if (options.transform) pipeline = pipeline.pipe(options.transform); | ||
if (options.transform) { | ||
pipeline = pipeline.pipe(options.transform); | ||
pipeline.on('error', done); | ||
} | ||
if (sinkStream) pipeline = pipeline.pipe(tilelive.serialize()); | ||
@@ -422,0 +425,0 @@ pipeline.pipe(prog).pipe(put); |
{ | ||
"name": "tilelive", | ||
"version": "5.12.1", | ||
"version": "5.12.2", | ||
"main": "./lib/tilelive.js", | ||
@@ -45,3 +45,4 @@ "description": "API for various map tile backends", | ||
"istanbul": "~0.3.0", | ||
"mbtiles": "~0.7.7", | ||
"mbtiles": "~0.8.2", | ||
"stream-combiner": "^0.2.2", | ||
"tape": "2.13.3", | ||
@@ -54,3 +55,3 @@ "tilejson": "~1.0.0" | ||
"engines": { | ||
"node": ">= 0.10.0 < 0.11.0" | ||
"node": ">= 0.10.0 < 5" | ||
}, | ||
@@ -57,0 +58,0 @@ "scripts": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
69027
1195
0
8