@heycar/heycars-map 2.19.0-drivingRouteFail2 → 2.19.0-drivingRouteFail3
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/v2/utils/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
2
2
|
const pkgName = "@heycar/heycars-map";
|
|
3
|
-
const pkgVersion = "2.19.0-
|
|
3
|
+
const pkgVersion = "2.19.0-drivingRouteFail3";
|
|
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/dist/v3/utils/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
2
2
|
const pkgName = "@heycar/heycars-map";
|
|
3
|
-
const pkgVersion = "2.19.0-
|
|
3
|
+
const pkgVersion = "2.19.0-drivingRouteFail3";
|
|
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;
|