@heycar/heycars-map 0.9.25-alpha2 → 0.9.25-alpha3

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.
@@ -18,6 +18,7 @@ export declare const useDeviceOrientation: (props: UseDeviceOrientationProps) =>
18
18
  };
19
19
  };
20
20
  /**
21
+ * @deprecated
21
22
  * 修复 ios 微信小程序 页面切换和 DeviceOrientationEvent.requestPermission 冲突问题。
22
23
  * @param duration 毫秒
23
24
  * @returns 在 duration 时间内是否页面被小程序关闭了
@@ -12,7 +12,9 @@ class QueryWxSignatureStatus {
12
12
  __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
13
13
  __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
14
14
  this.pendingStatusPromise = new Promise((resolve, reject) => {
15
+ const now = Date.now();
15
16
  wx == null ? void 0 : wx.ready(() => {
17
+ console.warn(`微信签名状态:查询到状态-签名成功, 用时 ${(Date.now() - now) / 1e3} 秒`);
16
18
  this.status = "READY";
17
19
  resolve("READY");
18
20
  });
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-alpha2";
3
+ const pkgVersion = "0.9.25-alpha3";
4
4
  const isEnableLog = (name) => {
5
5
  const searchParam = new URLSearchParams(location.search);
6
6
  return searchParam.has(`log-${name}`);
@@ -1,4 +1,7 @@
1
1
  import type { Wx } from "../types/wx";
2
2
  export declare const MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT = "MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT";
3
3
  export declare const MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT: number;
4
+ /**
5
+ * @deprecated
6
+ */
4
7
  export declare const patchMiniprogramRedirectTo: (wx: Wx) => Wx["miniProgram"]["redirectTo"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.9.25-alpha2",
3
+ "version": "0.9.25-alpha3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js"