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

tilelive

Package Overview
Dependencies
Maintainers
22
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 5.6.3 to 5.7.0

41

lib/tilelive.js

@@ -345,5 +345,12 @@ var tilelive = exports;

if (err) return callback(err);
copy(src, dst, options, callback);
copy(src, dst, options, function(err) {
if (err) return callback(err);
if (options.close) closingTime(src, dst, function(err) {
if (err) throw err;
callback();
});
else callback();
});
});
function copy(src, dst, opts, callback) {

@@ -381,3 +388,3 @@ // copy to outStream, if present. This is done after the src is loaded

var put = options.outStream;
var hasErrored = false;

@@ -391,5 +398,8 @@ function handleError(err) {

put.on('error', handleError);
put.on('finish', callback);
get.on('length', prog.setLength);
if (options.progress) prog.on('progress', function(p) { options.progress(get.stats, p); });
if (options.outStream === process.stdout ||
options.outStream === process.stderr) prog.on('end', callback);
else put.on('finish', callback);

@@ -403,2 +413,25 @@ if (options.type === 'list') {

}
function closingTime(src, dst, callback) {
var q = queue();
if (typeof src.close === "function") q.defer(function(next) {
src.close(function(err) {
if (err) return callback(err);
next();
});
});
if (typeof dst.close === "function") q.defer(function(next) {
dst.close(function(err) {
if (err) return callback(err);
next();
});
});
q.await(function(err) {
if (err) return callback(err);
callback();
});
}
};

@@ -405,0 +438,0 @@

2

package.json
{
"name": "tilelive",
"version": "5.6.3",
"version": "5.7.0",
"main": "./lib/tilelive.js",

@@ -5,0 +5,0 @@ "description": "API for various map tile backends",

Sorry, the diff of this file is not supported yet

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