Comparing version 2.2.0 to 2.2.1
@@ -5,2 +5,6 @@ # Change Log | ||
## [2.2.1] - 2017-09-11 | ||
### Fixed | ||
- Support empty tags in changesets [#4](https://github.com/digidem/osm2json/pull/4) | ||
## [2.2.0] - 2017-09-08 | ||
@@ -37,2 +41,3 @@ ### Added | ||
[2.2.1]: https://github.com/digidem/osm2json/compare/v2.2.0...v2.2.1 | ||
[2.2.0]: https://github.com/digidem/osm2json/compare/v2.1.0...v2.2.0 | ||
@@ -39,0 +44,0 @@ [2.1.0]: https://github.com/digidem/osm2json/compare/v2.0.0...v2.1.0 |
@@ -176,3 +176,3 @@ /** | ||
case 'tag': | ||
if (!attr.k || !attr.v) { | ||
if (!attr.k || attr.v == null) { | ||
return this.onError(new Error('<tag> missing k or v attribute')) | ||
@@ -179,0 +179,0 @@ } |
{ | ||
"name": "osm2json", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Converts an OSM XML file to OSM JSON objects as a transform stream", | ||
@@ -5,0 +5,0 @@ "main": "lib/osm2json.js", |
@@ -147,3 +147,4 @@ [ { | ||
"tags": { | ||
"test": "relation" | ||
"test": "relation", | ||
"empty": "" | ||
}, | ||
@@ -150,0 +151,0 @@ "timestamp": "2013-09-05T19:38:11Z", |
@@ -147,3 +147,4 @@ [ { | ||
"tags": { | ||
"test": "relation" | ||
"test": "relation", | ||
"empty": "" | ||
}, | ||
@@ -150,0 +151,0 @@ "timestamp": "2013-09-05T19:38:11Z", |
Sorry, the diff of this file is not supported yet
33227
808