@hylid/call 4.0.0-alpha.8 → 4.0.0-alpha.9

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/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /// <reference types="miniprogram" />
2
2
  import { MPApi, PickMPArgs, PickMpReturns, Callback } from '@hylid/types';
3
3
  import { mpCall } from './mpCall';
4
- import { mpWebCall } from './mpWebCall';
5
- import { webCall } from './webCall';
4
+ import { mpWebCall, mpWebCallAsync } from './mpWebCall';
5
+ import { webCall, webCallAsync } from './webCall';
6
6
  import { notFound } from './notFound';
7
7
  import { Config } from './types';
8
8
  export declare function call<T extends keyof MPApi>(name: T | ({} & string), options?: PickMPArgs<T> | Common | Callback<PickMpReturns<T>>, config?: Config): any;
9
9
  export declare function createWebviewSrc(url: string): string;
10
10
  export { WebViewBridge } from './webviewBridge';
11
- export { mpCall, mpWebCall, webCall, notFound };
11
+ export { mpCall, mpWebCall, webCall, notFound, mpWebCallAsync, webCallAsync };
12
12
  export { promisify } from './promisify';
package/lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var _a;
2
2
  import { platform, PLATFORM } from '@hylid/env';
3
3
  import { mpCall } from "./mpCall";
4
- import { mpWebCall } from "./mpWebCall";
5
- import { webCall } from "./webCall";
4
+ import { mpWebCall, mpWebCallAsync } from "./mpWebCall";
5
+ import { webCall, webCallAsync } from "./webCall";
6
6
  import { notFound } from "./notFound";
7
7
  var callMap = (_a = {}, _a[PLATFORM.MP] = mpCall, _a[PLATFORM.MPWEB] = mpWebCall, _a[PLATFORM.WEB] = webCall, _a);
8
8
  export function call(name, options, config) {
@@ -26,5 +26,5 @@ export function createWebviewSrc(url) {
26
26
  }
27
27
  ;
28
28
  export { WebViewBridge } from "./webviewBridge";
29
- export { mpCall, mpWebCall, webCall, notFound };
29
+ export { mpCall, mpWebCall, webCall, notFound, mpWebCallAsync, webCallAsync };
30
30
  export { promisify } from "./promisify";
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@hylid/call",
3
- "version": "4.0.0-alpha.8",
3
+ "version": "4.0.0-alpha.9",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib"
7
7
  ],
8
8
  "dependencies": {
9
- "@hylid/env": "^4.0.0-alpha.8",
10
- "@hylid/types": "^4.0.0-alpha.8"
9
+ "@hylid/env": "^4.0.0-alpha.9",
10
+ "@hylid/types": "^4.0.0-alpha.9"
11
11
  },
12
12
  "publishConfig": {
13
13
  "access": "public"