Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tilelive

Package Overview
Dependencies
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tilelive - npm Package Compare versions

Comparing version 4.4.0 to 4.4.1

test/file.test.js

17

lib/filescheme.js

@@ -15,6 +15,17 @@ var fs = require('fs');

// TODO: don't read everything at once.
this.list = unserialize(fs.readFileSync(options.list, 'utf8')
this.list = [];
var filelist = fs.readFileSync(options.list, 'utf8')
.split('\n')
.filter(function(line) { return line.trim().length; })
.map(function(line) { return JSON.parse(line); }));
.filter(function(line) { return line.trim().length; });
if (/[\d]+\/[\d]+\/[\d]+/.test(filelist[0])) {
for (var i = 0; i < filelist.length; i++) {
var coords = filelist[i].split('/');
this.list.push(new Tile(+coords[0], +coords[1], +coords[2]));
}
} else {
for (var i = 0; i < filelist.length; i++) {
var state = JSON.parse(filelist[i]);
this.list.push(new Tile(state.z, state.x, state.y, state.key));
}
}

@@ -21,0 +32,0 @@ this.stats = new Statistics();

2

package.json
{
"name" : "tilelive",
"version" : "4.4.0",
"version" : "4.4.1",
"main" : "./lib/tilelive.js",

@@ -5,0 +5,0 @@ "description" : "Frontend for various tile backends, mapnik and mbtiles",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc