@heycar/heycars-map 0.9.21-alpha4 → 0.9.21-alpha5
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 +5 -4
- package/dist/index.js +5 -4
- package/package.json +1 -1
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.21-
|
|
22
|
+
const version = "0.9.21-alpha5";
|
|
23
23
|
const type = "module";
|
|
24
24
|
const bin = {
|
|
25
25
|
checkVersion: "./bin/checkVersion.js"
|
|
@@ -4784,7 +4784,6 @@ function compatibleWathPosition(onSuccess, onError, option) {
|
|
|
4784
4784
|
}
|
|
4785
4785
|
const browserPlatform = detectBrowserPlatform();
|
|
4786
4786
|
const osPlatform = detectOSPlatform();
|
|
4787
|
-
console.log("osPlatform, browserPlatform = ", osPlatform, browserPlatform);
|
|
4788
4787
|
if (browserPlatform === BRWOSER_PLATFORM.WECHAT || browserPlatform === BRWOSER_PLATFORM.WECHAT_MINIPROGRAM) {
|
|
4789
4788
|
return wechatWatchPosition(onSuccess, onError, option);
|
|
4790
4789
|
}
|
|
@@ -4800,8 +4799,10 @@ function compatibleGeoPositionTransform(position, transform2) {
|
|
|
4800
4799
|
const os = detectOSPlatform();
|
|
4801
4800
|
const platform = detectBrowserPlatform();
|
|
4802
4801
|
const wallet = detectAlipayWallet();
|
|
4803
|
-
|
|
4804
|
-
|
|
4802
|
+
console.log("os, browserPlatform, wallet = ", os, platform, wallet);
|
|
4803
|
+
if (wallet === ALIPAY_WALLET.TNGD || wallet === ALIPAY_WALLET.TMN) {
|
|
4804
|
+
return os === OS_PLATFORM.ANDROID ? transform2(position) : position;
|
|
4805
|
+
}
|
|
4805
4806
|
if (platform === BRWOSER_PLATFORM.ALIPAY || platform === BRWOSER_PLATFORM.ALIPAY_MINIPROGRAM)
|
|
4806
4807
|
return position;
|
|
4807
4808
|
return transform2(position);
|
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.21-
|
|
20
|
+
const version = "0.9.21-alpha5";
|
|
21
21
|
const type = "module";
|
|
22
22
|
const bin = {
|
|
23
23
|
checkVersion: "./bin/checkVersion.js"
|
|
@@ -4782,7 +4782,6 @@ function compatibleWathPosition(onSuccess, onError, option) {
|
|
|
4782
4782
|
}
|
|
4783
4783
|
const browserPlatform = detectBrowserPlatform();
|
|
4784
4784
|
const osPlatform = detectOSPlatform();
|
|
4785
|
-
console.log("osPlatform, browserPlatform = ", osPlatform, browserPlatform);
|
|
4786
4785
|
if (browserPlatform === BRWOSER_PLATFORM.WECHAT || browserPlatform === BRWOSER_PLATFORM.WECHAT_MINIPROGRAM) {
|
|
4787
4786
|
return wechatWatchPosition(onSuccess, onError, option);
|
|
4788
4787
|
}
|
|
@@ -4798,8 +4797,10 @@ function compatibleGeoPositionTransform(position, transform2) {
|
|
|
4798
4797
|
const os = detectOSPlatform();
|
|
4799
4798
|
const platform = detectBrowserPlatform();
|
|
4800
4799
|
const wallet = detectAlipayWallet();
|
|
4801
|
-
|
|
4802
|
-
|
|
4800
|
+
console.log("os, browserPlatform, wallet = ", os, platform, wallet);
|
|
4801
|
+
if (wallet === ALIPAY_WALLET.TNGD || wallet === ALIPAY_WALLET.TMN) {
|
|
4802
|
+
return os === OS_PLATFORM.ANDROID ? transform2(position) : position;
|
|
4803
|
+
}
|
|
4803
4804
|
if (platform === BRWOSER_PLATFORM.ALIPAY || platform === BRWOSER_PLATFORM.ALIPAY_MINIPROGRAM)
|
|
4804
4805
|
return position;
|
|
4805
4806
|
return transform2(position);
|