wxa-runner 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/bin/wxa-runner.js +3 -1
- package/package.json +3 -3
package/bin/wxa-runner.js
CHANGED
|
@@ -32,6 +32,7 @@ program
|
|
|
32
32
|
.option('--forward-console', '浏览器里的 console.warn / console.error 也转发到终端(检测到编程助手时默认开启)')
|
|
33
33
|
.option('--no-forward-console', '浏览器里的报错不转发到终端')
|
|
34
34
|
.option('--devtools-login', '借本机微信开发者工具的登录态访问微信后台:真实的 code 和手机号、服务市场、插件')
|
|
35
|
+
.option('--webview-window', 'web-view 的网页在新窗口打开:网页和模拟器域名不同时,Cookie 也能正常使用')
|
|
35
36
|
.option('--extension <module>', '加载开发服务器扩展(npm 包名或文件路径),可以写多次', (value, previous) => [...previous, value], [])
|
|
36
37
|
// 旧名,开发服务器会提示改用 --devtools-login
|
|
37
38
|
.addOption(new Option('--real-login').hideHelp())
|
|
@@ -53,7 +54,8 @@ program
|
|
|
53
54
|
watch: options.watch,
|
|
54
55
|
devtoolsLogin: options.devtoolsLogin,
|
|
55
56
|
realLogin: options.realLogin,
|
|
56
|
-
forwardConsole: forward.mode
|
|
57
|
+
forwardConsole: forward.mode,
|
|
58
|
+
webViewWindow: options.webviewWindow
|
|
57
59
|
});
|
|
58
60
|
const url = await server.start();
|
|
59
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wxa-runner",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Run WeChat Mini Programs in the browser on the official base library, for debugging and E2E testing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wechat",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@vercel/detect-agent": "^1.2.7",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"commander": "^11.1.0",
|
|
39
|
-
"@open-wxa/wxa-runner-core": "0.
|
|
40
|
-
"@open-wxa/wxa-runner-extractor": "0.
|
|
39
|
+
"@open-wxa/wxa-runner-core": "0.12.0",
|
|
40
|
+
"@open-wxa/wxa-runner-extractor": "0.12.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@open-wxa/wxa-viewer": "0.10.0"
|