@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 CHANGED
@@ -1285,7 +1285,7 @@ class NoRouteFoundError extends Error {
1285
1285
  const _OsmGraphUtils = class _OsmGraphUtils {
1286
1286
  static parseNodeProperties(osmNode) {
1287
1287
  return {
1288
- ...osmNode.name !== null && { name: osmNode.name },
1288
+ ...osmNode.name && { name: osmNode.name },
1289
1289
  ...osmNode.isGate && { isGate: osmNode.isGate },
1290
1290
  ...osmNode.isSubwayEntrance && { isSubwayEntrance: osmNode.isSubwayEntrance },
1291
1291
  ...osmNode.subwayEntranceRef && { subwayEntrsanceRef: osmNode.subwayEntranceRef }
@@ -1293,7 +1293,7 @@ const _OsmGraphUtils = class _OsmGraphUtils {
1293
1293
  }
1294
1294
  static parseWayProperties(osmWay) {
1295
1295
  return {
1296
- ...osmWay.name !== null && { name: osmWay.name },
1296
+ ...osmWay.name && { name: osmWay.name },
1297
1297
  ...osmWay.isOneway && { isOneway: osmWay.isOneway },
1298
1298
  ...osmWay.areStairs && { areStairs: osmWay.areStairs },
1299
1299
  ...osmWay.isElevator && { isElevator: osmWay.isElevator },