appium-mac2-driver 4.0.3 → 4.0.5

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.
Files changed (79) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +25 -963
  3. package/build/lib/commands/app-management.d.ts +1 -1
  4. package/build/lib/commands/app-management.d.ts.map +1 -1
  5. package/build/lib/commands/app-management.js.map +1 -1
  6. package/build/lib/commands/applescript.d.ts.map +1 -1
  7. package/build/lib/commands/applescript.js +1 -1
  8. package/build/lib/commands/applescript.js.map +1 -1
  9. package/build/lib/commands/bidi/models.d.ts.map +1 -1
  10. package/build/lib/commands/bidi/models.js.map +1 -1
  11. package/build/lib/commands/clipboard.d.ts.map +1 -1
  12. package/build/lib/commands/clipboard.js.map +1 -1
  13. package/build/lib/commands/execute.d.ts +1 -1
  14. package/build/lib/commands/execute.d.ts.map +1 -1
  15. package/build/lib/commands/execute.js.map +1 -1
  16. package/build/lib/commands/find.d.ts.map +1 -1
  17. package/build/lib/commands/find.js.map +1 -1
  18. package/build/lib/commands/gestures.d.ts.map +1 -1
  19. package/build/lib/commands/gestures.js +5 -13
  20. package/build/lib/commands/gestures.js.map +1 -1
  21. package/build/lib/commands/helpers.d.ts +1 -1
  22. package/build/lib/commands/helpers.d.ts.map +1 -1
  23. package/build/lib/commands/helpers.js.map +1 -1
  24. package/build/lib/commands/native-record-screen.d.ts +2 -2
  25. package/build/lib/commands/native-record-screen.d.ts.map +1 -1
  26. package/build/lib/commands/native-record-screen.js +4 -5
  27. package/build/lib/commands/native-record-screen.js.map +1 -1
  28. package/build/lib/commands/navigation.d.ts.map +1 -1
  29. package/build/lib/commands/navigation.js.map +1 -1
  30. package/build/lib/commands/record-screen.d.ts +1 -1
  31. package/build/lib/commands/record-screen.d.ts.map +1 -1
  32. package/build/lib/commands/record-screen.js +2 -2
  33. package/build/lib/commands/record-screen.js.map +1 -1
  34. package/build/lib/commands/screenshots.d.ts.map +1 -1
  35. package/build/lib/commands/screenshots.js.map +1 -1
  36. package/build/lib/commands/source.d.ts.map +1 -1
  37. package/build/lib/commands/source.js.map +1 -1
  38. package/build/lib/doctor/optional-checks.d.ts.map +1 -1
  39. package/build/lib/doctor/optional-checks.js +2 -2
  40. package/build/lib/doctor/optional-checks.js.map +1 -1
  41. package/build/lib/doctor/required-checks.d.ts.map +1 -1
  42. package/build/lib/doctor/required-checks.js +1 -1
  43. package/build/lib/doctor/required-checks.js.map +1 -1
  44. package/build/lib/driver.d.ts +5 -5
  45. package/build/lib/driver.d.ts.map +1 -1
  46. package/build/lib/driver.js +9 -10
  47. package/build/lib/driver.js.map +1 -1
  48. package/build/lib/execute-method-map.d.ts.map +1 -1
  49. package/build/lib/execute-method-map.js +4 -37
  50. package/build/lib/execute-method-map.js.map +1 -1
  51. package/build/lib/utils.d.ts.map +1 -1
  52. package/build/lib/utils.js +2 -2
  53. package/build/lib/utils.js.map +1 -1
  54. package/build/lib/wda-mac.d.ts +1 -1
  55. package/build/lib/wda-mac.d.ts.map +1 -1
  56. package/build/lib/wda-mac.js +8 -12
  57. package/build/lib/wda-mac.js.map +1 -1
  58. package/lib/commands/app-management.ts +5 -16
  59. package/lib/commands/applescript.ts +3 -1
  60. package/lib/commands/bidi/models.ts +2 -5
  61. package/lib/commands/clipboard.ts +1 -4
  62. package/lib/commands/execute.ts +3 -6
  63. package/lib/commands/find.ts +1 -0
  64. package/lib/commands/gestures.ts +10 -44
  65. package/lib/commands/helpers.ts +3 -4
  66. package/lib/commands/native-record-screen.ts +15 -28
  67. package/lib/commands/navigation.ts +1 -5
  68. package/lib/commands/record-screen.ts +10 -30
  69. package/lib/commands/screenshots.ts +1 -4
  70. package/lib/commands/source.ts +1 -4
  71. package/lib/doctor/optional-checks.ts +10 -19
  72. package/lib/doctor/required-checks.ts +3 -5
  73. package/lib/driver.ts +12 -21
  74. package/lib/execute-method-map.ts +4 -37
  75. package/lib/utils.ts +3 -2
  76. package/lib/wda-mac.ts +19 -31
  77. package/npm-shrinkwrap.json +235 -223
  78. package/package.json +70 -76
  79. package/scripts/open-wda.mjs +2 -1
package/package.json CHANGED
@@ -1,47 +1,39 @@
1
1
  {
2
2
  "name": "appium-mac2-driver",
3
+ "version": "4.0.5",
3
4
  "description": "XCTest-based Appium driver for macOS apps automation",
4
5
  "keywords": [
6
+ "XCTest",
5
7
  "appium",
6
- "mac",
7
- "XCTest"
8
+ "mac"
8
9
  ],
9
- "version": "4.0.3",
10
- "author": "Appium Contributors",
10
+ "bugs": {
11
+ "url": "https://github.com/appium/appium-mac2-driver/issues"
12
+ },
11
13
  "license": "Apache-2.0",
14
+ "author": "Appium Contributors",
12
15
  "repository": {
13
16
  "type": "git",
14
17
  "url": "https://github.com/appium/appium-mac2-driver.git"
15
18
  },
16
- "bugs": {
17
- "url": "https://github.com/appium/appium-mac2-driver/issues"
18
- },
19
- "engines": {
20
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
21
- "npm": ">=10"
22
- },
23
- "prettier": {
24
- "bracketSpacing": false,
25
- "printWidth": 100,
26
- "singleQuote": true
27
- },
28
- "appium": {
29
- "driverName": "mac2",
30
- "automationName": "Mac2",
31
- "platformNames": [
32
- "Mac"
33
- ],
34
- "mainClass": "Mac2Driver",
35
- "scripts": {
36
- "open-wda": "./scripts/open-wda.mjs"
37
- },
38
- "doctor": {
39
- "checks": [
40
- "./build/lib/doctor/required-checks.js",
41
- "./build/lib/doctor/optional-checks.js"
42
- ]
43
- }
44
- },
19
+ "bin": {},
20
+ "files": [
21
+ "lib",
22
+ "build/lib",
23
+ "scripts",
24
+ "WebDriverAgentMac/Scripts",
25
+ "WebDriverAgentMac/Cartfile",
26
+ "WebDriverAgentMac/Cartfile.resolved",
27
+ "WebDriverAgentMac/WebDriverAgentLib",
28
+ "WebDriverAgentMac/WebDriverAgentMac.xcodeproj",
29
+ "WebDriverAgentMac/WebDriverAgentRunner",
30
+ "WebDriverAgentMac/IntegrationTests",
31
+ "WebDriverAgentMac/WebDriverAgent",
32
+ "!.DS_Store",
33
+ "CHANGELOG.md",
34
+ "LICENSE",
35
+ "npm-shrinkwrap.json"
36
+ ],
45
37
  "type": "module",
46
38
  "main": "./build/lib/index.js",
47
39
  "types": "./build/lib/index.d.ts",
@@ -52,7 +44,23 @@
52
44
  },
53
45
  "./package.json": "./package.json"
54
46
  },
55
- "bin": {},
47
+ "scripts": {
48
+ "build": "tsc -b",
49
+ "clean": "npm run build -- --clean",
50
+ "rebuild": "npm run clean; npm run build",
51
+ "dev": "npm run build -- --watch",
52
+ "lint": "oxlint -c oxlint.config.mjs .",
53
+ "lint:fix": "oxlint -c oxlint.config.mjs --fix .",
54
+ "format": "oxfmt -c oxfmt.config.mjs .",
55
+ "format:check": "oxfmt -c oxfmt.config.mjs --check .",
56
+ "build:docs": "appium-docs build",
57
+ "dev:docs": "appium-docs build --serve",
58
+ "publish:docs": "appium-docs build --deploy --push -b docs-site -m 'docs: build docs for appium-mac2-driver@%s' --alias latest --use-prefixed-major-deploy-version",
59
+ "install-docs-deps": "appium-docs init --no-mkdocs",
60
+ "prepare": "npm run build",
61
+ "test": "node --enable-source-maps --test --test-timeout=60000 \"build/test/unit/**/*.test.js\"",
62
+ "e2e-test": "npm run build && node --enable-source-maps --test --test-concurrency=1 --test-timeout=600000 \"build/test/functional/**/*.test.js\""
63
+ },
56
64
  "dependencies": {
57
65
  "@appium/strongbox": "^1.0.0-rc.1",
58
66
  "@colors/colors": "^1.6.0",
@@ -62,52 +70,38 @@
62
70
  "portscanner": "^2.2.0",
63
71
  "teen_process": "^4.0.4"
64
72
  },
65
- "scripts": {
66
- "build": "tsc -b",
67
- "clean": "npm run build -- --clean",
68
- "rebuild": "npm run clean; npm run build",
69
- "dev": "npm run build -- --watch",
70
- "lint": "eslint .",
71
- "lint:fix": "npm run lint -- --fix",
72
- "format": "prettier -w ./lib ./test",
73
- "format:check": "prettier --check ./lib ./test",
74
- "prepare": "npm run build",
75
- "pretest": "npm run build",
76
- "test": "node --test --test-timeout=60000 \"build/test/unit/**/*.test.js\"",
77
- "e2e-test": "npm run build && node --test --test-concurrency=1 --test-timeout=600000 \"build/test/functional/**/*.test.js\""
78
- },
79
- "peerDependencies": {
80
- "appium": "^3.0.0-rc.2"
81
- },
82
73
  "devDependencies": {
83
- "@appium/eslint-config-appium-ts": "^3.0.0",
84
- "@appium/tsconfig": "^1.0.0-rc.1",
74
+ "@appium/docutils": "^2.5.0",
75
+ "@appium/oxc-config": "^1.1.0",
76
+ "@appium/semantic-release-config": "^1.1.0",
77
+ "@appium/tsconfig": "^1.2.0",
85
78
  "@appium/types": "^1.0.0-rc.1",
86
- "@semantic-release/changelog": "^6.0.1",
87
- "@semantic-release/git": "^10.0.1",
88
79
  "@types/node": "^26.0.0",
89
80
  "@types/portscanner": "^2.1.1",
90
- "conventional-changelog-conventionalcommits": "^9.3.1",
91
- "prettier": "^3.0.3",
92
- "semantic-release": "^25.0.2",
93
- "typescript": "^6.0.2",
94
81
  "webdriverio": "^9.0.0"
95
82
  },
96
- "files": [
97
- "lib",
98
- "build/lib",
99
- "scripts",
100
- "WebDriverAgentMac/Scripts",
101
- "WebDriverAgentMac/Cartfile",
102
- "WebDriverAgentMac/Cartfile.resolved",
103
- "WebDriverAgentMac/WebDriverAgentLib",
104
- "WebDriverAgentMac/WebDriverAgentMac.xcodeproj",
105
- "WebDriverAgentMac/WebDriverAgentRunner",
106
- "WebDriverAgentMac/IntegrationTests",
107
- "WebDriverAgentMac/WebDriverAgent",
108
- "!.DS_Store",
109
- "CHANGELOG.md",
110
- "LICENSE",
111
- "npm-shrinkwrap.json"
112
- ]
83
+ "peerDependencies": {
84
+ "appium": "^3.0.0-rc.2"
85
+ },
86
+ "engines": {
87
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
88
+ "npm": ">=10"
89
+ },
90
+ "appium": {
91
+ "driverName": "mac2",
92
+ "automationName": "Mac2",
93
+ "platformNames": [
94
+ "Mac"
95
+ ],
96
+ "mainClass": "Mac2Driver",
97
+ "scripts": {
98
+ "open-wda": "./scripts/open-wda.mjs"
99
+ },
100
+ "doctor": {
101
+ "checks": [
102
+ "./build/lib/doctor/required-checks.js",
103
+ "./build/lib/doctor/optional-checks.js"
104
+ ]
105
+ }
106
+ }
113
107
  }
@@ -1,7 +1,8 @@
1
1
  import path from 'node:path';
2
2
  import {fileURLToPath} from 'node:url';
3
- import {exec} from 'teen_process';
3
+
4
4
  import {logger} from 'appium/support.js';
5
+ import {exec} from 'teen_process';
5
6
  const XCODEPROJ_NAME = 'WebDriverAgentMac.xcodeproj';
6
7
 
7
8
  const log = logger.getLogger('WDA');