Comparing version 5.8.3 to 5.9.0
@@ -0,1 +1,5 @@ | ||
## 5.9.0 | ||
* Added the ability for headers to pass information to tilelive to continue pyramid tiling if the tree below contains data. | ||
## 5.8.3 | ||
@@ -2,0 +6,0 @@ |
@@ -133,3 +133,4 @@ var sm = new (require('sphericalmercator'))(); | ||
} | ||
function done(err, buffer) { | ||
function done(err, buffer, headers) { | ||
headers = headers || {}; | ||
stream.pending--; | ||
@@ -145,6 +146,6 @@ if (err && !(/does not exist$/).test(err.message)) { | ||
var sum = 0; | ||
if (z >= stream.firstz) { | ||
if ((z < stream.firstz) || headers['x-tilelive-contains-data']) { | ||
addChildren(tile, stream.bboxes, stream.queue); | ||
} else { | ||
sum = sumChildren(tile, stream.bboxes); | ||
} else { | ||
addChildren(tile, stream.bboxes, stream.queue); | ||
} | ||
@@ -151,0 +152,0 @@ stream.stats.skipped += 1 + sum; |
{ | ||
"name": "tilelive", | ||
"version": "5.8.3", | ||
"version": "5.9.0", | ||
"main": "./lib/tilelive.js", | ||
@@ -31,3 +31,4 @@ "description": "API for various map tile backends", | ||
"Young Hahn <yhahn>", | ||
"Konstantin Käfer <kkaefer>" | ||
"Konstantin Käfer <kkaefer>", | ||
"Blake Thompson <flippmoke>" | ||
], | ||
@@ -34,0 +35,0 @@ "dependencies": { |
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
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
66422
1156
1