@wevu/api 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -27,6 +27,8 @@ await hostApi.request({
27
27
  import { createWeapi, wpi } from '@wevu/api'
28
28
  ```
29
29
 
30
+ 同步直接返回 API(包括部分没有 `Sync` 后缀的宿主 API)会保留原始返回值;异步 API 才会在未传回调时返回 Promise。
31
+
30
32
  `@wevu/api` 不再维护独立实现,所有能力、平台适配、类型声明与兼容性修复均由 `@weapp-core/api` 提供。
31
33
 
32
34
  ## Vitest mock
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wevu/api",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "description": "Compatibility entry for @weapp-core/api",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  }
51
51
  },
52
52
  "dependencies": {
53
- "@weapp-core/api": "0.3.0"
53
+ "@weapp-core/api": "0.3.1"
54
54
  },
55
55
  "tsd": {
56
56
  "compilerOptions": {