@heycar/heycars-map 2.21.0-gmapCost2 → 2.21.0-gmapCost3

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.
@@ -203,7 +203,7 @@ const useGmapPlace = (props) => {
203
203
  };
204
204
  console.log("==谷歌逆地理返回结果==", JSON.stringify(addressInfo));
205
205
  resolve(addressInfo);
206
- }).catch(handleFailed);
206
+ }).catch(handleFailed).finally(() => clearTimeout(timer));
207
207
  } else {
208
208
  const geocoder = new google.maps.Geocoder();
209
209
  geocoder.geocode({ language, location: { lng, lat } }).finally(() => clearTimeout(timer)).then(({ results }) => {
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.21.0-gmapCost2";
3
+ const pkgVersion = "2.21.0-gmapCost3";
4
4
  const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
5
5
  const enableSessionLogKey = (key) => {
6
6
  const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
@@ -203,7 +203,7 @@ const useGmapPlace = (props) => {
203
203
  };
204
204
  console.log("==谷歌逆地理返回结果==", JSON.stringify(addressInfo));
205
205
  resolve(addressInfo);
206
- }).catch(handleFailed);
206
+ }).catch(handleFailed).finally(() => clearTimeout(timer));
207
207
  } else {
208
208
  const geocoder = new google.maps.Geocoder();
209
209
  geocoder.geocode({ language, location: { lng, lat } }).finally(() => clearTimeout(timer)).then(({ results }) => {
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.21.0-gmapCost2";
3
+ const pkgVersion = "2.21.0-gmapCost3";
4
4
  const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
5
5
  const enableSessionLogKey = (key) => {
6
6
  const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "2.21.0-gmapCost2",
3
+ "version": "2.21.0-gmapCost3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js",