@wemap/routers 12.0.0-alpha.12 → 12.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/types.ts +0 -1
- package/src/wemap-osm/OsmGraphUtils.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1283,7 +1283,7 @@ class NoRouteFoundError extends Error {
|
|
|
1283
1283
|
const _OsmGraphUtils = class _OsmGraphUtils {
|
|
1284
1284
|
static parseNodeProperties(osmNode) {
|
|
1285
1285
|
return {
|
|
1286
|
-
...osmNode.name
|
|
1286
|
+
...osmNode.name && { name: osmNode.name },
|
|
1287
1287
|
...osmNode.isGate && { isGate: osmNode.isGate },
|
|
1288
1288
|
...osmNode.isSubwayEntrance && { isSubwayEntrance: osmNode.isSubwayEntrance },
|
|
1289
1289
|
...osmNode.subwayEntranceRef && { subwayEntrsanceRef: osmNode.subwayEntranceRef }
|
|
@@ -1291,7 +1291,7 @@ const _OsmGraphUtils = class _OsmGraphUtils {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
static parseWayProperties(osmWay) {
|
|
1293
1293
|
return {
|
|
1294
|
-
...osmWay.name
|
|
1294
|
+
...osmWay.name && { name: osmWay.name },
|
|
1295
1295
|
...osmWay.isOneway && { isOneway: osmWay.isOneway },
|
|
1296
1296
|
...osmWay.areStairs && { areStairs: osmWay.areStairs },
|
|
1297
1297
|
...osmWay.isElevator && { isElevator: osmWay.isElevator },
|