Comparing version 5.0.0 to 5.0.1
@@ -26,7 +26,5 @@ var Stats = require('./stream-util').Stats; | ||
this.on('finish', function() { | ||
s.once('_writeEmpty', function() { | ||
if (!source.stopWriting) return stop(); | ||
source.stopWriting(stop); | ||
}); | ||
function stop(err) { | ||
return stream._multiwriting ? s.once('_writeEmpty', stop) : stop(); | ||
function stop() { return source.stopWriting ? source.stopWriting(done) : done(); } | ||
function done(err) { | ||
if (err) { | ||
@@ -40,7 +38,5 @@ s.emit('error', err); | ||
this.on('unpipe', function() { | ||
s.once('_writeEmpty', function() { | ||
if (source.stopWriting) source.stopWriting(function(err) { | ||
if (err) s.emit('error', err); | ||
}); | ||
}); | ||
return stream._multiwriting ? s.once('_writeEmpty', stop) : stop(); | ||
function stop() { return source.stopWriting ? source.stopWriting(done) : done(); } | ||
function done(err) { if (err) s.emit('error', err); } | ||
}); | ||
@@ -47,0 +43,0 @@ |
{ | ||
"name": "tilelive", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"main": "./lib/tilelive.js", | ||
@@ -5,0 +5,0 @@ "description": "API for various map tile backends", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43174
0
693