@heycar/heycars-map 2.18.0-apiLocalization2 → 2.18.0-apiLocalization3

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.
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.18.0-apiLocalization2";
3
+ const pkgVersion = "2.18.0-apiLocalization3";
4
4
  const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
5
5
  const enableSessionLogKey = (key) => {
6
6
  const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
@@ -166,7 +166,7 @@ function amapPlaceName2DisplayNameOutChinese(name, options) {
166
166
  }
167
167
  const idxs = [];
168
168
  for (const token of [adcode, province, city, district, township]) {
169
- if (!token)
169
+ if (!token || !token.length)
170
170
  continue;
171
171
  if (idxs.length === 2)
172
172
  break;
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.18.0-apiLocalization2";
3
+ const pkgVersion = "2.18.0-apiLocalization3";
4
4
  const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
5
5
  const enableSessionLogKey = (key) => {
6
6
  const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
@@ -166,7 +166,7 @@ function amapPlaceName2DisplayNameOutChinese(name, options) {
166
166
  }
167
167
  const idxs = [];
168
168
  for (const token of [adcode, province, city, district, township]) {
169
- if (!token)
169
+ if (!token || !token.length)
170
170
  continue;
171
171
  if (idxs.length === 2)
172
172
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "2.18.0-apiLocalization2",
3
+ "version": "2.18.0-apiLocalization3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js",