@midscene/android 1.10.11 → 1.10.12-beta-20260812055946.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/es/cli.mjs CHANGED
@@ -2020,6 +2020,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
2020
2020
  return keyMap[lowerKey] || key;
2021
2021
  }
2022
2022
  async pressKey(key) {
2023
+ if ('+' !== key.trim() && key.includes('+')) throw new Error(`Android keyboardPress does not support key combinations: ${JSON.stringify(key)}`);
2023
2024
  const keyCodeMap = {
2024
2025
  Enter: 66,
2025
2026
  Backspace: 67,
@@ -2606,7 +2607,7 @@ class AndroidMidsceneTools extends BaseMidsceneTools {
2606
2607
  const tools = new AndroidMidsceneTools();
2607
2608
  runToolsCLI(tools, 'midscene-android', {
2608
2609
  stripPrefix: 'android_',
2609
- version: "1.10.11",
2610
+ version: "1.10.12-beta-20260812055946.0",
2610
2611
  extraCommands: createReportCliCommands()
2611
2612
  }).catch((e)=>{
2612
2613
  process.exit(reportCLIError(e));
package/dist/es/index.mjs CHANGED
@@ -1923,6 +1923,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
1923
1923
  return keyMap[lowerKey] || key;
1924
1924
  }
1925
1925
  async pressKey(key) {
1926
+ if ('+' !== key.trim() && key.includes('+')) throw new Error(`Android keyboardPress does not support key combinations: ${JSON.stringify(key)}`);
1926
1927
  const keyCodeMap = {
1927
1928
  Enter: 66,
1928
1929
  Backspace: 67,
package/dist/lib/cli.js CHANGED
@@ -2035,6 +2035,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
2035
2035
  return keyMap[lowerKey] || key;
2036
2036
  }
2037
2037
  async pressKey(key) {
2038
+ if ('+' !== key.trim() && key.includes('+')) throw new Error(`Android keyboardPress does not support key combinations: ${JSON.stringify(key)}`);
2038
2039
  const keyCodeMap = {
2039
2040
  Enter: 66,
2040
2041
  Backspace: 67,
@@ -2621,7 +2622,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
2621
2622
  const tools = new AndroidMidsceneTools();
2622
2623
  (0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-android', {
2623
2624
  stripPrefix: 'android_',
2624
- version: "1.10.11",
2625
+ version: "1.10.12-beta-20260812055946.0",
2625
2626
  extraCommands: (0, core_namespaceObject.createReportCliCommands)()
2626
2627
  }).catch((e)=>{
2627
2628
  process.exit((0, cli_namespaceObject.reportCLIError)(e));
package/dist/lib/index.js CHANGED
@@ -1956,6 +1956,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
1956
1956
  return keyMap[lowerKey] || key;
1957
1957
  }
1958
1958
  async pressKey(key) {
1959
+ if ('+' !== key.trim() && key.includes('+')) throw new Error(`Android keyboardPress does not support key combinations: ${JSON.stringify(key)}`);
1959
1960
  const keyCodeMap = {
1960
1961
  Enter: 66,
1961
1962
  Backspace: 67,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/android",
3
- "version": "1.10.11",
3
+ "version": "1.10.12-beta-20260812055946.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/midscene.git",
@@ -41,8 +41,8 @@
41
41
  "@yume-chan/stream-extra": "2.1.0",
42
42
  "appium-adb": "12.12.1",
43
43
  "sharp": "^0.34.3",
44
- "@midscene/core": "1.10.11",
45
- "@midscene/shared": "1.10.11"
44
+ "@midscene/core": "1.10.12-beta-20260812055946.0",
45
+ "@midscene/shared": "1.10.12-beta-20260812055946.0"
46
46
  },
47
47
  "optionalDependencies": {
48
48
  "@ffmpeg-installer/ffmpeg": "^1.1.0"
@@ -56,7 +56,7 @@
56
56
  "undici": "^6.0.0",
57
57
  "vitest": "3.0.5",
58
58
  "zod": "^3.25.1",
59
- "@midscene/playground": "1.10.11"
59
+ "@midscene/playground": "1.10.12-beta-20260812055946.0"
60
60
  },
61
61
  "license": "MIT",
62
62
  "scripts": {