osm-p2p-server
Advanced tools
Comparing version 1.1.0 to 1.2.0
10
index.js
@@ -95,2 +95,12 @@ var routes = require('routes') | ||
}) | ||
params.changes.deleted.forEach(function (ch) { | ||
var id = ch.id.replace(/^[nw]/, '') | ||
pending++ | ||
var opts = { links: ch.version ? [ch.version] : [] } | ||
self.osmdb.del(id, opts, function (err) { | ||
if (err) errors.push(err) | ||
else keys.push(id) | ||
if (--pending === 0) done() | ||
}) | ||
}) | ||
if (--pending === 0) done() | ||
@@ -97,0 +107,0 @@ }) |
{ | ||
"name": "osm-p2p-server", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "serve osm http endpoints over a p2p db", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
9411
189