@heycar/heycars-map 0.9.25-alpha1 → 0.9.25-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.
|
@@ -3,6 +3,7 @@ import { h } from "vue";
|
|
|
3
3
|
import { useMapLoader, Status } from "../../hooks/useMapLoader.js";
|
|
4
4
|
import { provideMapSupplier, useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
5
5
|
import { defineLagecySetup } from "../../types/helper.js";
|
|
6
|
+
import "../../utils/alipayPolyfill.js";
|
|
6
7
|
import { loadTraditionalChineseConvertOnce } from "../../utils/cn2tw.js";
|
|
7
8
|
import { detectWebGL, WEBGL_STATUS } from "../../utils/platform.js";
|
|
8
9
|
import { language2vectorMapForeign, vec2lnglat } from "../../utils/transform.js";
|
package/dist/index.js
CHANGED
|
@@ -34,8 +34,6 @@ import { useMapRecomendPlace } from "./hooks/useMapRecomendPlace.js";
|
|
|
34
34
|
import { useWalkingRoute } from "./hooks/useWalkingRoute.js";
|
|
35
35
|
import { CenterPlaceStatus } from "./types/interface.js";
|
|
36
36
|
import { MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT, MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT, patchMiniprogramRedirectTo } from "./utils/patchMiniprogram.js";
|
|
37
|
-
import { logVersion } from "./utils/log.js";
|
|
38
|
-
logVersion();
|
|
39
37
|
export {
|
|
40
38
|
AbsoluteAddressBox,
|
|
41
39
|
AddressBox,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function alipayPolyfill(): void;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
window.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
function alipayPolyfill() {
|
|
2
|
+
window.abcdefg = "abcdefg";
|
|
3
|
+
if (typeof window !== "undefined" && typeof globalThis === "undefined") {
|
|
4
|
+
window.globalThis = window;
|
|
5
|
+
}
|
|
6
|
+
if (typeof GeolocationPositionError === "undefined") {
|
|
7
|
+
window.GeolocationPositionError = {
|
|
8
|
+
PERMISSION_DENIED: 1,
|
|
9
|
+
POSITION_UNAVAILABLE: 2,
|
|
10
|
+
TIMEOUT: 3
|
|
11
|
+
};
|
|
12
|
+
}
|
|
10
13
|
}
|
|
14
|
+
alipayPolyfill();
|
|
15
|
+
export {
|
|
16
|
+
alipayPolyfill
|
|
17
|
+
};
|
package/dist/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 = "0.9.25-
|
|
3
|
+
const pkgVersion = "0.9.25-alpha2";
|
|
4
4
|
const isEnableLog = (name) => {
|
|
5
5
|
const searchParam = new URLSearchParams(location.search);
|
|
6
6
|
return searchParam.has(`log-${name}`);
|
|
@@ -16,6 +16,7 @@ const logVersion = () => {
|
|
|
16
16
|
console.log(`package name: ${pkgName} version: ${pkgVersion}`);
|
|
17
17
|
window.HeycarMapVersion = pkgVersion;
|
|
18
18
|
};
|
|
19
|
+
logVersion();
|
|
19
20
|
export {
|
|
20
21
|
logVersion,
|
|
21
22
|
spaceLog
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heycar/heycars-map",
|
|
3
|
-
"version": "0.9.25-
|
|
3
|
+
"version": "0.9.25-alpha2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"checkVersion": "./bin/checkVersion.js"
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": [
|
|
26
26
|
"**/*.css",
|
|
27
|
-
"**/*.css.ts"
|
|
27
|
+
"**/*.css.ts",
|
|
28
|
+
"dist/utils/alipayPolyfill.js"
|
|
28
29
|
],
|
|
29
30
|
"files": [
|
|
30
31
|
"dist"
|