osm-p2p-api
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -29,8 +29,10 @@ var collect = require('collect-stream') | ||
var deletionFilter = through.obj(function (chunk, enc, next) { | ||
if (chunk.type === 'node') { | ||
nodesSeen[chunk.id] = true | ||
} else if (chunk.type === 'way') { | ||
chunk.refs = chunk.refs.filter(function (id) { | ||
return !!nodesSeen[id] | ||
}) | ||
if (!chunk.deleted) { | ||
if (chunk.type === 'node') { | ||
nodesSeen[chunk.id] = true | ||
} else if (chunk.type === 'way') { | ||
chunk.refs = chunk.refs.filter(function (id) { | ||
return !!nodesSeen[id] | ||
}) | ||
} | ||
} | ||
@@ -37,0 +39,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/osm-p2p-api.git" |
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
7524
154