osm-p2p-server
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -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, { |
{ | ||
"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 | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31733
939
8