Comparing version 4.2.0 to 4.2.1
@@ -15,3 +15,6 @@ var fs = require('fs'); | ||
// TODO: don't read everything at once. | ||
this.list = Scheme.unserializeTiles(fs.readFileSync(options.list, 'utf8').split('\n').filter(function(line) { return line.trim().length; })); | ||
this.list = unserialize(fs.readFileSync(options.list, 'utf8') | ||
.split('\n') | ||
.filter(function(line) { return line.trim().length; }) | ||
.map(function(line) { return JSON.parse(line); })); | ||
@@ -18,0 +21,0 @@ this.stats = new Statistics(); |
@@ -84,3 +84,3 @@ var sm = new (require('sphericalmercator')); | ||
// Align resulting pos to a metatile boundary. | ||
if (pos.x >= this.bounds[pos.z].minX) { | ||
if (this.bounds[pos.z] && pos.x >= this.bounds[pos.z].minX) { | ||
pos.x = pos.x - (pos.x % this.metatile) - this.metatile; | ||
@@ -87,0 +87,0 @@ pos.y = pos.y - (pos.y % this.metatile); |
{ | ||
"name" : "tilelive", | ||
"version" : "4.2.0", | ||
"version" : "4.2.1", | ||
"main" : "./lib/tilelive.js", | ||
@@ -5,0 +5,0 @@ "description" : "Frontend for various tile backends, mapnik and mbtiles", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
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
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
2234384
33
1888