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

osm-p2p-server

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osm-p2p-server - npm Package Compare versions

Comparing version 1.10.9 to 1.10.10

test/bbox.js

11

lib/check_ref_ex.js

@@ -12,6 +12,6 @@ // work-around for bug elsewhere where ways and relations

var nrefs = []
;(row.refs || []).forEach(function (ref) {
;(row.refs || []).forEach(function (ref, i) {
pending++
osm.get(ref, function (err, docs) {
if (Object.keys(docs).length > 0) nrefs.push(ref)
if (Object.keys(docs).length > 0) nrefs[i] = ref
//else console.log('SKIP', ref)

@@ -22,6 +22,6 @@ if (--pending === 0) done()

var nmembers = []
;(row.members || []).forEach(function (m) {
;(row.members || []).forEach(function (m, i) {
pending++
osm.get(m.ref, function (err, doc) {
if (Object.keys(doc).length > 0) nmembers.push(m)
if (Object.keys(doc).length > 0) nmembers[i] = m
//else console.log('SKIP', m.ref)

@@ -34,3 +34,4 @@ if (--pending === 0) done()

function done () {
if (row.refs) row.refs = nrefs
if (row.refs) row.refs = nrefs.filter(Boolean)
if (row.members) row.members = nmembers.filter(Boolean)
next(null, row)

@@ -37,0 +38,0 @@ }

{
"name": "osm-p2p-server",
"version": "1.10.9",
"version": "1.10.10",
"description": "serve osm http endpoints over a p2p db",

@@ -5,0 +5,0 @@ "main": "index.js",

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