@open-wxa/wxa-runner-core 0.11.0 → 0.12.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/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/runtime/host.js +198 -25
- package/dist/runtime/host.js.map +1 -1
- package/dist/{setup-DhDDVlit.d.mts → setup-D0ubZt2C.d.mts} +2 -0
- package/dist/{setup-DhDDVlit.d.ts → setup-D0ubZt2C.d.ts} +2 -0
- package/dist/setup.d.mts +1 -1
- package/dist/setup.d.ts +1 -1
- package/dist/test-api.d.mts +12 -2
- package/dist/test-api.d.ts +12 -2
- package/dist/{testApi-BbK_1vhj.d.mts → testApi-Df0ltBI6.d.ts} +29 -2
- package/dist/{testApi-DbTnccYV.d.ts → testApi-x2Yph6M2.d.mts} +29 -2
- package/dist/web.d.mts +2 -0
- package/dist/web.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import http, { IncomingMessage, ServerResponse } from 'http';
|
|
2
2
|
import { ResolvedBaseLib } from '@open-wxa/wxa-runner-extractor';
|
|
3
|
-
import { D as DeviceProfile, F as ForwardConsole } from './setup-
|
|
4
|
-
export { A as ApiContext, a as ApiHandler, b as ApiResult, c as AppInfo, M as MockConfig, d as MockRequest, e as MockResponse, f as MockValue, N as NetworkConfig, R as RouteHandler, S as SetupApi, g as SetupConfig, h as SetupContext, i as SetupDefinition } from './setup-
|
|
3
|
+
import { D as DeviceProfile, F as ForwardConsole } from './setup-D0ubZt2C.mjs';
|
|
4
|
+
export { A as ApiContext, a as ApiHandler, b as ApiResult, c as AppInfo, M as MockConfig, d as MockRequest, e as MockResponse, f as MockValue, N as NetworkConfig, R as RouteHandler, S as SetupApi, g as SetupConfig, h as SetupContext, i as SetupDefinition } from './setup-D0ubZt2C.mjs';
|
|
5
5
|
import { Request, Response } from 'express';
|
|
6
|
-
export { F as FrameError, P as PageSnapshot, R as RecordedRequest, W as WxaTestApi } from './testApi-
|
|
6
|
+
export { F as FrameError, P as PageSnapshot, R as RecordedRequest, W as WebViewInfo, a as WxaTestApi } from './testApi-x2Yph6M2.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* 样式预处理:project.config.json 的 setting.useCompilerPlugins 开启 less / sass 时,
|
|
@@ -322,6 +322,11 @@ interface DevServerOptions {
|
|
|
322
322
|
* 默认不转发;命令行默认 'errors',检测到编程助手时 'all'
|
|
323
323
|
*/
|
|
324
324
|
forwardConsole?: ForwardConsole;
|
|
325
|
+
/**
|
|
326
|
+
* web-view 的网页在新窗口打开,而不是嵌在模拟器里的 iframe 中。网页成为顶层页面,
|
|
327
|
+
* 和模拟器域名不同时 Cookie 也能正常使用;默认 false
|
|
328
|
+
*/
|
|
329
|
+
webViewWindow?: boolean;
|
|
325
330
|
/** 注入每个渲染层页面(含插件页面、跳转后新建的页面)的脚本,供检查器等开发工具使用 */
|
|
326
331
|
webviewScripts?: WebviewScript[];
|
|
327
332
|
/** 挂在开发服务器上的中间件,供开发工具提供自己的页面和接口 */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import http, { IncomingMessage, ServerResponse } from 'http';
|
|
2
2
|
import { ResolvedBaseLib } from '@open-wxa/wxa-runner-extractor';
|
|
3
|
-
import { D as DeviceProfile, F as ForwardConsole } from './setup-
|
|
4
|
-
export { A as ApiContext, a as ApiHandler, b as ApiResult, c as AppInfo, M as MockConfig, d as MockRequest, e as MockResponse, f as MockValue, N as NetworkConfig, R as RouteHandler, S as SetupApi, g as SetupConfig, h as SetupContext, i as SetupDefinition } from './setup-
|
|
3
|
+
import { D as DeviceProfile, F as ForwardConsole } from './setup-D0ubZt2C.js';
|
|
4
|
+
export { A as ApiContext, a as ApiHandler, b as ApiResult, c as AppInfo, M as MockConfig, d as MockRequest, e as MockResponse, f as MockValue, N as NetworkConfig, R as RouteHandler, S as SetupApi, g as SetupConfig, h as SetupContext, i as SetupDefinition } from './setup-D0ubZt2C.js';
|
|
5
5
|
import { Request, Response } from 'express';
|
|
6
|
-
export { F as FrameError, P as PageSnapshot, R as RecordedRequest, W as WxaTestApi } from './testApi-
|
|
6
|
+
export { F as FrameError, P as PageSnapshot, R as RecordedRequest, W as WebViewInfo, a as WxaTestApi } from './testApi-Df0ltBI6.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* 样式预处理:project.config.json 的 setting.useCompilerPlugins 开启 less / sass 时,
|
|
@@ -322,6 +322,11 @@ interface DevServerOptions {
|
|
|
322
322
|
* 默认不转发;命令行默认 'errors',检测到编程助手时 'all'
|
|
323
323
|
*/
|
|
324
324
|
forwardConsole?: ForwardConsole;
|
|
325
|
+
/**
|
|
326
|
+
* web-view 的网页在新窗口打开,而不是嵌在模拟器里的 iframe 中。网页成为顶层页面,
|
|
327
|
+
* 和模拟器域名不同时 Cookie 也能正常使用;默认 false
|
|
328
|
+
*/
|
|
329
|
+
webViewWindow?: boolean;
|
|
325
330
|
/** 注入每个渲染层页面(含插件页面、跳转后新建的页面)的脚本,供检查器等开发工具使用 */
|
|
326
331
|
webviewScripts?: WebviewScript[];
|
|
327
332
|
/** 挂在开发服务器上的中间件,供开发工具提供自己的页面和接口 */
|
package/dist/index.js
CHANGED
|
@@ -2056,7 +2056,8 @@ ${error.message}`);
|
|
|
2056
2056
|
baseLibVersion: this.baseLib.version,
|
|
2057
2057
|
device: this.device,
|
|
2058
2058
|
devtoolsLogin: this.devtoolsLogin,
|
|
2059
|
-
forwardConsole: this.options.forwardConsole ?? false
|
|
2059
|
+
forwardConsole: this.options.forwardConsole ?? false,
|
|
2060
|
+
webViewWindow: this.options.webViewWindow ?? false
|
|
2060
2061
|
};
|
|
2061
2062
|
try {
|
|
2062
2063
|
const build2 = await this.plugins.refresh(await this.builder.build());
|