appium-xcuitest-driver 13.6.1 → 13.8.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.
Files changed (539) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/location.d.ts +4 -0
  3. package/build/lib/commands/location.d.ts.map +1 -1
  4. package/build/lib/commands/location.js +15 -2
  5. package/build/lib/commands/location.js.map +1 -1
  6. package/lib/commands/location.ts +15 -2
  7. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.d.ts +6 -0
  8. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.d.ts.map +1 -1
  9. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js +64 -7
  10. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js.map +1 -1
  11. package/node_modules/@appium/base-driver/build/lib/basedriver/device-settings.d.ts.map +1 -1
  12. package/node_modules/@appium/base-driver/build/lib/basedriver/device-settings.js +10 -1
  13. package/node_modules/@appium/base-driver/build/lib/basedriver/device-settings.js.map +1 -1
  14. package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi.ts +76 -7
  15. package/node_modules/@appium/base-driver/lib/basedriver/device-settings.ts +14 -2
  16. package/node_modules/@appium/base-driver/package.json +6 -6
  17. package/node_modules/@appium/coresim/CHANGELOG.md +7 -0
  18. package/node_modules/@appium/coresim/binding.gyp +1 -0
  19. package/node_modules/@appium/coresim/lib/src/commands/interaction.d.ts +7 -2
  20. package/node_modules/@appium/coresim/lib/src/commands/interaction.d.ts.map +1 -1
  21. package/node_modules/@appium/coresim/lib/src/commands/interaction.js +7 -2
  22. package/node_modules/@appium/coresim/lib/src/commands/interaction.js.map +1 -1
  23. package/node_modules/@appium/coresim/lib/src/types.d.ts +1 -1
  24. package/node_modules/@appium/coresim/lib/src/types.d.ts.map +1 -1
  25. package/node_modules/@appium/coresim/package.json +2 -2
  26. package/node_modules/@appium/coresim/prebuilds/darwin-arm64/@appium+coresim.node +0 -0
  27. package/node_modules/@appium/coresim/src/commands/interaction.ts +8 -2
  28. package/node_modules/@appium/coresim/src/coresim.mm +32 -4
  29. package/node_modules/@appium/coresim/src/native/sim_location.h +22 -0
  30. package/node_modules/@appium/coresim/src/native/sim_location.mm +165 -0
  31. package/node_modules/@appium/coresim/src/types.ts +1 -1
  32. package/node_modules/@appium/support/build/lib/console.d.ts +3 -1
  33. package/node_modules/@appium/support/build/lib/console.d.ts.map +1 -1
  34. package/node_modules/@appium/support/build/lib/console.js.map +1 -1
  35. package/node_modules/@appium/support/build/lib/index.d.ts +30 -30
  36. package/node_modules/@appium/support/build/lib/internal/move-operation.d.ts.map +1 -1
  37. package/node_modules/@appium/support/build/lib/internal/move-operation.js +7 -6
  38. package/node_modules/@appium/support/build/lib/internal/move-operation.js.map +1 -1
  39. package/node_modules/@appium/support/lib/console.ts +6 -4
  40. package/node_modules/@appium/support/lib/internal/move-operation.ts +6 -5
  41. package/node_modules/@appium/support/package.json +8 -7
  42. package/node_modules/@types/node/README.md +1 -1
  43. package/node_modules/@types/node/crypto.d.ts +3 -3
  44. package/node_modules/@types/node/package.json +2 -2
  45. package/node_modules/@types/node/test.d.ts +4 -0
  46. package/node_modules/@types/node/url.d.ts +2 -0
  47. package/node_modules/@types/node/util.d.ts +1 -1
  48. package/node_modules/@types/node/web-globals/encoding.d.ts +5 -2
  49. package/node_modules/appium-ios-remotexpc/CHANGELOG.md +28 -0
  50. package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-service.d.ts.map +1 -1
  51. package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-service.js +4 -2
  52. package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-service.js.map +1 -1
  53. package/node_modules/appium-ios-remotexpc/build/src/lib/port-forwarding/connectors.d.ts.map +1 -1
  54. package/node_modules/appium-ios-remotexpc/build/src/lib/port-forwarding/connectors.js +6 -3
  55. package/node_modules/appium-ios-remotexpc/build/src/lib/port-forwarding/connectors.js.map +1 -1
  56. package/node_modules/appium-ios-remotexpc/build/src/lib/usbmux/index.d.ts.map +1 -1
  57. package/node_modules/appium-ios-remotexpc/build/src/lib/usbmux/index.js +9 -7
  58. package/node_modules/appium-ios-remotexpc/build/src/lib/usbmux/index.js.map +1 -1
  59. package/node_modules/appium-ios-remotexpc/build/src/services/ios/accessibility-audit/dtx-transport.d.ts +1 -1
  60. package/node_modules/appium-ios-remotexpc/build/src/services/ios/accessibility-audit/dtx-transport.d.ts.map +1 -1
  61. package/node_modules/appium-ios-remotexpc/build/src/services/ios/accessibility-audit/dtx-transport.js +3 -1
  62. package/node_modules/appium-ios-remotexpc/build/src/services/ios/accessibility-audit/dtx-transport.js.map +1 -1
  63. package/node_modules/appium-ios-remotexpc/build/src/services/ios/accessibility-audit/index.d.ts +1 -1
  64. package/node_modules/appium-ios-remotexpc/build/src/services/ios/accessibility-audit/index.d.ts.map +1 -1
  65. package/node_modules/appium-ios-remotexpc/build/src/services/ios/accessibility-audit/index.js +1 -1
  66. package/node_modules/appium-ios-remotexpc/build/src/services/ios/accessibility-audit/index.js.map +1 -1
  67. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/codec.d.ts +2 -1
  68. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/codec.d.ts.map +1 -1
  69. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/codec.js +7 -9
  70. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/codec.js.map +1 -1
  71. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/constants.d.ts +1 -0
  72. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/constants.d.ts.map +1 -1
  73. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/constants.js +2 -0
  74. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/constants.js.map +1 -1
  75. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/index.d.ts.map +1 -1
  76. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/index.js +3 -3
  77. package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/index.js.map +1 -1
  78. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/dtx-message.d.ts +12 -6
  79. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/dtx-message.d.ts.map +1 -1
  80. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/dtx-message.js.map +1 -1
  81. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/index.d.ts +2 -2
  82. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/index.d.ts.map +1 -1
  83. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/index.js +8 -4
  84. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/index.js.map +1 -1
  85. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/condition-inducer.d.ts.map +1 -1
  86. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/condition-inducer.js +2 -1
  87. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/condition-inducer.js.map +1 -1
  88. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/device-info.js.map +1 -1
  89. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/process-control.js.map +1 -1
  90. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-decoder.d.ts +11 -4
  91. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-decoder.d.ts.map +1 -1
  92. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-decoder.js +13 -13
  93. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-decoder.js.map +1 -1
  94. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-encoder.d.ts +5 -5
  95. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-encoder.d.ts.map +1 -1
  96. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-encoder.js.map +1 -1
  97. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/utils.d.ts +16 -11
  98. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/utils.d.ts.map +1 -1
  99. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/utils.js +1 -1
  100. package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/utils.js.map +1 -1
  101. package/node_modules/appium-ios-remotexpc/build/src/services/ios/notification-proxy/index.d.ts.map +1 -1
  102. package/node_modules/appium-ios-remotexpc/build/src/services/ios/notification-proxy/index.js +7 -4
  103. package/node_modules/appium-ios-remotexpc/build/src/services/ios/notification-proxy/index.js.map +1 -1
  104. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/index.d.ts +3 -3
  105. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/index.d.ts.map +1 -1
  106. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/index.js +8 -4
  107. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/index.js.map +1 -1
  108. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/testmanagerd-encoder.d.ts +1 -1
  109. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/testmanagerd-encoder.d.ts.map +1 -1
  110. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/testmanagerd-encoder.js +3 -2
  111. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/testmanagerd-encoder.js.map +1 -1
  112. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctest-attachment.js.map +1 -1
  113. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctest-common.d.ts +2 -2
  114. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctest-common.d.ts.map +1 -1
  115. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctest-common.js +3 -2
  116. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctest-common.js.map +1 -1
  117. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctestconfiguration.d.ts +1 -1
  118. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctestconfiguration.d.ts.map +1 -1
  119. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctestconfiguration.js +2 -1
  120. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xctestconfiguration.js.map +1 -1
  121. package/node_modules/appium-ios-remotexpc/build/src/services/ios/testmanagerd/xcuitest.js.map +1 -1
  122. package/node_modules/appium-ios-remotexpc/build/src/services/ios/zipconduit/index.d.ts.map +1 -1
  123. package/node_modules/appium-ios-remotexpc/build/src/services/ios/zipconduit/index.js +14 -5
  124. package/node_modules/appium-ios-remotexpc/build/src/services/ios/zipconduit/index.js.map +1 -1
  125. package/node_modules/appium-ios-remotexpc/package.json +2 -2
  126. package/node_modules/appium-ios-remotexpc/src/lib/plist/plist-service.ts +5 -2
  127. package/node_modules/appium-ios-remotexpc/src/lib/port-forwarding/connectors.ts +15 -3
  128. package/node_modules/appium-ios-remotexpc/src/lib/usbmux/index.ts +10 -7
  129. package/node_modules/appium-ios-remotexpc/src/services/ios/accessibility-audit/dtx-transport.ts +5 -2
  130. package/node_modules/appium-ios-remotexpc/src/services/ios/accessibility-audit/index.ts +2 -2
  131. package/node_modules/appium-ios-remotexpc/src/services/ios/afc/codec.ts +7 -9
  132. package/node_modules/appium-ios-remotexpc/src/services/ios/afc/constants.ts +3 -0
  133. package/node_modules/appium-ios-remotexpc/src/services/ios/afc/index.ts +3 -3
  134. package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/dtx-message.ts +6 -6
  135. package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/index.ts +24 -20
  136. package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/instruments/condition-inducer.ts +3 -2
  137. package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/instruments/device-info.ts +1 -1
  138. package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/instruments/process-control.ts +1 -1
  139. package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/nskeyedarchiver-decoder.ts +39 -29
  140. package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/nskeyedarchiver-encoder.ts +6 -6
  141. package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/utils.ts +12 -12
  142. package/node_modules/appium-ios-remotexpc/src/services/ios/notification-proxy/index.ts +8 -4
  143. package/node_modules/appium-ios-remotexpc/src/services/ios/testmanagerd/index.ts +31 -27
  144. package/node_modules/appium-ios-remotexpc/src/services/ios/testmanagerd/testmanagerd-encoder.ts +6 -5
  145. package/node_modules/appium-ios-remotexpc/src/services/ios/testmanagerd/xctest-attachment.ts +1 -1
  146. package/node_modules/appium-ios-remotexpc/src/services/ios/testmanagerd/xctest-common.ts +7 -6
  147. package/node_modules/appium-ios-remotexpc/src/services/ios/testmanagerd/xctestconfiguration.ts +9 -7
  148. package/node_modules/appium-ios-remotexpc/src/services/ios/testmanagerd/xcuitest.ts +2 -2
  149. package/node_modules/appium-ios-remotexpc/src/services/ios/zipconduit/index.ts +13 -5
  150. package/node_modules/appium-ios-simulator/CHANGELOG.md +7 -0
  151. package/node_modules/appium-ios-simulator/build/lib/extensions/geolocation.d.ts +4 -1
  152. package/node_modules/appium-ios-simulator/build/lib/extensions/geolocation.d.ts.map +1 -1
  153. package/node_modules/appium-ios-simulator/build/lib/extensions/geolocation.js +14 -2
  154. package/node_modules/appium-ios-simulator/build/lib/extensions/geolocation.js.map +1 -1
  155. package/node_modules/appium-ios-simulator/build/lib/types.d.ts +1 -1
  156. package/node_modules/appium-ios-simulator/build/lib/types.d.ts.map +1 -1
  157. package/node_modules/appium-ios-simulator/lib/extensions/geolocation.ts +21 -1
  158. package/node_modules/appium-ios-simulator/lib/types.ts +5 -1
  159. package/node_modules/appium-ios-simulator/package.json +3 -3
  160. package/node_modules/appium-remote-debugger/CHANGELOG.md +40 -0
  161. package/node_modules/appium-remote-debugger/package.json +4 -4
  162. package/node_modules/appium-webdriveragent/CHANGELOG.md +45 -0
  163. package/node_modules/appium-webdriveragent/Scripts/build.sh +112 -15
  164. package/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj/project.pbxproj +18 -6
  165. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m +12 -7
  166. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIElement+FBClassChain.h +52 -37
  167. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIElement+FBClassChain.m +188 -19
  168. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIElement+FBUtilities.m +17 -6
  169. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIElement+FBWebDriverAttributes.m +12 -12
  170. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIElementQuery+FBHelpers.h +9 -0
  171. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Commands/FBElementCommands.m +25 -23
  172. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Info.plist +2 -2
  173. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Routing/FBXCElementSnapshot.h +1 -0
  174. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBClassChainQueryParser.h +34 -1
  175. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBClassChainQueryParser.m +307 -463
  176. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBConfiguration.h +9 -11
  177. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBDisplayGeometry.h +25 -0
  178. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBDisplayGeometry.m +349 -0
  179. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBGestureCoordinateContext.h +3 -0
  180. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBGestureCoordinateContext.m +28 -11
  181. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBScreen.h +5 -0
  182. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBScreen.m +26 -0
  183. package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBXPath.m +23 -6
  184. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBAlertTests.m +9 -0
  185. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBAutoAlertsHandlerTests.m +8 -8
  186. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBConfigurationTests.m +13 -7
  187. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBDisplayGestureTests.m +24 -0
  188. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBElementSwipingTests.m +16 -6
  189. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBForceTouchTests.m +7 -15
  190. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBIntegrationTestCase.h +14 -0
  191. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBIntegrationTestCase.m +10 -0
  192. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBKeyboardTests.m +6 -0
  193. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBPasteboardTests.m +6 -3
  194. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBSafariAlertTests.m +5 -4
  195. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBScreenTests.m +209 -107
  196. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBScrollingTests.m +1 -11
  197. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBSessionIntegrationTests.m +8 -13
  198. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBTapTest.m +44 -51
  199. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBVoiceOverTests.m +7 -0
  200. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/XCUIApplicationHelperTests.m +31 -1
  201. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/XCUIDeviceHelperTests.m +12 -1
  202. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/XCUIDeviceRotationTests.m +89 -91
  203. package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/XCUIElementFBFindTests.m +90 -0
  204. package/node_modules/appium-webdriveragent/WebDriverAgentTests/UnitTests/FBClassChainTests.m +467 -0
  205. package/node_modules/appium-webdriveragent/package.json +3 -3
  206. package/node_modules/bare-fs/binding.c +192 -79
  207. package/node_modules/bare-fs/index.js +22 -8
  208. package/node_modules/bare-fs/package.json +1 -1
  209. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  210. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  211. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  212. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  213. package/node_modules/brace-expansion/README.md +3 -0
  214. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +1 -0
  215. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
  216. package/node_modules/brace-expansion/dist/commonjs/index.js +1 -0
  217. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
  218. package/node_modules/brace-expansion/dist/esm/index.d.ts +1 -0
  219. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
  220. package/node_modules/brace-expansion/dist/esm/index.js +1 -0
  221. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
  222. package/node_modules/brace-expansion/package.json +1 -1
  223. package/node_modules/path-to-regexp/Readme.md +1 -7
  224. package/node_modules/path-to-regexp/dist/index.d.ts +7 -12
  225. package/node_modules/path-to-regexp/dist/index.js +99 -99
  226. package/node_modules/path-to-regexp/dist/index.js.map +1 -1
  227. package/node_modules/path-to-regexp/package.json +9 -8
  228. package/node_modules/tar-stream/extract.js +27 -6
  229. package/node_modules/tar-stream/headers.js +4 -4
  230. package/node_modules/tar-stream/pack.js +1 -1
  231. package/node_modules/tar-stream/package.json +1 -1
  232. package/package.json +5 -5
  233. package/node_modules/@appium/base-driver/node_modules/asyncbox/LICENSE +0 -203
  234. package/node_modules/@appium/base-driver/node_modules/asyncbox/README.md +0 -272
  235. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts +0 -9
  236. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +0 -1
  237. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncfilter.js +0 -39
  238. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +0 -1
  239. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts +0 -9
  240. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +0 -1
  241. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncmap.js +0 -30
  242. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +0 -1
  243. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/errors.d.ts +0 -27
  244. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +0 -1
  245. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/errors.js +0 -55
  246. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/errors.js.map +0 -1
  247. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/index.d.ts +0 -12
  248. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +0 -1
  249. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/index.js +0 -28
  250. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/index.js.map +0 -1
  251. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +0 -3
  252. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +0 -1
  253. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/limit-function.js +0 -15
  254. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +0 -1
  255. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/lock.d.ts +0 -74
  256. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +0 -1
  257. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/lock.js +0 -296
  258. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/lock.js.map +0 -1
  259. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts +0 -15
  260. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +0 -1
  261. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/long-sleep.js +0 -36
  262. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +0 -1
  263. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/retry.d.ts +0 -17
  264. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +0 -1
  265. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/retry.js +0 -57
  266. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/retry.js.map +0 -1
  267. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/sleep.d.ts +0 -20
  268. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +0 -1
  269. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/sleep.js +0 -61
  270. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/sleep.js.map +0 -1
  271. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  272. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  273. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  274. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  275. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts +0 -18
  276. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +0 -1
  277. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js +0 -51
  278. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +0 -1
  279. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts +0 -16
  280. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +0 -1
  281. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/with-timeout.js +0 -45
  282. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +0 -1
  283. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/package.json +0 -3
  284. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +0 -9
  285. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +0 -1
  286. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncfilter.js +0 -36
  287. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +0 -1
  288. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts +0 -9
  289. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +0 -1
  290. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncmap.js +0 -27
  291. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +0 -1
  292. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/errors.d.ts +0 -27
  293. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +0 -1
  294. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/errors.js +0 -46
  295. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/errors.js.map +0 -1
  296. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/index.d.ts +0 -12
  297. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/index.d.ts.map +0 -1
  298. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/index.js +0 -10
  299. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/index.js.map +0 -1
  300. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +0 -3
  301. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +0 -1
  302. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/limit-function.js +0 -12
  303. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/limit-function.js.map +0 -1
  304. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/lock.d.ts +0 -74
  305. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +0 -1
  306. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/lock.js +0 -292
  307. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/lock.js.map +0 -1
  308. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +0 -15
  309. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +0 -1
  310. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/long-sleep.js +0 -33
  311. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +0 -1
  312. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/retry.d.ts +0 -17
  313. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +0 -1
  314. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/retry.js +0 -53
  315. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/retry.js.map +0 -1
  316. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/sleep.d.ts +0 -20
  317. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +0 -1
  318. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/sleep.js +0 -58
  319. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/sleep.js.map +0 -1
  320. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  321. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  322. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  323. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  324. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +0 -18
  325. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +0 -1
  326. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/wait-for-condition.js +0 -48
  327. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +0 -1
  328. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts +0 -16
  329. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +0 -1
  330. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/with-timeout.js +0 -42
  331. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +0 -1
  332. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/package.json +0 -3
  333. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/asyncfilter.ts +0 -42
  334. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/asyncmap.ts +0 -33
  335. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/errors.ts +0 -51
  336. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/index.ts +0 -28
  337. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/limit-function.ts +0 -18
  338. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/lock.ts +0 -362
  339. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/long-sleep.ts +0 -38
  340. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/retry.ts +0 -61
  341. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/sleep.ts +0 -79
  342. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/types.ts +0 -88
  343. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/wait-for-condition.ts +0 -52
  344. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/with-timeout.ts +0 -43
  345. package/node_modules/@appium/base-driver/node_modules/asyncbox/package.json +0 -74
  346. package/node_modules/@appium/base-driver/node_modules/p-limit/index.d.ts +0 -138
  347. package/node_modules/@appium/base-driver/node_modules/p-limit/index.js +0 -148
  348. package/node_modules/@appium/base-driver/node_modules/p-limit/license +0 -9
  349. package/node_modules/@appium/base-driver/node_modules/p-limit/package.json +0 -58
  350. package/node_modules/@appium/base-driver/node_modules/p-limit/readme.md +0 -183
  351. package/node_modules/@appium/support/node_modules/asyncbox/LICENSE +0 -203
  352. package/node_modules/@appium/support/node_modules/asyncbox/README.md +0 -272
  353. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts +0 -9
  354. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +0 -1
  355. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncfilter.js +0 -39
  356. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +0 -1
  357. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts +0 -9
  358. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +0 -1
  359. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncmap.js +0 -30
  360. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +0 -1
  361. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.d.ts +0 -27
  362. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +0 -1
  363. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.js +0 -55
  364. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.js.map +0 -1
  365. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.d.ts +0 -12
  366. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +0 -1
  367. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.js +0 -28
  368. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.js.map +0 -1
  369. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +0 -3
  370. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +0 -1
  371. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.js +0 -15
  372. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +0 -1
  373. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/lock.d.ts +0 -74
  374. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +0 -1
  375. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/lock.js +0 -296
  376. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/lock.js.map +0 -1
  377. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts +0 -15
  378. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +0 -1
  379. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.js +0 -36
  380. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +0 -1
  381. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.d.ts +0 -17
  382. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +0 -1
  383. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.js +0 -57
  384. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.js.map +0 -1
  385. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/sleep.d.ts +0 -20
  386. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +0 -1
  387. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/sleep.js +0 -61
  388. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/sleep.js.map +0 -1
  389. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  390. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  391. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  392. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  393. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts +0 -18
  394. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +0 -1
  395. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js +0 -51
  396. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +0 -1
  397. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts +0 -16
  398. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +0 -1
  399. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/with-timeout.js +0 -45
  400. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +0 -1
  401. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +0 -3
  402. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +0 -9
  403. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +0 -1
  404. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.js +0 -36
  405. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +0 -1
  406. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts +0 -9
  407. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +0 -1
  408. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncmap.js +0 -27
  409. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +0 -1
  410. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/errors.d.ts +0 -27
  411. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +0 -1
  412. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/errors.js +0 -46
  413. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/errors.js.map +0 -1
  414. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.d.ts +0 -12
  415. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.d.ts.map +0 -1
  416. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.js +0 -10
  417. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.js.map +0 -1
  418. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +0 -3
  419. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +0 -1
  420. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.js +0 -12
  421. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.js.map +0 -1
  422. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/lock.d.ts +0 -74
  423. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +0 -1
  424. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/lock.js +0 -292
  425. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/lock.js.map +0 -1
  426. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +0 -15
  427. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +0 -1
  428. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.js +0 -33
  429. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +0 -1
  430. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/retry.d.ts +0 -17
  431. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +0 -1
  432. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/retry.js +0 -53
  433. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/retry.js.map +0 -1
  434. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/sleep.d.ts +0 -20
  435. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +0 -1
  436. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/sleep.js +0 -58
  437. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/sleep.js.map +0 -1
  438. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  439. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  440. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  441. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  442. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +0 -18
  443. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +0 -1
  444. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.js +0 -48
  445. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +0 -1
  446. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts +0 -16
  447. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +0 -1
  448. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/with-timeout.js +0 -42
  449. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +0 -1
  450. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +0 -3
  451. package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncfilter.ts +0 -42
  452. package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncmap.ts +0 -33
  453. package/node_modules/@appium/support/node_modules/asyncbox/lib/errors.ts +0 -51
  454. package/node_modules/@appium/support/node_modules/asyncbox/lib/index.ts +0 -28
  455. package/node_modules/@appium/support/node_modules/asyncbox/lib/limit-function.ts +0 -18
  456. package/node_modules/@appium/support/node_modules/asyncbox/lib/lock.ts +0 -362
  457. package/node_modules/@appium/support/node_modules/asyncbox/lib/long-sleep.ts +0 -38
  458. package/node_modules/@appium/support/node_modules/asyncbox/lib/retry.ts +0 -61
  459. package/node_modules/@appium/support/node_modules/asyncbox/lib/sleep.ts +0 -79
  460. package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +0 -88
  461. package/node_modules/@appium/support/node_modules/asyncbox/lib/wait-for-condition.ts +0 -52
  462. package/node_modules/@appium/support/node_modules/asyncbox/lib/with-timeout.ts +0 -43
  463. package/node_modules/@appium/support/node_modules/asyncbox/package.json +0 -74
  464. package/node_modules/@appium/support/node_modules/p-limit/index.d.ts +0 -138
  465. package/node_modules/@appium/support/node_modules/p-limit/index.js +0 -148
  466. package/node_modules/@appium/support/node_modules/p-limit/license +0 -9
  467. package/node_modules/@appium/support/node_modules/p-limit/package.json +0 -58
  468. package/node_modules/@appium/support/node_modules/p-limit/readme.md +0 -183
  469. package/node_modules/@appium/support/node_modules/teen_process/CHANGELOG.md +0 -1122
  470. package/node_modules/@appium/support/node_modules/teen_process/LICENSE +0 -201
  471. package/node_modules/@appium/support/node_modules/teen_process/README.md +0 -270
  472. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/circular-buffer.d.ts +0 -13
  473. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/circular-buffer.d.ts.map +0 -1
  474. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/circular-buffer.js +0 -57
  475. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/circular-buffer.js.map +0 -1
  476. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/exec.d.ts +0 -33
  477. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/exec.d.ts.map +0 -1
  478. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/exec.js +0 -154
  479. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/exec.js.map +0 -1
  480. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/helpers.d.ts +0 -2
  481. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/helpers.d.ts.map +0 -1
  482. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/helpers.js +0 -47
  483. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/helpers.js.map +0 -1
  484. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/index.d.ts +0 -5
  485. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/index.d.ts.map +0 -1
  486. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/index.js +0 -10
  487. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/index.js.map +0 -1
  488. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/subprocess.d.ts +0 -125
  489. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/subprocess.d.ts.map +0 -1
  490. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/subprocess.js +0 -311
  491. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/subprocess.js.map +0 -1
  492. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/types.d.ts +0 -71
  493. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/types.d.ts.map +0 -1
  494. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/types.js +0 -3
  495. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/lib/types.js.map +0 -1
  496. package/node_modules/@appium/support/node_modules/teen_process/build/cjs/package.json +0 -3
  497. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/circular-buffer.d.ts +0 -13
  498. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/circular-buffer.d.ts.map +0 -1
  499. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/circular-buffer.js +0 -53
  500. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/circular-buffer.js.map +0 -1
  501. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/exec.d.ts +0 -33
  502. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/exec.d.ts.map +0 -1
  503. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/exec.js +0 -151
  504. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/exec.js.map +0 -1
  505. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/helpers.d.ts +0 -2
  506. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/helpers.d.ts.map +0 -1
  507. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/helpers.js +0 -41
  508. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/helpers.js.map +0 -1
  509. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/index.d.ts +0 -5
  510. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/index.d.ts.map +0 -1
  511. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/index.js +0 -4
  512. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/index.js.map +0 -1
  513. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/subprocess.d.ts +0 -125
  514. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/subprocess.d.ts.map +0 -1
  515. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/subprocess.js +0 -307
  516. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/subprocess.js.map +0 -1
  517. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/types.d.ts +0 -71
  518. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/types.d.ts.map +0 -1
  519. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/types.js +0 -2
  520. package/node_modules/@appium/support/node_modules/teen_process/build/esm/lib/types.js.map +0 -1
  521. package/node_modules/@appium/support/node_modules/teen_process/build/esm/package.json +0 -3
  522. package/node_modules/@appium/support/node_modules/teen_process/lib/circular-buffer.ts +0 -60
  523. package/node_modules/@appium/support/node_modules/teen_process/lib/exec.ts +0 -176
  524. package/node_modules/@appium/support/node_modules/teen_process/lib/helpers.ts +0 -45
  525. package/node_modules/@appium/support/node_modules/teen_process/lib/index.ts +0 -4
  526. package/node_modules/@appium/support/node_modules/teen_process/lib/subprocess.ts +0 -358
  527. package/node_modules/@appium/support/node_modules/teen_process/lib/types.ts +0 -83
  528. package/node_modules/@appium/support/node_modules/teen_process/package.json +0 -81
  529. package/node_modules/appium-ios-remotexpc/node_modules/path-to-regexp/LICENSE +0 -21
  530. package/node_modules/appium-ios-remotexpc/node_modules/path-to-regexp/Readme.md +0 -218
  531. package/node_modules/appium-ios-remotexpc/node_modules/path-to-regexp/dist/index.d.ts +0 -142
  532. package/node_modules/appium-ios-remotexpc/node_modules/path-to-regexp/dist/index.js +0 -431
  533. package/node_modules/appium-ios-remotexpc/node_modules/path-to-regexp/dist/index.js.map +0 -1
  534. package/node_modules/appium-ios-remotexpc/node_modules/path-to-regexp/package.json +0 -65
  535. package/node_modules/yocto-queue/index.d.ts +0 -75
  536. package/node_modules/yocto-queue/index.js +0 -90
  537. package/node_modules/yocto-queue/license +0 -9
  538. package/node_modules/yocto-queue/package.json +0 -48
  539. package/node_modules/yocto-queue/readme.md +0 -80
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [13.8.0](https://github.com/appium/appium-xcuitest-driver/compare/v13.7.0...v13.8.0) (2026-11-25)
2
+
3
+ ### Features
4
+
5
+ * support altitude in setGeoLocation on simulators ([#3163](https://github.com/appium/appium-xcuitest-driver/issues/3163)) ([cd86a60](https://github.com/appium/appium-xcuitest-driver/commit/cd86a60cebc11093c54dea7d9b01da8625683cdf))
6
+
7
+ ## [13.7.0](https://github.com/appium/appium-xcuitest-driver/compare/v13.6.1...v13.7.0) (2026-11-24)
8
+
9
+ ### Features
10
+
11
+ * bump appium-webdriveragent to 17.1.0 and document class chain axes ([#3162](https://github.com/appium/appium-xcuitest-driver/issues/3162)) ([78eec36](https://github.com/appium/appium-xcuitest-driver/commit/78eec369f45a5dedfad8845154fdc8968f93aa6c))
12
+
1
13
  ## [13.6.1](https://github.com/appium/appium-xcuitest-driver/compare/v13.6.0...v13.6.1) (2026-11-21)
2
14
 
3
15
  ### Bug Fixes
@@ -29,7 +29,11 @@ export declare function getGeoLocation(this: XCUITestDriver): Promise<LocationWi
29
29
  * iOS 17 or newer, this uses `mobile:setSimulatedLocation` (XCTest session simulated location).
30
30
  * Older real devices are not supported.
31
31
  *
32
+ * The optional `altitude` is only applied on simulators. Real devices ignore it, and the
33
+ * altitude they report stays zero.
34
+ *
32
35
  * @param location - Must include `latitude` and `longitude` (each coerced with `Number()`).
36
+ * May include `altitude` in meters above sea level.
33
37
  * @throws {errors.NotImplementedError} When the target is a real device below iOS/tvOS 17.
34
38
  */
35
39
  export declare function setGeoLocation(this: XCUITestDriver, location: Partial<LocationWithAltitude>): Promise<LocationWithAltitude>;
@@ -1 +1 @@
1
- {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../lib/commands/location.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAGjD,OAAO,KAAK,EAAC,oBAAoB,EAAkB,MAAM,YAAY,CAAC;AAEtE,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,cAAc;QACtB,cAAc,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;QAC9F,cAAc,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;QAC9F,0BAA0B,CACxB,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,GACrD,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;KAClD;C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ACH,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAQpF"}
@@ -48,7 +48,11 @@ export async function getGeoLocation() {
48
48
  * iOS 17 or newer, this uses `mobile:setSimulatedLocation` (XCTest session simulated location).
49
49
  * Older real devices are not supported.
50
50
  *
51
+ * The optional `altitude` is only applied on simulators. Real devices ignore it, and the
52
+ * altitude they report stays zero.
53
+ *
51
54
  * @param location - Must include `latitude` and `longitude` (each coerced with `Number()`).
55
+ * May include `altitude` in meters above sea level.
52
56
  * @throws {errors.NotImplementedError} When the target is a real device below iOS/tvOS 17.
53
57
  */
54
58
  export async function setGeoLocation(location) {
@@ -61,11 +65,20 @@ export async function setGeoLocation(location) {
61
65
  }
62
66
  }
63
67
  const [latitudeNumber, longitudeNumber] = [Number(location.latitude), Number(location.longitude)];
68
+ // A blank string counts as no altitude, as `Number()` would turn it into 0
69
+ const hasAltitude = util.hasValue(location.altitude) && String(location.altitude).trim() !== '';
64
70
  if (this.isSimulator()) {
65
- await this.device.setGeolocation(`${latitudeNumber}`, `${longitudeNumber}`);
66
- return { latitude: latitudeNumber, longitude: longitudeNumber, altitude: 0 };
71
+ if (hasAltitude && !Number.isFinite(Number(location.altitude))) {
72
+ throw new errors.InvalidArgumentError(`altitude must be a number, got '${location.altitude}' instead`);
73
+ }
74
+ const altitudeNumber = hasAltitude ? Number(location.altitude) : undefined;
75
+ await this.device.setGeolocation(`${latitudeNumber}`, `${longitudeNumber}`, altitudeNumber);
76
+ return { latitude: latitudeNumber, longitude: longitudeNumber, altitude: altitudeNumber ?? 0 };
67
77
  }
68
78
  if (supportsApiLevel17(this.opts.platformVersion, this.opts.platformName)) {
79
+ if (hasAltitude) {
80
+ this.log.warn(`The altitude value is only supported on simulators, thus it is going to be ignored`);
81
+ }
69
82
  this.log.info(`Proxying to mobile:setSimulatedLocation method for iOS 17+`);
70
83
  await this.mobileSetSimulatedLocation(latitudeNumber, longitudeNumber);
71
84
  }
@@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EAAE,cAAc,IAAI,CAAC,EAAC,CAAC;IAC/F,CAAC;IAED,IAAI,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QAC1E,IAAI,WAAW,EAAE,CAAC;YAChB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,oFAAoF,CAAC,CAAC;QACtG,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,4DAA4D,CAAC,CAAC;QAC5E,MAAM,IAAI,CAAC,0BAA0B,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;IACzE,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,MAAM,CAAC,mBAAmB,CAAC,wCAAwC,CAAC,CAAC;IACjF,CAAC;IAED,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,EAAC,CAAC;AAC7E,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B;IAC9C,IAAI,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QAC1E,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,8DAA8D,CAAC,CAAC;QAC9E,MAAM,IAAI,CAAC,4BAA4B,EAAE,CAAC;QAC1C,OAAO;IACT,CAAC;IAED,MAAM,IAAI,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC;AAClH,CAAC"}
@@ -77,7 +77,11 @@ export async function getGeoLocation(this: XCUITestDriver): Promise<LocationWith
77
77
  * iOS 17 or newer, this uses `mobile:setSimulatedLocation` (XCTest session simulated location).
78
78
  * Older real devices are not supported.
79
79
  *
80
+ * The optional `altitude` is only applied on simulators. Real devices ignore it, and the
81
+ * altitude they report stays zero.
82
+ *
80
83
  * @param location - Must include `latitude` and `longitude` (each coerced with `Number()`).
84
+ * May include `altitude` in meters above sea level.
81
85
  * @throws {errors.NotImplementedError} When the target is a real device below iOS/tvOS 17.
82
86
  */
83
87
  export async function setGeoLocation(
@@ -95,13 +99,22 @@ export async function setGeoLocation(
95
99
  }
96
100
  }
97
101
  const [latitudeNumber, longitudeNumber] = [Number(location.latitude), Number(location.longitude)];
102
+ // A blank string counts as no altitude, as `Number()` would turn it into 0
103
+ const hasAltitude = util.hasValue(location.altitude) && String(location.altitude).trim() !== '';
98
104
 
99
105
  if (this.isSimulator()) {
100
- await (this.device as Simulator).setGeolocation(`${latitudeNumber}`, `${longitudeNumber}`);
101
- return {latitude: latitudeNumber, longitude: longitudeNumber, altitude: 0};
106
+ if (hasAltitude && !Number.isFinite(Number(location.altitude))) {
107
+ throw new errors.InvalidArgumentError(`altitude must be a number, got '${location.altitude}' instead`);
108
+ }
109
+ const altitudeNumber = hasAltitude ? Number(location.altitude) : undefined;
110
+ await (this.device as Simulator).setGeolocation(`${latitudeNumber}`, `${longitudeNumber}`, altitudeNumber);
111
+ return {latitude: latitudeNumber, longitude: longitudeNumber, altitude: altitudeNumber ?? 0};
102
112
  }
103
113
 
104
114
  if (supportsApiLevel17(this.opts.platformVersion, this.opts.platformName)) {
115
+ if (hasAltitude) {
116
+ this.log.warn(`The altitude value is only supported on simulators, thus it is going to be ignored`);
117
+ }
105
118
  this.log.info(`Proxying to mobile:setSimulatedLocation method for iOS 17+`);
106
119
  await this.mobileSetSimulatedLocation(latitudeNumber, longitudeNumber);
107
120
  } else {
@@ -3,6 +3,12 @@ import type { BaseDriver } from '../driver.js';
3
3
  type BidiSubscriptionDriver = {
4
4
  bidiEventSubs: Record<string, string[]>;
5
5
  };
6
+ /** The maximum number of subscriptions of a driver */
7
+ export declare const MAX_BIDI_SUBSCRIPTIONS = 100;
8
+ /** The maximum number of (event, context) pairs of all the subscriptions of a driver, and of items in a list */
9
+ export declare const MAX_BIDI_SUBSCRIPTION_ENTRIES = 1000;
10
+ /** The maximum length of an event name, a context or a subscription ID */
11
+ export declare const MAX_BIDI_NAME_LENGTH = 256;
6
12
  export declare function clearBidiSubscriptions(driver: BidiSubscriptionDriver): void;
7
13
  declare module '../driver.js' {
8
14
  interface BaseDriver<C extends Constraints> extends IBidiCommands {
@@ -1 +1 @@
1
- {"version":3,"file":"bidi.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/bidi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,EAAE,YAAY,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AAG5E,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAE7C,KAAK,sBAAsB,GAAG;IAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;CAAC,CAAC;AAKxE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAG3E;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,aAAa;KAAG;CACrE;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,WAAW,EACvD,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EACnB,MAAM,EAAE,MAAM,EAAE,EAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,EACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAC,CAAC,CAyBjC;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,CAAC,SAAS,WAAW,EACzD,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EACnB,MAAM,CAAC,EAAE,MAAM,EAAE,EACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,EACnB,aAAa,CAAC,EAAE,MAAM,EAAE,GACvB,OAA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EAAE,EACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,EACnB,aAAa,CAAC,EAAE,MAAM,EAAE,GACvB,OAAO,CAAC,IAAI,CAAC,CAmCf;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAQlG"}
@@ -2,6 +2,13 @@ import { util } from '@appium/support';
2
2
  import { errors } from '../../protocol/errors.js';
3
3
  // Keep each subscription separate: removing one ID must not remove overlapping subscriptions.
4
4
  const subscriptionsByDriver = new WeakMap();
5
+ // The subscriptions are checked for every emitted event, so the state a client can create is bounded
6
+ /** The maximum number of subscriptions of a driver */
7
+ export const MAX_BIDI_SUBSCRIPTIONS = 100;
8
+ /** The maximum number of (event, context) pairs of all the subscriptions of a driver, and of items in a list */
9
+ export const MAX_BIDI_SUBSCRIPTION_ENTRIES = 1000;
10
+ /** The maximum length of an event name, a context or a subscription ID */
11
+ export const MAX_BIDI_NAME_LENGTH = 256;
5
12
  export function clearBidiSubscriptions(driver) {
6
13
  subscriptionsByDriver.delete(driver);
7
14
  driver.bidiEventSubs = {};
@@ -29,11 +36,21 @@ export async function bidiSubscribe(events, contexts, userContexts) {
29
36
  }
30
37
  contexts ??= [''];
31
38
  assertStringList(events, 'events');
32
- if (!Array.isArray(contexts) || contexts.some((context) => typeof context !== 'string')) {
33
- throw new errors.InvalidArgumentError('contexts must be an array of strings');
39
+ assertContexts(contexts);
40
+ const uniqueEvents = util.uniq(events);
41
+ const uniqueContexts = util.uniq(contexts);
42
+ const subscriptions = getSubscriptions(this);
43
+ const entries = uniqueEvents.length * Math.max(uniqueContexts.length, 1) + countEntries(subscriptions);
44
+ if (entries > MAX_BIDI_SUBSCRIPTION_ENTRIES) {
45
+ throw new errors.InvalidArgumentError(`The subscriptions cannot cover more than ${MAX_BIDI_SUBSCRIPTION_ENTRIES} combinations of an event ` +
46
+ `and a context, unsubscribe from some of them first`);
47
+ }
48
+ // nothing is changed unless the request is going to be accepted
49
+ if (subscriptions.size >= MAX_BIDI_SUBSCRIPTIONS && !releaseEmptySubscription(subscriptions)) {
50
+ throw new errors.InvalidArgumentError(`Cannot create more than ${MAX_BIDI_SUBSCRIPTIONS} subscriptions, unsubscribe from some of them first`);
34
51
  }
35
52
  const subscription = util.uuidV4();
36
- getSubscriptions(this).set(subscription, new Map(events.map((event) => [event, [...contexts]])));
53
+ subscriptions.set(subscription, new Map(uniqueEvents.map((event) => [event, [...uniqueContexts]])));
37
54
  refreshEventSubscriptions(this);
38
55
  return { subscription };
39
56
  }
@@ -49,12 +66,11 @@ export async function bidiUnsubscribe(events, contexts, subscriptions) {
49
66
  if (subscriptions === undefined) {
50
67
  const contextsToRemove = contexts === undefined ? [''] : contexts;
51
68
  assertStringList(events, 'events');
52
- if (!Array.isArray(contextsToRemove) || contextsToRemove.some((context) => typeof context !== 'string')) {
53
- throw new errors.InvalidArgumentError('contexts must be an array of strings');
54
- }
69
+ assertContexts(contextsToRemove);
70
+ const contextsToRemoveSet = new Set(contextsToRemove);
55
71
  for (const subscription of registered.values()) {
56
72
  for (const event of events) {
57
- const remaining = subscription.get(event)?.filter((context) => !contextsToRemove.includes(context));
73
+ const remaining = subscription.get(event)?.filter((context) => !contextsToRemoveSet.has(context));
58
74
  if (remaining?.length) {
59
75
  subscription.set(event, remaining);
60
76
  }
@@ -104,9 +120,50 @@ function getSubscriptions(driver) {
104
120
  return subscriptions;
105
121
  }
106
122
  function assertStringList(value, name) {
123
+ assertListSize(value, name);
107
124
  if (!Array.isArray(value) || !value.length || value.some((item) => typeof item !== 'string' || !item.length)) {
108
125
  throw new errors.InvalidArgumentError(`${name} must be a non-empty array of non-empty strings`);
109
126
  }
127
+ assertNameLengths(value, name);
128
+ }
129
+ function assertContexts(value) {
130
+ assertListSize(value, 'contexts');
131
+ if (!Array.isArray(value) || value.some((context) => typeof context !== 'string')) {
132
+ throw new errors.InvalidArgumentError('contexts must be an array of strings');
133
+ }
134
+ assertNameLengths(value, 'contexts');
135
+ }
136
+ // Checked before the items are scanned, so that an oversized list is rejected in constant time
137
+ function assertListSize(value, name) {
138
+ if (Array.isArray(value) && value.length > MAX_BIDI_SUBSCRIPTION_ENTRIES) {
139
+ throw new errors.InvalidArgumentError(`${name} must not have more than ${MAX_BIDI_SUBSCRIPTION_ENTRIES} items`);
140
+ }
141
+ }
142
+ function assertNameLengths(items, name) {
143
+ if (items.some((item) => item.length > MAX_BIDI_NAME_LENGTH)) {
144
+ throw new errors.InvalidArgumentError(`The items of ${name} must not be longer than ${MAX_BIDI_NAME_LENGTH} characters`);
145
+ }
146
+ }
147
+ // A subscription without contexts still keeps its event, so it counts as one entry
148
+ function countEntries(subscriptions) {
149
+ let count = 0;
150
+ for (const subscription of subscriptions.values()) {
151
+ for (const contexts of subscription.values()) {
152
+ count += Math.max(contexts.length, 1);
153
+ }
154
+ }
155
+ return count;
156
+ }
157
+ // The legacy unsubscribe by event names leaves the emptied subscriptions registered, so that their
158
+ // IDs stay valid. The oldest of them gives way when the limit is reached.
159
+ function releaseEmptySubscription(subscriptions) {
160
+ for (const [id, subscription] of subscriptions) {
161
+ if (!subscription.size) {
162
+ subscriptions.delete(id);
163
+ return true;
164
+ }
165
+ }
166
+ return false;
110
167
  }
111
168
  function refreshEventSubscriptions(driver) {
112
169
  const events = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"bidi.js","sourceRoot":"","sources":["../../../../lib/basedriver/commands/bidi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAGrC,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAKhD,8FAA8F;AAC9F,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAA8C,CAAC;AAExF,MAAM,UAAU,sBAAsB,CAAC,MAA8B;IACnE,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrC,MAAM,CAAC,aAAa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@@
1
- {"version":3,"file":"device-settings.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,eAAe,EAAE,sBAAsB,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAKzF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAmB,CAAC;AAElD;;GAEG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CAAE,YAAW,eAAe,CAAC,CAAC,CAAC;IAC9F,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC;IACvB,SAAS,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAEvD;;;;;OAKG;gBACS,eAAe,GAAE,CAAW,EAAE,gBAAgB,GAAE,sBAAsB,CAAC,CAAC,CAAkB;IAKtG;;;;OAIG;IACG,MAAM,CAAC,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B3C,WAAW,IAAI,CAAC;CAGjB"}
1
+ {"version":3,"file":"device-settings.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,eAAe,EAAE,sBAAsB,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAKzF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAmB,CAAC;AAElD;;GAEG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CAAE,YAAW,eAAe,CAAC,CAAC,CAAC;IAC9F,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC;IACvB,SAAS,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAEvD;;;;;OAKG;gBACS,eAAe,GAAE,CAAW,EAAE,gBAAgB,GAAE,sBAAsB,CAAC,CAAC,CAAkB;IAKtG;;;;OAIG;IACG,MAAM,CAAC,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAsC3C,WAAW,IAAI,CAAC;CAGjB"}
@@ -30,11 +30,20 @@ export class DeviceSettings {
30
30
  if (!util.isPlainObject(newSettings)) {
31
31
  throw new errors.InvalidArgumentError(`Settings update should be called with valid JSON. Got ` + `${JSON.stringify(newSettings)} instead`);
32
32
  }
33
+ // every key is validated up front so a rejected update is all-or-nothing:
34
+ // no part of the payload reaches the listener or the store. An own
35
+ // `__proto__` key (e.g. from JSON.parse) is the only hazard - assigning it
36
+ // rewrites the prototype of the settings object itself, while
37
+ // `constructor`/`prototype` as own keys are plain data properties
38
+ const keys = Object.keys(newSettings);
39
+ if (keys.includes('__proto__')) {
40
+ throw new errors.InvalidArgumentError(`Settings updates must not use the '__proto__' key, because assigning it would rewrite the prototype of the settings object`);
41
+ }
33
42
  if (node.getObjectSize({ ...this._settings, ...newSettings }) >= MAX_SETTINGS_SIZE) {
34
43
  throw new errors.InvalidArgumentError(`New settings cannot be applied, because the overall ` +
35
44
  `object size exceeds the allowed limit of ${util.toReadableSizeString(MAX_SETTINGS_SIZE)}`);
36
45
  }
37
- for (const prop in newSettings) {
46
+ for (const prop of keys) {
38
47
  if (this._settings[prop] !== undefined) {
39
48
  if (this._settings[prop] === newSettings[prop]) {
40
49
  log.debug(`The value of '${prop}' setting did not change. Skipping the update for it`);
@@ -1 +1 @@
1
- {"version":3,"file":"device-settings.js","sourceRoot":"","sources":["../../../lib/basedriver/device-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAC;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,QAAQ;AAE3D;;GAEG;AACH,MAAM,OAAO,cAAc;IACf,SAAS,CAAI;IACb,iBAAiB,CAA4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H,CAAC;QACJ,CAAC;QAED,IAAI,IAAI,CAAC,aAAa,CAAC,EAAC,GAAG,IAAI,CAAC,SAAS,EAAE,GAAG,WAAW,EAAC,CAAC,IAAI,iBAAiB,EAAE,CAAC;YACjF,MAAM,IAAI,MAAM,CAAC,oBAAoB,CACnC,sDAAsD;gBACpD,4CAA4C,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,CAC7F,CAAC;QACJ,CAAC;QAED,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;YACxB,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;gBACvC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC/C,GAAG,CAAC,KAAK,CAAC,iBAAiB,IAAI,sDAAsD,CAAC,CAAC;oBACvF,SAAS;gBACX,CAAC;YACH,CAAC;YACD,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAe,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;YACtF,IAAI,CAAC,SAAqC,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF"}
@@ -9,6 +9,14 @@ type BidiSubscriptionDriver = {bidiEventSubs: Record<string, string[]>};
9
9
  // Keep each subscription separate: removing one ID must not remove overlapping subscriptions.
10
10
  const subscriptionsByDriver = new WeakMap<object, Map<string, Map<string, string[]>>>();
11
11
 
12
+ // The subscriptions are checked for every emitted event, so the state a client can create is bounded
13
+ /** The maximum number of subscriptions of a driver */
14
+ export const MAX_BIDI_SUBSCRIPTIONS = 100;
15
+ /** The maximum number of (event, context) pairs of all the subscriptions of a driver, and of items in a list */
16
+ export const MAX_BIDI_SUBSCRIPTION_ENTRIES = 1000;
17
+ /** The maximum length of an event name, a context or a subscription ID */
18
+ export const MAX_BIDI_NAME_LENGTH = 256;
19
+
12
20
  export function clearBidiSubscriptions(driver: BidiSubscriptionDriver): void {
13
21
  subscriptionsByDriver.delete(driver);
14
22
  driver.bidiEventSubs = {};
@@ -48,11 +56,25 @@ export async function bidiSubscribe<C extends Constraints>(
48
56
  }
49
57
  contexts ??= [''];
50
58
  assertStringList(events, 'events');
51
- if (!Array.isArray(contexts) || contexts.some((context) => typeof context !== 'string')) {
52
- throw new errors.InvalidArgumentError('contexts must be an array of strings');
59
+ assertContexts(contexts);
60
+ const uniqueEvents = util.uniq(events);
61
+ const uniqueContexts = util.uniq(contexts);
62
+ const subscriptions = getSubscriptions(this);
63
+ const entries = uniqueEvents.length * Math.max(uniqueContexts.length, 1) + countEntries(subscriptions);
64
+ if (entries > MAX_BIDI_SUBSCRIPTION_ENTRIES) {
65
+ throw new errors.InvalidArgumentError(
66
+ `The subscriptions cannot cover more than ${MAX_BIDI_SUBSCRIPTION_ENTRIES} combinations of an event ` +
67
+ `and a context, unsubscribe from some of them first`,
68
+ );
69
+ }
70
+ // nothing is changed unless the request is going to be accepted
71
+ if (subscriptions.size >= MAX_BIDI_SUBSCRIPTIONS && !releaseEmptySubscription(subscriptions)) {
72
+ throw new errors.InvalidArgumentError(
73
+ `Cannot create more than ${MAX_BIDI_SUBSCRIPTIONS} subscriptions, unsubscribe from some of them first`,
74
+ );
53
75
  }
54
76
  const subscription = util.uuidV4();
55
- getSubscriptions(this).set(subscription, new Map(events.map((event) => [event, [...contexts]])));
77
+ subscriptions.set(subscription, new Map(uniqueEvents.map((event) => [event, [...uniqueContexts]])));
56
78
  refreshEventSubscriptions(this);
57
79
  return {subscription};
58
80
  }
@@ -74,12 +96,11 @@ export async function bidiUnsubscribe<C extends Constraints>(
74
96
  if (subscriptions === undefined) {
75
97
  const contextsToRemove = contexts === undefined ? [''] : contexts;
76
98
  assertStringList(events, 'events');
77
- if (!Array.isArray(contextsToRemove) || contextsToRemove.some((context) => typeof context !== 'string')) {
78
- throw new errors.InvalidArgumentError('contexts must be an array of strings');
79
- }
99
+ assertContexts(contextsToRemove);
100
+ const contextsToRemoveSet = new Set(contextsToRemove);
80
101
  for (const subscription of registered.values()) {
81
102
  for (const event of events) {
82
- const remaining = subscription.get(event)?.filter((context) => !contextsToRemove.includes(context));
103
+ const remaining = subscription.get(event)?.filter((context) => !contextsToRemoveSet.has(context));
83
104
  if (remaining?.length) {
84
105
  subscription.set(event, remaining);
85
106
  } else {
@@ -132,9 +153,57 @@ function getSubscriptions(driver: object): Map<string, Map<string, string[]>> {
132
153
  }
133
154
 
134
155
  function assertStringList(value: unknown, name: string): asserts value is string[] {
156
+ assertListSize(value, name);
135
157
  if (!Array.isArray(value) || !value.length || value.some((item) => typeof item !== 'string' || !item.length)) {
136
158
  throw new errors.InvalidArgumentError(`${name} must be a non-empty array of non-empty strings`);
137
159
  }
160
+ assertNameLengths(value, name);
161
+ }
162
+
163
+ function assertContexts(value: unknown): asserts value is string[] {
164
+ assertListSize(value, 'contexts');
165
+ if (!Array.isArray(value) || value.some((context) => typeof context !== 'string')) {
166
+ throw new errors.InvalidArgumentError('contexts must be an array of strings');
167
+ }
168
+ assertNameLengths(value, 'contexts');
169
+ }
170
+
171
+ // Checked before the items are scanned, so that an oversized list is rejected in constant time
172
+ function assertListSize(value: unknown, name: string): void {
173
+ if (Array.isArray(value) && value.length > MAX_BIDI_SUBSCRIPTION_ENTRIES) {
174
+ throw new errors.InvalidArgumentError(`${name} must not have more than ${MAX_BIDI_SUBSCRIPTION_ENTRIES} items`);
175
+ }
176
+ }
177
+
178
+ function assertNameLengths(items: string[], name: string): void {
179
+ if (items.some((item) => item.length > MAX_BIDI_NAME_LENGTH)) {
180
+ throw new errors.InvalidArgumentError(
181
+ `The items of ${name} must not be longer than ${MAX_BIDI_NAME_LENGTH} characters`,
182
+ );
183
+ }
184
+ }
185
+
186
+ // A subscription without contexts still keeps its event, so it counts as one entry
187
+ function countEntries(subscriptions: Map<string, Map<string, string[]>>): number {
188
+ let count = 0;
189
+ for (const subscription of subscriptions.values()) {
190
+ for (const contexts of subscription.values()) {
191
+ count += Math.max(contexts.length, 1);
192
+ }
193
+ }
194
+ return count;
195
+ }
196
+
197
+ // The legacy unsubscribe by event names leaves the emptied subscriptions registered, so that their
198
+ // IDs stay valid. The oldest of them gives way when the limit is reached.
199
+ function releaseEmptySubscription(subscriptions: Map<string, Map<string, string[]>>): boolean {
200
+ for (const [id, subscription] of subscriptions) {
201
+ if (!subscription.size) {
202
+ subscriptions.delete(id);
203
+ return true;
204
+ }
205
+ }
206
+ return false;
138
207
  }
139
208
 
140
209
  function refreshEventSubscriptions(driver: BidiSubscriptionDriver): void {
@@ -39,6 +39,18 @@ export class DeviceSettings<T extends StringRecord = StringRecord> implements ID
39
39
  );
40
40
  }
41
41
 
42
+ // every key is validated up front so a rejected update is all-or-nothing:
43
+ // no part of the payload reaches the listener or the store. An own
44
+ // `__proto__` key (e.g. from JSON.parse) is the only hazard - assigning it
45
+ // rewrites the prototype of the settings object itself, while
46
+ // `constructor`/`prototype` as own keys are plain data properties
47
+ const keys = Object.keys(newSettings);
48
+ if (keys.includes('__proto__')) {
49
+ throw new errors.InvalidArgumentError(
50
+ `Settings updates must not use the '__proto__' key, because assigning it would rewrite the prototype of the settings object`,
51
+ );
52
+ }
53
+
42
54
  if (node.getObjectSize({...this._settings, ...newSettings}) >= MAX_SETTINGS_SIZE) {
43
55
  throw new errors.InvalidArgumentError(
44
56
  `New settings cannot be applied, because the overall ` +
@@ -46,7 +58,7 @@ export class DeviceSettings<T extends StringRecord = StringRecord> implements ID
46
58
  );
47
59
  }
48
60
 
49
- for (const prop in newSettings) {
61
+ for (const prop of keys) {
50
62
  if (this._settings[prop] !== undefined) {
51
63
  if (this._settings[prop] === newSettings[prop]) {
52
64
  log.debug(`The value of '${prop}' setting did not change. Skipping the update for it`);
@@ -54,7 +66,7 @@ export class DeviceSettings<T extends StringRecord = StringRecord> implements ID
54
66
  }
55
67
  }
56
68
  await this._onSettingsUpdate(prop as keyof T, newSettings[prop], this._settings[prop]);
57
- this._settings[prop] = newSettings[prop];
69
+ (this._settings as Record<string, unknown>)[prop] = newSettings[prop];
58
70
  }
59
71
  }
60
72
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appium/base-driver",
3
- "version": "11.0.0",
4
- "gitHead": "3d9f50fa1609d8bc7269b298656be265e302c95a",
3
+ "version": "11.0.1",
4
+ "gitHead": "e72b4765eb4c400989728a02059075604dadceef",
5
5
  "description": "Base driver class for Appium drivers",
6
6
  "keywords": [
7
7
  "android",
@@ -53,12 +53,12 @@
53
53
  "test:types": "tsd"
54
54
  },
55
55
  "dependencies": {
56
- "@appium/support": "^8.0.0",
57
- "@appium/types": "^2.0.0",
58
- "asyncbox": "^6.6.0",
56
+ "@appium/support": "^8.0.1",
57
+ "@appium/types": "~2.0.0",
58
+ "asyncbox": "^7.0.0",
59
59
  "axios": "^1.20.0",
60
60
  "lru-cache": "^11.5.2",
61
- "path-to-regexp": "^8.4.2",
61
+ "path-to-regexp": "^9.0.0",
62
62
  "picomatch": "^4.0.7"
63
63
  },
64
64
  "devDependencies": {
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.0](https://github.com/appium/appium-ios/compare/@appium/coresim@2.1.1...@appium/coresim@2.2.0) (2026-11-25)
7
+
8
+ ### Features
9
+
10
+ * **coresim:** support altitude when setting the simulated location ([#245](https://github.com/appium/appium-ios/issues/245)) ([31cc046](https://github.com/appium/appium-ios/commit/31cc046edc41bad1f1368ccd6bf7d384d0d472fa))
11
+
12
+
6
13
  ## [2.1.1](https://github.com/appium/appium-ios/compare/@appium/coresim@2.1.0...@appium/coresim@2.1.1) (2026-11-21)
7
14
 
8
15
  ### Performance Improvements
@@ -10,6 +10,7 @@
10
10
  "src/native/sim_service_context.mm",
11
11
  "src/native/sim_device_set.mm",
12
12
  "src/native/sim_device.mm",
13
+ "src/native/sim_location.mm",
13
14
  "src/native/sim_orientation.mm",
14
15
  "src/native/sim_hid.mm",
15
16
  "src/native/sim_duo.mm",
@@ -4,7 +4,7 @@ declare module '../native-simctl.js' {
4
4
  interface NativeSimctl {
5
5
  getEnv(udid: string, name: string): Promise<string>;
6
6
  openUrl(udid: string, url: string): Promise<void>;
7
- setLocation(udid: string, latitude: number, longitude: number): Promise<void>;
7
+ setLocation(udid: string, latitude: number, longitude: number, altitude?: number): Promise<void>;
8
8
  clearLocation(udid: string): Promise<void>;
9
9
  pushNotification(udid: string, bundleId: string, payload: PushNotificationPayload): Promise<void>;
10
10
  }
@@ -25,11 +25,16 @@ export declare function openUrl(this: NativeSimctl, udid: string, url: string):
25
25
  /**
26
26
  * Sets the given device's simulated GPS location.
27
27
  *
28
+ * Without `altitude` apps observe an altitude of `0` whose vertical accuracy is negative, i.e. one
29
+ * CoreLocation itself considers invalid. With `altitude` the device is pinned to a single-location
30
+ * simulation scenario instead, so apps observe that altitude along with a valid vertical accuracy.
31
+ *
28
32
  * @param udid — UDID of the target device
29
33
  * @param latitude — location latitude
30
34
  * @param longitude — location longitude
35
+ * @param altitude — location altitude in meters above sea level; may be negative
31
36
  */
32
- export declare function setLocation(this: NativeSimctl, udid: string, latitude: number, longitude: number): Promise<void>;
37
+ export declare function setLocation(this: NativeSimctl, udid: string, latitude: number, longitude: number, altitude?: number): Promise<void>;
33
38
  /**
34
39
  * Stops simulating a GPS location previously set via {@link setLocation}, reverting the device to
35
40
  * its default (no simulated location) behavior.
@@ -1 +1 @@
1
- {"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../../src/commands/interaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,aAAa,CAAC;AAGzD,OAAO,QA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E,YAAY,EAClB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnF;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,IAAI,CAAC,CAEf"}
@@ -19,12 +19,17 @@ export async function openUrl(udid, url) {
19
19
  /**
20
20
  * Sets the given device's simulated GPS location.
21
21
  *
22
+ * Without `altitude` apps observe an altitude of `0` whose vertical accuracy is negative, i.e. one
23
+ * CoreLocation itself considers invalid. With `altitude` the device is pinned to a single-location
24
+ * simulation scenario instead, so apps observe that altitude along with a valid vertical accuracy.
25
+ *
22
26
  * @param udid — UDID of the target device
23
27
  * @param latitude — location latitude
24
28
  * @param longitude — location longitude
29
+ * @param altitude — location altitude in meters above sea level; may be negative
25
30
  */
26
- export async function setLocation(udid, latitude, longitude) {
27
- return runCatchingAsync(async () => (await this._findDevice(udid)).setLocation(latitude, longitude));
31
+ export async function setLocation(udid, latitude, longitude, altitude) {
32
+ return runCatchingAsync(async () => (await this._findDevice(udid)).setLocation(latitude, longitude, altitude));
28
33
  }
29
34
  /**
30
35
  * Stops simulating a GPS location previously set via {@link setLocation}, reverting the device to
@@ -1 +1 @@
1
- {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../../src/commands/interaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAYnD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAAqB,IAAY,EAAE,IAA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AC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC9G,CAAC"}
@@ -395,7 +395,7 @@ export interface NativeDeviceHandle {
395
395
  propertiesOfApplication(bundleId: string): Promise<Record<string, unknown>>;
396
396
  installedApps(): Promise<Record<string, unknown>>;
397
397
  openUrl(url: string): Promise<void>;
398
- setLocation(latitude: number, longitude: number): Promise<void>;
398
+ setLocation(latitude: number, longitude: number, altitude?: number): Promise<void>;
399
399
  clearLocation(): Promise<void>;
400
400
  isDuo(): Promise<boolean>;
401
401
  pressHidButton(page: number, usage: number, duration: number): Promise<void>;