Comparing version 4.2.1 to 4.2.2
@@ -28,3 +28,3 @@ var tilelive = require('..'); | ||
// State persistence | ||
console.warn('Persisting state in ' + this.job + ' every minute and on SIGINT'); | ||
console.warn('Persisting state in ' + this.job + ' every minute'); | ||
@@ -41,8 +41,10 @@ process.on('uncaughtException', function(err) { | ||
process.on('SIGINT', function() { | ||
task.pause(function(err) { | ||
if (err) throw err; | ||
console.warn('\nWrote state to ' + task.job); | ||
if ((process.platform !== 'win32')) { | ||
process.on('SIGINT', function() { | ||
task.pause(function(err) { | ||
if (err) throw err; | ||
console.warn('\nWrote state to ' + task.job); | ||
}); | ||
}); | ||
}); | ||
} | ||
}; | ||
@@ -138,3 +140,7 @@ | ||
var color = data.solid.split(','); | ||
tile.key = -(color[0]*(1<<24) + ((color[1]<<16) | (color[2]<<8) | color[3])); | ||
if (color[3] === '0') { | ||
tile.key = 0; | ||
} else { | ||
tile.key = -(color[0]*(1<<24) + ((color[1]<<16) | (color[2]<<8) | color[3])); | ||
} | ||
data.key = tile.key; | ||
@@ -141,0 +147,0 @@ } |
{ | ||
"name" : "tilelive", | ||
"version" : "4.2.1", | ||
"version" : "4.2.2", | ||
"main" : "./lib/tilelive.js", | ||
@@ -32,3 +32,3 @@ "description" : "Frontend for various tile backends, mapnik and mbtiles", | ||
"sphericalmercator": "~1.0.1", | ||
"underscore": "~1.3.1" | ||
"underscore": "~1.3.3" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
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
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
1894
5
2233035
32
Updatedunderscore@~1.3.3