appium-mac2-driver 4.0.4 → 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 (78) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/lib/commands/app-management.d.ts +1 -1
  3. package/build/lib/commands/app-management.d.ts.map +1 -1
  4. package/build/lib/commands/app-management.js.map +1 -1
  5. package/build/lib/commands/applescript.d.ts.map +1 -1
  6. package/build/lib/commands/applescript.js +1 -1
  7. package/build/lib/commands/applescript.js.map +1 -1
  8. package/build/lib/commands/bidi/models.d.ts.map +1 -1
  9. package/build/lib/commands/bidi/models.js.map +1 -1
  10. package/build/lib/commands/clipboard.d.ts.map +1 -1
  11. package/build/lib/commands/clipboard.js.map +1 -1
  12. package/build/lib/commands/execute.d.ts +1 -1
  13. package/build/lib/commands/execute.d.ts.map +1 -1
  14. package/build/lib/commands/execute.js.map +1 -1
  15. package/build/lib/commands/find.d.ts.map +1 -1
  16. package/build/lib/commands/find.js.map +1 -1
  17. package/build/lib/commands/gestures.d.ts.map +1 -1
  18. package/build/lib/commands/gestures.js +5 -13
  19. package/build/lib/commands/gestures.js.map +1 -1
  20. package/build/lib/commands/helpers.d.ts +1 -1
  21. package/build/lib/commands/helpers.d.ts.map +1 -1
  22. package/build/lib/commands/helpers.js.map +1 -1
  23. package/build/lib/commands/native-record-screen.d.ts +2 -2
  24. package/build/lib/commands/native-record-screen.d.ts.map +1 -1
  25. package/build/lib/commands/native-record-screen.js +4 -5
  26. package/build/lib/commands/native-record-screen.js.map +1 -1
  27. package/build/lib/commands/navigation.d.ts.map +1 -1
  28. package/build/lib/commands/navigation.js.map +1 -1
  29. package/build/lib/commands/record-screen.d.ts +1 -1
  30. package/build/lib/commands/record-screen.d.ts.map +1 -1
  31. package/build/lib/commands/record-screen.js +2 -2
  32. package/build/lib/commands/record-screen.js.map +1 -1
  33. package/build/lib/commands/screenshots.d.ts.map +1 -1
  34. package/build/lib/commands/screenshots.js.map +1 -1
  35. package/build/lib/commands/source.d.ts.map +1 -1
  36. package/build/lib/commands/source.js.map +1 -1
  37. package/build/lib/doctor/optional-checks.d.ts.map +1 -1
  38. package/build/lib/doctor/optional-checks.js +2 -2
  39. package/build/lib/doctor/optional-checks.js.map +1 -1
  40. package/build/lib/doctor/required-checks.d.ts.map +1 -1
  41. package/build/lib/doctor/required-checks.js +1 -1
  42. package/build/lib/doctor/required-checks.js.map +1 -1
  43. package/build/lib/driver.d.ts +5 -5
  44. package/build/lib/driver.d.ts.map +1 -1
  45. package/build/lib/driver.js +9 -10
  46. package/build/lib/driver.js.map +1 -1
  47. package/build/lib/execute-method-map.d.ts.map +1 -1
  48. package/build/lib/execute-method-map.js +4 -37
  49. package/build/lib/execute-method-map.js.map +1 -1
  50. package/build/lib/utils.d.ts.map +1 -1
  51. package/build/lib/utils.js +2 -2
  52. package/build/lib/utils.js.map +1 -1
  53. package/build/lib/wda-mac.d.ts +1 -1
  54. package/build/lib/wda-mac.d.ts.map +1 -1
  55. package/build/lib/wda-mac.js +8 -12
  56. package/build/lib/wda-mac.js.map +1 -1
  57. package/lib/commands/app-management.ts +5 -16
  58. package/lib/commands/applescript.ts +3 -1
  59. package/lib/commands/bidi/models.ts +2 -5
  60. package/lib/commands/clipboard.ts +1 -4
  61. package/lib/commands/execute.ts +3 -6
  62. package/lib/commands/find.ts +1 -0
  63. package/lib/commands/gestures.ts +10 -44
  64. package/lib/commands/helpers.ts +3 -4
  65. package/lib/commands/native-record-screen.ts +15 -28
  66. package/lib/commands/navigation.ts +1 -5
  67. package/lib/commands/record-screen.ts +10 -30
  68. package/lib/commands/screenshots.ts +1 -4
  69. package/lib/commands/source.ts +1 -4
  70. package/lib/doctor/optional-checks.ts +10 -19
  71. package/lib/doctor/required-checks.ts +3 -5
  72. package/lib/driver.ts +12 -21
  73. package/lib/execute-method-map.ts +4 -37
  74. package/lib/utils.ts +3 -2
  75. package/lib/wda-mac.ts +19 -31
  76. package/npm-shrinkwrap.json +150 -191
  77. package/package.json +66 -77
  78. 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.4",
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,67 +44,64 @@
52
44
  },
53
45
  "./package.json": "./package.json"
54
46
  },
55
- "bin": {},
56
- "dependencies": {
57
- "@appium/strongbox": "^1.0.0-rc.1",
58
- "@colors/colors": "^1.6.0",
59
- "appium-xcode": "^6.0.0",
60
- "asyncbox": "^6.3.0",
61
- "axios": "^1.16.0",
62
- "portscanner": "^2.2.0",
63
- "teen_process": "^4.0.4"
64
- },
65
47
  "scripts": {
66
48
  "build": "tsc -b",
67
49
  "clean": "npm run build -- --clean",
68
50
  "rebuild": "npm run clean; npm run build",
69
51
  "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",
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 .",
74
56
  "build:docs": "appium-docs build",
75
57
  "dev:docs": "appium-docs build --serve",
76
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",
77
59
  "install-docs-deps": "appium-docs init --no-mkdocs",
78
60
  "prepare": "npm run build",
79
- "pretest": "npm run build",
80
- "test": "node --test --test-timeout=60000 \"build/test/unit/**/*.test.js\"",
81
- "e2e-test": "npm run build && node --test --test-concurrency=1 --test-timeout=600000 \"build/test/functional/**/*.test.js\""
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\""
82
63
  },
83
- "peerDependencies": {
84
- "appium": "^3.0.0-rc.2"
64
+ "dependencies": {
65
+ "@appium/strongbox": "^1.0.0-rc.1",
66
+ "@colors/colors": "^1.6.0",
67
+ "appium-xcode": "^6.0.0",
68
+ "asyncbox": "^6.3.0",
69
+ "axios": "^1.16.0",
70
+ "portscanner": "^2.2.0",
71
+ "teen_process": "^4.0.4"
85
72
  },
86
73
  "devDependencies": {
87
74
  "@appium/docutils": "^2.5.0",
88
- "@appium/eslint-config-appium-ts": "^3.0.0",
89
- "@appium/tsconfig": "^1.0.0-rc.1",
75
+ "@appium/oxc-config": "^1.1.0",
76
+ "@appium/semantic-release-config": "^1.1.0",
77
+ "@appium/tsconfig": "^1.2.0",
90
78
  "@appium/types": "^1.0.0-rc.1",
91
- "@semantic-release/changelog": "^6.0.1",
92
- "@semantic-release/git": "^10.0.1",
93
79
  "@types/node": "^26.0.0",
94
80
  "@types/portscanner": "^2.1.1",
95
- "conventional-changelog-conventionalcommits": "^9.3.1",
96
- "prettier": "^3.0.3",
97
- "semantic-release": "^25.0.2",
98
- "typescript": "^6.0.2",
99
81
  "webdriverio": "^9.0.0"
100
82
  },
101
- "files": [
102
- "lib",
103
- "build/lib",
104
- "scripts",
105
- "WebDriverAgentMac/Scripts",
106
- "WebDriverAgentMac/Cartfile",
107
- "WebDriverAgentMac/Cartfile.resolved",
108
- "WebDriverAgentMac/WebDriverAgentLib",
109
- "WebDriverAgentMac/WebDriverAgentMac.xcodeproj",
110
- "WebDriverAgentMac/WebDriverAgentRunner",
111
- "WebDriverAgentMac/IntegrationTests",
112
- "WebDriverAgentMac/WebDriverAgent",
113
- "!.DS_Store",
114
- "CHANGELOG.md",
115
- "LICENSE",
116
- "npm-shrinkwrap.json"
117
- ]
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
+ }
118
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');