@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.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 !== null && { name: 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 !== null && { name: 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 },