@hylid/call 4.0.33 → 4.1.0

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/lib/mpWebCall.js CHANGED
@@ -72,7 +72,8 @@ export function mpWebCall(api, options, config) {
72
72
  serialId: serialId,
73
73
  options: options,
74
74
  config: config,
75
- isSync: config === null || config === void 0 ? void 0 : config.isSync
75
+ isSync: config === null || config === void 0 ? void 0 : config.isSync,
76
+ useMyCallToInvoke: config === null || config === void 0 ? void 0 : config.useMyCallToInvoke
76
77
  };
77
78
  mpWebPostMessage(message);
78
79
  // 设置 jsapi 通信超时时间
package/lib/types.d.ts CHANGED
@@ -10,6 +10,7 @@ export interface JsApiConfig {
10
10
  * 套壳 jsapi 调用,通信超时时间。type = "callback" 时不生效
11
11
  */
12
12
  timeout?: number;
13
+ useMyCallToInvoke?: boolean;
13
14
  }
14
15
  export declare type Config = JsApiConfig;
15
16
  export interface MpWebMessageResult<T = any> {
@@ -28,6 +29,10 @@ export interface MpWebJsApiMessage {
28
29
  * @deprecated 优先使用 config.type = "sync" 配置
29
30
  */
30
31
  isSync?: boolean;
32
+ /**
33
+ * 使用my.call来调用JSAPI
34
+ */
35
+ useMyCallToInvoke?: boolean;
31
36
  }
32
37
  export interface MpWebBroadcastMessage {
33
38
  source: 'hylid';
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@hylid/call",
3
- "version": "4.0.33",
3
+ "version": "4.1.0",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib"
7
7
  ],
8
8
  "dependencies": {
9
- "@hylid/env": "^4.0.33",
10
- "@hylid/types": "^4.0.33"
9
+ "@hylid/env": "^4.1.0",
10
+ "@hylid/types": "^4.1.0"
11
11
  },
12
12
  "publishConfig": {
13
13
  "access": "public"