@heycar/heycars-map 0.9.24-alpha1 → 0.9.24-alpha2

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.cjs CHANGED
@@ -19,7 +19,7 @@ if (typeof GeolocationPositionError === "undefined") {
19
19
  };
20
20
  }
21
21
  const name = "@heycar/heycars-map";
22
- const version = "0.9.24-alpha1";
22
+ const version = "0.9.24-alpha2";
23
23
  const type = "module";
24
24
  const bin = {
25
25
  checkVersion: "./bin/checkVersion.js"
@@ -7481,6 +7481,7 @@ const useMapRecomendPlace = (props) => {
7481
7481
  });
7482
7482
  };
7483
7483
  const updateRecommendPlaceOnlyInZone = async (place) => {
7484
+ var _a;
7484
7485
  updateIntermediateQueryingState(place2point(place));
7485
7486
  const {
7486
7487
  place: foundPlace,
@@ -7489,7 +7490,7 @@ const useMapRecomendPlace = (props) => {
7489
7490
  force,
7490
7491
  zone
7491
7492
  } = await findAttachedPlace(place);
7492
- const resultPlace = zone || isPlaceEqual(foundPlace, place) ? foundPlace : place;
7493
+ const resultPlace = zone ? foundPlace : (_a = candidates.find((p) => isPlaceEqual(p, place))) != null ? _a : place;
7493
7494
  const isSameZone = !!zone && isZoneEqual(zone, zoneRef.value);
7494
7495
  isQueryingRef.value = false;
7495
7496
  availableRef.value = available;
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ if (typeof GeolocationPositionError === "undefined") {
17
17
  };
18
18
  }
19
19
  const name = "@heycar/heycars-map";
20
- const version = "0.9.24-alpha1";
20
+ const version = "0.9.24-alpha2";
21
21
  const type = "module";
22
22
  const bin = {
23
23
  checkVersion: "./bin/checkVersion.js"
@@ -7479,6 +7479,7 @@ const useMapRecomendPlace = (props) => {
7479
7479
  });
7480
7480
  };
7481
7481
  const updateRecommendPlaceOnlyInZone = async (place) => {
7482
+ var _a;
7482
7483
  updateIntermediateQueryingState(place2point(place));
7483
7484
  const {
7484
7485
  place: foundPlace,
@@ -7487,7 +7488,7 @@ const useMapRecomendPlace = (props) => {
7487
7488
  force,
7488
7489
  zone
7489
7490
  } = await findAttachedPlace(place);
7490
- const resultPlace = zone || isPlaceEqual(foundPlace, place) ? foundPlace : place;
7491
+ const resultPlace = zone ? foundPlace : (_a = candidates.find((p) => isPlaceEqual(p, place))) != null ? _a : place;
7491
7492
  const isSameZone = !!zone && isZoneEqual(zone, zoneRef.value);
7492
7493
  isQueryingRef.value = false;
7493
7494
  availableRef.value = available;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.9.24-alpha1",
3
+ "version": "0.9.24-alpha2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js"