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.3.0 to 1.3.1

2

lib/routes.js

@@ -176,2 +176,3 @@ var h = require('./h.js')

})
delete v.refs
} else if (type === 'relation') {

@@ -181,2 +182,3 @@ ;(v.members || []).forEach(function (member) {

})
delete v.members
}

@@ -183,0 +185,0 @@ return h(type, xtend(v, {

2

package.json
{
"name": "osm-p2p-server",
"version": "1.3.0",
"version": "1.3.1",
"description": "serve osm http endpoints over a p2p db",

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

@@ -100,3 +100,7 @@ var test = require('tape')

t.equal(xml.root.children[0].name, 'create')
t.deepEqual(xml.root.children[0].children.sort(cmpch), [
xml.root.children[0].children.sort(cmpch)
xml.root.children[0].children.forEach(function (c) {
c.children.sort(cmpref)
})
t.deepEqual(xml.root.children[0].children, [
{

@@ -127,3 +131,3 @@ name: 'node',

{
type: 'way',
name: 'way',
attributes: {

@@ -134,2 +138,3 @@ changeset: changeId,

},
content: '',
children: [

@@ -139,4 +144,3 @@ {

attributes: { ref: ids['-2'] },
children: [],
content: ''
children: []
},

@@ -146,6 +150,5 @@ {

attributes: { ref: ids['-1'] },
children: [],
content: ''
children: []
}
]
].sort(cmpref)
}

@@ -224,1 +227,5 @@ ].sort(cmpch))

}
function cmpref (a, b) {
return a.attributes.ref < b.attributes.ref ? -1 : 1
}
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