ohos-playwright 0.2.3 → 0.2.4

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/README.md CHANGED
@@ -42,7 +42,7 @@ export default defineConfig(withOpenHarmony({ /* your config */ }))
42
42
  | Variable | Default |
43
43
  |---|---|
44
44
  | `OHOS_PW_BUNDLE` | `com.huawei.hmos.browser` |
45
- | `OHOS_PW_LAUNCH_URL` | `http://localhost:5173` |
45
+ | `OHOS_PW_LAUNCH_URL` | `about:blank` (set to your dev server URL, e.g. `http://localhost:5173`) |
46
46
  | `OHOS_PW_HDC` | `/data/service/hnp/bin/hdc` |
47
47
  | `OHOS_PW_AUTO_CONNECT` | auto (set `0` to skip device auto-connect) |
48
48
  | `OHOS_PW_INFO_PATH` | `<tmpdir>/ohos-playwright-cdp.json` |
package/dist/setup.mjs CHANGED
@@ -7,7 +7,7 @@ import http from 'node:http';
7
7
  import { INFO_PATH } from "./info-path.mjs";
8
8
  const HDC = process.env.OHOS_PW_HDC ?? '/data/service/hnp/bin/hdc';
9
9
  const BUNDLE = process.env.OHOS_PW_BUNDLE ?? 'com.huawei.hmos.browser';
10
- const LAUNCH_URL = process.env.OHOS_PW_LAUNCH_URL ?? 'http://localhost:5173';
10
+ const LAUNCH_URL = process.env.OHOS_PW_LAUNCH_URL ?? 'about:blank';
11
11
  const HDC_OPTS = { encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] };
12
12
  function hdc(args, opts) {
13
13
  return String(execFileSync(HDC, args, { ...HDC_OPTS, ...opts })).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohos-playwright",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Playwright adapter for OpenHarmony / ArkWeb via hdc + CDP",
5
5
  "license": "MIT",
6
6
  "author": "social4hyq",