@open-wxa/wxa-runner-core 0.1.0 → 0.2.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.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +82 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -6
- package/dist/index.mjs.map +1 -1
- package/dist/runtime/frame.js +227 -5
- package/dist/runtime/frame.js.map +1 -1
- package/dist/runtime/host.js +115 -22
- package/dist/runtime/host.js.map +1 -1
- package/dist/test-api.d.mts +1 -1
- package/dist/test-api.d.ts +1 -1
- package/dist/{testApi-CvOYhts4.d.ts → testApi-BTPLQvFs.d.ts} +2 -0
- package/dist/{testApi-c4IFZcVw.d.mts → testApi-D5o7hK-Z.d.mts} +2 -0
- package/package.json +3 -3
package/dist/test-api.d.mts
CHANGED
package/dist/test-api.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { d as MockRequest, F as FrameKind, a as ApiHandler, b as ApiResult, R as
|
|
|
6
6
|
* 基础库 3.x 的协议是「创建任务同步返回 taskId,结果通过 on<Type>TaskStateChange 事件推送」。
|
|
7
7
|
* HTTP 请求经开发服务器的 /__wxa__/proxy 转发:既绕开 CORS,也能携带浏览器禁止设置的
|
|
8
8
|
* cookie / referer 等请求头。
|
|
9
|
+
*
|
|
10
|
+
* 只发出小程序自己的请求:基础库自己的请求(数据上报、配置拉取等)见 rejectBaseLibInternal。
|
|
9
11
|
*/
|
|
10
12
|
|
|
11
13
|
/** 小程序发出的一个 wx.request */
|
|
@@ -6,6 +6,8 @@ import { d as MockRequest, F as FrameKind, a as ApiHandler, b as ApiResult, R as
|
|
|
6
6
|
* 基础库 3.x 的协议是「创建任务同步返回 taskId,结果通过 on<Type>TaskStateChange 事件推送」。
|
|
7
7
|
* HTTP 请求经开发服务器的 /__wxa__/proxy 转发:既绕开 CORS,也能携带浏览器禁止设置的
|
|
8
8
|
* cookie / referer 等请求头。
|
|
9
|
+
*
|
|
10
|
+
* 只发出小程序自己的请求:基础库自己的请求(数据上报、配置拉取等)见 rejectBaseLibInternal。
|
|
9
11
|
*/
|
|
10
12
|
|
|
11
13
|
/** 小程序发出的一个 wx.request */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-wxa/wxa-runner-core",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Dev server and browser runtime that run WeChat mini-programs on the official base library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "open-wxa",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"esbuild": "^0.27.0",
|
|
50
50
|
"express": "^4.18.2",
|
|
51
51
|
"ws": "^8.14.2",
|
|
52
|
-
"@open-wxa/wxa-runner-compiler": "0.1
|
|
53
|
-
"@open-wxa/wxa-runner-extractor": "0.1
|
|
52
|
+
"@open-wxa/wxa-runner-compiler": "0.2.1",
|
|
53
|
+
"@open-wxa/wxa-runner-extractor": "0.2.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/express": "^4.17.21",
|