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

osm-p2p-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osm-p2p-api - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

14

api/get_map.js

@@ -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"

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