appium-espresso-driver 10.2.0 → 10.3.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 (639) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/server/builder.d.ts +9 -0
  3. package/build/lib/commands/server/builder.d.ts.map +1 -1
  4. package/build/lib/commands/server/builder.js +23 -0
  5. package/build/lib/commands/server/builder.js.map +1 -1
  6. package/build/lib/commands/server/hints.d.ts +28 -0
  7. package/build/lib/commands/server/hints.d.ts.map +1 -0
  8. package/build/lib/commands/server/hints.js +54 -0
  9. package/build/lib/commands/server/hints.js.map +1 -0
  10. package/build/lib/commands/server/runner.d.ts +7 -0
  11. package/build/lib/commands/server/runner.d.ts.map +1 -1
  12. package/build/lib/commands/server/runner.js +43 -4
  13. package/build/lib/commands/server/runner.js.map +1 -1
  14. package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
  15. package/espresso-server/app/build.gradle.kts +91 -1
  16. package/espresso-server/app/src/androidTestShaded/AndroidManifest.xml +16 -0
  17. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
  18. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
  19. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  20. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
  21. package/espresso-server/buildSrc/build/classes/kotlin/main/META-INF/buildSrc.kotlin_module +0 -0
  22. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper$visitField$1$1.class +0 -0
  23. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper$visitMethod$1$1.class +0 -0
  24. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper.class +0 -0
  25. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/MemberRef.class +0 -0
  26. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/PrefixRemapper.class +0 -0
  27. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$$inlined$groupingBy$1.class +0 -0
  28. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$$inlined$sortedByDescending$1.class +0 -0
  29. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$9$1.class +0 -0
  30. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$remapper$1.class +0 -0
  31. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask.class +0 -0
  32. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$memberReferences$1$visitMethod$1.class +0 -0
  33. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$memberReferences$1.class +0 -0
  34. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$referencedClasses$collector$1.class +0 -0
  35. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$shareNonPublicDependents$Declared.class +0 -0
  36. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt.class +0 -0
  37. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  38. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  39. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  40. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  41. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  42. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  43. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  44. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  45. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  46. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  47. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  48. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  49. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  50. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  51. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  52. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  53. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  54. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  55. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  56. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  57. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  58. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  59. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  60. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  61. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  62. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  63. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  64. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  65. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  66. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  67. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  68. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  69. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
  70. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
  71. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
  72. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  73. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
  74. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  75. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  76. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  77. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  78. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  79. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  80. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  81. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  82. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  83. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  84. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  85. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  86. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  87. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  88. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  89. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  90. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  91. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  92. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  93. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  94. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  95. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  96. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  97. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  98. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  99. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  100. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab +1 -1
  101. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  102. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  103. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  104. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  105. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  106. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  107. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  108. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  109. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  110. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  111. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  112. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  113. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  114. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  115. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  116. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  117. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  118. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  119. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
  120. package/espresso-server/buildSrc/build/kotlin/compileKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  121. package/espresso-server/buildSrc/build/libs/buildSrc.jar +0 -0
  122. package/espresso-server/buildSrc/build.gradle.kts +6 -0
  123. package/espresso-server/buildSrc/src/main/kotlin/io/appium/espressoserver/gradle/RelocateClassesTask.kt +141 -0
  124. package/espresso-server/buildSrc/src/main/kotlin/io/appium/espressoserver/gradle/Relocation.kt +342 -0
  125. package/espresso-server/buildSrc/src/test/kotlin/io/appium/espressoserver/gradle/RelocationTest.kt +186 -0
  126. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/ListIdlingResources.kt +2 -1
  127. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/ShadingHelpers.kt +45 -0
  128. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
  129. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/http/response/AppiumResponse.kt +3 -2
  130. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/HamcrestMatcher.kt +8 -5
  131. package/espresso-server/library/src/test/java/io/appium/espressoserver/test/helpers/ShadingHelpersTest.kt +37 -0
  132. package/lib/commands/server/builder.ts +29 -0
  133. package/lib/commands/server/hints.ts +69 -0
  134. package/lib/commands/server/runner.ts +53 -5
  135. package/node_modules/{appium-android-driver → @appium/base-driver}/node_modules/asyncbox/README.md +1 -1
  136. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/index.ts +28 -0
  137. package/node_modules/{appium-android-driver → @appium/base-driver}/node_modules/asyncbox/package.json +26 -12
  138. package/node_modules/{appium-adb → @appium/support}/node_modules/asyncbox/README.md +1 -1
  139. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/cjs/lib}/asyncfilter.d.ts +1 -1
  140. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +1 -0
  141. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/cjs/lib}/asyncfilter.js +6 -3
  142. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +1 -0
  143. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/cjs/lib}/asyncmap.d.ts +1 -1
  144. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +1 -0
  145. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/cjs/lib}/asyncmap.js +6 -3
  146. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +1 -0
  147. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +1 -0
  148. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.js +55 -0
  149. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.js.map +1 -0
  150. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.d.ts +12 -0
  151. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +1 -0
  152. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.js +28 -0
  153. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.js.map +1 -0
  154. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +3 -0
  155. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +1 -0
  156. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.js +15 -0
  157. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +1 -0
  158. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +1 -0
  159. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/lock → @appium/support/node_modules/asyncbox/build/cjs/lib}/lock.js +15 -21
  160. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/lock.js.map +1 -0
  161. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/long-sleep.d.ts +1 -1
  162. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +1 -0
  163. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.js +36 -0
  164. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +1 -0
  165. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +1 -0
  166. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.js +57 -0
  167. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.js.map +1 -0
  168. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/sleep.d.ts +1 -1
  169. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +1 -0
  170. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/sleep.js +7 -4
  171. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/sleep.js.map +1 -0
  172. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +1 -0
  173. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +3 -0
  174. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/cjs/lib}/types.js.map +1 -1
  175. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/wait-for-condition.d.ts +1 -1
  176. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +1 -0
  177. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/wait-for-condition.js +9 -6
  178. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +1 -0
  179. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +1 -0
  180. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/with-timeout.js +7 -4
  181. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +1 -0
  182. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +3 -0
  183. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +9 -0
  184. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +1 -0
  185. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/esm/lib}/asyncfilter.js +2 -2
  186. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +1 -0
  187. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/esm/lib}/asyncmap.d.ts +1 -1
  188. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +1 -0
  189. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/esm/lib}/asyncmap.js +2 -2
  190. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +1 -0
  191. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +1 -0
  192. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/errors.js.map +1 -0
  193. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.d.ts +12 -0
  194. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.d.ts.map +1 -0
  195. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.js +10 -0
  196. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.js.map +1 -0
  197. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +3 -0
  198. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +1 -0
  199. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.js +12 -0
  200. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.js.map +1 -0
  201. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +1 -0
  202. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/lock → @appium/support/node_modules/asyncbox/build/esm/lib}/lock.js +3 -13
  203. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/lock.js.map +1 -0
  204. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +15 -0
  205. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +1 -0
  206. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +1 -0
  207. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +1 -0
  208. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/retry.js.map +1 -0
  209. package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/sleep.d.ts +1 -1
  210. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +1 -0
  211. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/sleep.js +1 -1
  212. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/sleep.js.map +1 -0
  213. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +1 -0
  214. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/esm/lib}/types.js.map +1 -1
  215. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +18 -0
  216. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +1 -0
  217. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/wait-for-condition.js +1 -1
  218. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +1 -0
  219. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +1 -0
  220. package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/with-timeout.js +1 -1
  221. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +1 -0
  222. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +3 -0
  223. package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/collections → @appium/support/node_modules/asyncbox/lib}/asyncfilter.ts +3 -3
  224. package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/collections → @appium/support/node_modules/asyncbox/lib}/asyncmap.ts +3 -3
  225. package/node_modules/@appium/support/node_modules/asyncbox/lib/index.ts +28 -0
  226. package/node_modules/@appium/support/node_modules/asyncbox/lib/limit-function.ts +18 -0
  227. package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/lock → @appium/support/node_modules/asyncbox/lib}/lock.ts +6 -13
  228. package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/long-sleep.ts +1 -1
  229. package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/sleep.ts +2 -2
  230. package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/wait-for-condition.ts +2 -2
  231. package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/with-timeout.ts +1 -1
  232. package/node_modules/{appium-adb → @appium/support}/node_modules/asyncbox/package.json +26 -12
  233. package/node_modules/@appium/support/node_modules/p-limit/index.d.ts +138 -0
  234. package/node_modules/@appium/support/node_modules/p-limit/index.js +148 -0
  235. package/node_modules/@appium/support/node_modules/p-limit/license +9 -0
  236. package/node_modules/@appium/support/node_modules/p-limit/package.json +58 -0
  237. package/node_modules/@appium/support/node_modules/p-limit/readme.md +183 -0
  238. package/node_modules/appium-adb/CHANGELOG.md +7 -0
  239. package/node_modules/appium-adb/package.json +3 -3
  240. package/node_modules/appium-android-driver/CHANGELOG.md +23 -0
  241. package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.d.ts +10 -0
  242. package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.d.ts.map +1 -0
  243. package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.js +15 -0
  244. package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.js.map +1 -0
  245. package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.d.ts +9 -0
  246. package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.d.ts.map +1 -0
  247. package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.js +37 -0
  248. package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.js.map +1 -0
  249. package/node_modules/appium-android-driver/build/lib/commands/device/common.d.ts.map +1 -1
  250. package/node_modules/appium-android-driver/build/lib/commands/device/common.js +2 -0
  251. package/node_modules/appium-android-driver/build/lib/commands/device/common.js.map +1 -1
  252. package/node_modules/appium-android-driver/build/lib/commands/log.d.ts.map +1 -1
  253. package/node_modules/appium-android-driver/build/lib/commands/log.js +5 -1
  254. package/node_modules/appium-android-driver/build/lib/commands/log.js.map +1 -1
  255. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts.map +1 -1
  256. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js +2 -4
  257. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -1
  258. package/node_modules/appium-android-driver/lib/commands/bidi/helpers.ts +16 -0
  259. package/node_modules/appium-android-driver/lib/commands/bidi/logcat-level.ts +40 -0
  260. package/node_modules/appium-android-driver/lib/commands/device/common.ts +2 -0
  261. package/node_modules/appium-android-driver/lib/commands/log.ts +5 -1
  262. package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +2 -11
  263. package/node_modules/appium-android-driver/package.json +5 -5
  264. package/node_modules/appium-chromedriver/CHANGELOG.md +7 -0
  265. package/node_modules/appium-chromedriver/config/mapping.json +1 -0
  266. package/node_modules/appium-chromedriver/package.json +2 -2
  267. package/node_modules/asyncbox/README.md +1 -1
  268. package/node_modules/asyncbox/lib/index.ts +11 -11
  269. package/node_modules/asyncbox/package.json +12 -26
  270. package/node_modules/bare-buffer/CMakeLists.txt +3 -3
  271. package/node_modules/bare-buffer/package.json +1 -1
  272. package/node_modules/bare-buffer/prebuilds/android-arm/bare-buffer.bare +0 -0
  273. package/node_modules/bare-buffer/prebuilds/android-arm64/bare-buffer.bare +0 -0
  274. package/node_modules/bare-buffer/prebuilds/android-ia32/bare-buffer.bare +0 -0
  275. package/node_modules/bare-buffer/prebuilds/android-x64/bare-buffer.bare +0 -0
  276. package/node_modules/bare-buffer/prebuilds/darwin-arm64/bare-buffer.bare +0 -0
  277. package/node_modules/bare-buffer/prebuilds/darwin-x64/bare-buffer.bare +0 -0
  278. package/node_modules/bare-buffer/prebuilds/ios-arm64/bare-buffer.bare +0 -0
  279. package/node_modules/bare-buffer/prebuilds/ios-arm64-simulator/bare-buffer.bare +0 -0
  280. package/node_modules/bare-buffer/prebuilds/ios-x64-simulator/bare-buffer.bare +0 -0
  281. package/node_modules/bare-buffer/prebuilds/linux-arm64/bare-buffer.bare +0 -0
  282. package/node_modules/bare-buffer/prebuilds/linux-x64/bare-buffer.bare +0 -0
  283. package/node_modules/bare-buffer/prebuilds/win32-arm64/bare-buffer.bare +0 -0
  284. package/node_modules/bare-buffer/prebuilds/win32-x64/bare-buffer.bare +0 -0
  285. package/node_modules/bare-url/CMakeLists.txt +5 -5
  286. package/node_modules/bare-url/package.json +1 -1
  287. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  288. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  289. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  290. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  291. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  292. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  293. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  294. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  295. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  296. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  297. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  298. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  299. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  300. package/node_modules/ini/package.json +5 -5
  301. package/node_modules/io.appium.settings/CHANGELOG.md +7 -0
  302. package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
  303. package/node_modules/io.appium.settings/package.json +3 -3
  304. package/package.json +5 -5
  305. package/scripts/check-shaded-packages.mjs +106 -0
  306. package/node_modules/appium-adb/node_modules/asyncbox/lib/index.ts +0 -28
  307. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +0 -1
  308. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +0 -1
  309. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +0 -1
  310. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +0 -1
  311. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +0 -7
  312. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +0 -1
  313. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js +0 -35
  314. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +0 -1
  315. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts +0 -12
  316. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts.map +0 -1
  317. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js +0 -10
  318. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js.map +0 -1
  319. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +0 -1
  320. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.js.map +0 -1
  321. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +0 -1
  322. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.js.map +0 -1
  323. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +0 -1
  324. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +0 -1
  325. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +0 -1
  326. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +0 -1
  327. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.js.map +0 -1
  328. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +0 -1
  329. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.js.map +0 -1
  330. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +0 -1
  331. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +0 -1
  332. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +0 -1
  333. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +0 -1
  334. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/asyncmap.ts +0 -33
  335. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/limit-function.ts +0 -34
  336. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/index.ts +0 -28
  337. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/lock/lock.ts +0 -369
  338. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/long-sleep.ts +0 -38
  339. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/sleep.ts +0 -79
  340. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/with-timeout.ts +0 -43
  341. package/node_modules/appium-chromedriver/node_modules/asyncbox/LICENSE +0 -203
  342. package/node_modules/appium-chromedriver/node_modules/asyncbox/README.md +0 -272
  343. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +0 -9
  344. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +0 -1
  345. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +0 -1
  346. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +0 -1
  347. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +0 -1
  348. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +0 -7
  349. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +0 -1
  350. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js +0 -35
  351. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +0 -1
  352. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts +0 -12
  353. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts.map +0 -1
  354. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js +0 -10
  355. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js.map +0 -1
  356. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +0 -1
  357. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.js.map +0 -1
  358. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +0 -1
  359. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.js.map +0 -1
  360. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +0 -1
  361. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +0 -15
  362. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +0 -1
  363. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +0 -1
  364. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +0 -1
  365. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.js.map +0 -1
  366. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +0 -1
  367. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.js.map +0 -1
  368. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +0 -18
  369. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +0 -1
  370. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +0 -1
  371. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +0 -1
  372. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +0 -1
  373. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncfilter.ts +0 -42
  374. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/limit-function.ts +0 -34
  375. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/index.ts +0 -28
  376. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/wait-for-condition.ts +0 -52
  377. package/node_modules/appium-chromedriver/node_modules/asyncbox/package.json +0 -60
  378. package/node_modules/asyncbox/build/esm/lib/errors.js +0 -46
  379. package/node_modules/asyncbox/build/esm/lib/long-sleep.js +0 -33
  380. package/node_modules/asyncbox/build/esm/lib/retry.js +0 -53
  381. package/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  382. package/node_modules/asyncbox/lib/errors.ts +0 -51
  383. package/node_modules/asyncbox/lib/retry.ts +0 -61
  384. package/node_modules/asyncbox/lib/types.ts +0 -88
  385. package/node_modules/io.appium.settings/node_modules/asyncbox/LICENSE +0 -203
  386. package/node_modules/io.appium.settings/node_modules/asyncbox/README.md +0 -272
  387. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +0 -9
  388. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +0 -1
  389. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js +0 -36
  390. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +0 -1
  391. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +0 -9
  392. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +0 -1
  393. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js +0 -27
  394. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +0 -1
  395. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +0 -7
  396. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +0 -1
  397. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js +0 -35
  398. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js.map +0 -1
  399. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts +0 -12
  400. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts.map +0 -1
  401. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js +0 -10
  402. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js.map +0 -1
  403. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts +0 -74
  404. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +0 -1
  405. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js +0 -302
  406. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js.map +0 -1
  407. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts +0 -27
  408. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +0 -1
  409. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js +0 -46
  410. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js.map +0 -1
  411. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts +0 -84
  412. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts.map +0 -1
  413. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js +0 -2
  414. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js.map +0 -1
  415. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +0 -15
  416. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +0 -1
  417. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js +0 -33
  418. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js.map +0 -1
  419. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts +0 -17
  420. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts.map +0 -1
  421. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js +0 -53
  422. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js.map +0 -1
  423. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts +0 -20
  424. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +0 -1
  425. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js +0 -58
  426. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js.map +0 -1
  427. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +0 -18
  428. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +0 -1
  429. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js +0 -48
  430. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +0 -1
  431. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +0 -16
  432. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +0 -1
  433. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js +0 -42
  434. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js.map +0 -1
  435. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncfilter.ts +0 -42
  436. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncmap.ts +0 -33
  437. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/limit-function.ts +0 -34
  438. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/index.ts +0 -28
  439. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/lock/lock.ts +0 -369
  440. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/errors.ts +0 -51
  441. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/types.ts +0 -88
  442. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/long-sleep.ts +0 -38
  443. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/retry.ts +0 -61
  444. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/sleep.ts +0 -79
  445. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/wait-for-condition.ts +0 -52
  446. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/with-timeout.ts +0 -43
  447. package/node_modules/io.appium.settings/node_modules/asyncbox/package.json +0 -60
  448. /package/node_modules/{appium-adb → @appium/base-driver}/node_modules/asyncbox/LICENSE +0 -0
  449. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncfilter.d.ts +0 -0
  450. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncfilter.d.ts.map +0 -0
  451. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncfilter.js +0 -0
  452. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncfilter.js.map +0 -0
  453. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncmap.d.ts +0 -0
  454. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncmap.d.ts.map +0 -0
  455. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncmap.js +0 -0
  456. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncmap.js.map +0 -0
  457. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/errors.d.ts +0 -0
  458. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/errors.d.ts.map +0 -0
  459. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/errors.js +0 -0
  460. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/errors.js.map +0 -0
  461. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/index.d.ts +0 -0
  462. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/index.d.ts.map +0 -0
  463. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/index.js +0 -0
  464. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/index.js.map +0 -0
  465. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/limit-function.d.ts +0 -0
  466. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/limit-function.d.ts.map +0 -0
  467. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/limit-function.js +0 -0
  468. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/limit-function.js.map +0 -0
  469. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/lock → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/lock.d.ts +0 -0
  470. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/lock.d.ts.map +0 -0
  471. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/lock.js +0 -0
  472. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/lock.js.map +0 -0
  473. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/long-sleep.d.ts +0 -0
  474. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/long-sleep.d.ts.map +0 -0
  475. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/long-sleep.js +0 -0
  476. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/long-sleep.js.map +0 -0
  477. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/retry.d.ts +0 -0
  478. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/retry.d.ts.map +0 -0
  479. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/retry.js +0 -0
  480. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/retry.js.map +0 -0
  481. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/sleep.d.ts +0 -0
  482. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/sleep.d.ts.map +0 -0
  483. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/sleep.js +0 -0
  484. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/sleep.js.map +0 -0
  485. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/types.d.ts +0 -0
  486. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/types.d.ts.map +0 -0
  487. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/types.js +0 -0
  488. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/types.js.map +0 -0
  489. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/wait-for-condition.d.ts +0 -0
  490. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/wait-for-condition.d.ts.map +0 -0
  491. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/wait-for-condition.js +0 -0
  492. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/wait-for-condition.js.map +0 -0
  493. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/with-timeout.d.ts +0 -0
  494. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/with-timeout.d.ts.map +0 -0
  495. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/with-timeout.js +0 -0
  496. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/with-timeout.js.map +0 -0
  497. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/package.json +0 -0
  498. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncfilter.d.ts +0 -0
  499. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncfilter.d.ts.map +0 -0
  500. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncfilter.js +0 -0
  501. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncfilter.js.map +0 -0
  502. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncmap.d.ts +0 -0
  503. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncmap.d.ts.map +0 -0
  504. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncmap.js +0 -0
  505. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncmap.js.map +0 -0
  506. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/errors.d.ts +0 -0
  507. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/errors.d.ts.map +0 -0
  508. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/errors.js +0 -0
  509. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/errors.js.map +0 -0
  510. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/index.d.ts +0 -0
  511. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/index.d.ts.map +0 -0
  512. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/index.js +0 -0
  513. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/index.js.map +0 -0
  514. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/limit-function.d.ts +0 -0
  515. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/limit-function.d.ts.map +0 -0
  516. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/limit-function.js +0 -0
  517. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/limit-function.js.map +0 -0
  518. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/lock → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/lock.d.ts +0 -0
  519. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/lock.d.ts.map +0 -0
  520. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/lock.js +0 -0
  521. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/lock.js.map +0 -0
  522. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/long-sleep.d.ts +0 -0
  523. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/long-sleep.d.ts.map +0 -0
  524. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/long-sleep.js +0 -0
  525. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/long-sleep.js.map +0 -0
  526. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/retry.d.ts +0 -0
  527. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/retry.d.ts.map +0 -0
  528. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/retry.js +0 -0
  529. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/retry.js.map +0 -0
  530. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/sleep.d.ts +0 -0
  531. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/sleep.d.ts.map +0 -0
  532. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/sleep.js +0 -0
  533. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/sleep.js.map +0 -0
  534. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/types.d.ts +0 -0
  535. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/types.d.ts.map +0 -0
  536. /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/types.js +0 -0
  537. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/types.js.map +0 -0
  538. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/wait-for-condition.d.ts +0 -0
  539. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/wait-for-condition.d.ts.map +0 -0
  540. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/wait-for-condition.js +0 -0
  541. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/wait-for-condition.js.map +0 -0
  542. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/with-timeout.d.ts +0 -0
  543. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/with-timeout.d.ts.map +0 -0
  544. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/with-timeout.js +0 -0
  545. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/with-timeout.js.map +0 -0
  546. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/package.json +0 -0
  547. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/asyncfilter.ts +0 -0
  548. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/asyncmap.ts +0 -0
  549. /package/node_modules/{appium-adb/node_modules/asyncbox/lib/shared → @appium/base-driver/node_modules/asyncbox/lib}/errors.ts +0 -0
  550. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/limit-function.ts +0 -0
  551. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/lock.ts +0 -0
  552. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/long-sleep.ts +0 -0
  553. /package/node_modules/{appium-adb/node_modules/asyncbox/lib/time → @appium/base-driver/node_modules/asyncbox/lib}/retry.ts +0 -0
  554. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/sleep.ts +0 -0
  555. /package/node_modules/{appium-adb/node_modules/asyncbox/lib/shared → @appium/base-driver/node_modules/asyncbox/lib}/types.ts +0 -0
  556. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/wait-for-condition.ts +0 -0
  557. /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/with-timeout.ts +0 -0
  558. /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/index.d.ts +0 -0
  559. /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/index.js +0 -0
  560. /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/license +0 -0
  561. /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/package.json +0 -0
  562. /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/readme.md +0 -0
  563. /package/node_modules/{appium-android-driver → @appium/support}/node_modules/asyncbox/LICENSE +0 -0
  564. /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/cjs/lib}/errors.d.ts +0 -0
  565. /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/lock → @appium/support/node_modules/asyncbox/build/cjs/lib}/lock.d.ts +0 -0
  566. /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/retry.d.ts +0 -0
  567. /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/cjs/lib}/types.d.ts +0 -0
  568. /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/with-timeout.d.ts +0 -0
  569. /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/errors.d.ts +0 -0
  570. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/esm/lib}/errors.js +0 -0
  571. /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/lock.d.ts +0 -0
  572. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/long-sleep.js +0 -0
  573. /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/retry.d.ts +0 -0
  574. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/retry.js +0 -0
  575. /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/types.d.ts +0 -0
  576. /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/esm/lib}/types.js +0 -0
  577. /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/with-timeout.d.ts +0 -0
  578. /package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/shared → @appium/support/node_modules/asyncbox/lib}/errors.ts +0 -0
  579. /package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/retry.ts +0 -0
  580. /package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/shared → @appium/support/node_modules/asyncbox/lib}/types.ts +0 -0
  581. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncfilter.d.ts +0 -0
  582. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncfilter.d.ts.map +0 -0
  583. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncfilter.js +0 -0
  584. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncfilter.js.map +0 -0
  585. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncmap.d.ts +0 -0
  586. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncmap.d.ts.map +0 -0
  587. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncmap.js +0 -0
  588. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncmap.js.map +0 -0
  589. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/limit-function.d.ts +0 -0
  590. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/limit-function.d.ts.map +0 -0
  591. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/limit-function.js +0 -0
  592. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/limit-function.js.map +0 -0
  593. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/index.d.ts +0 -0
  594. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/index.d.ts.map +0 -0
  595. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/index.js +0 -0
  596. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/index.js.map +0 -0
  597. /package/node_modules/asyncbox/build/{esm/lib → lib/lock}/lock.d.ts +0 -0
  598. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/lock/lock.d.ts.map +0 -0
  599. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/lock/lock.js +0 -0
  600. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/lock/lock.js.map +0 -0
  601. /package/node_modules/asyncbox/build/{esm/lib → lib/shared}/errors.d.ts +0 -0
  602. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/shared/errors.d.ts.map +0 -0
  603. /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/build/lib/shared/errors.js +0 -0
  604. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/shared/errors.js.map +0 -0
  605. /package/node_modules/asyncbox/build/{esm/lib → lib/shared}/types.d.ts +0 -0
  606. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/shared/types.d.ts.map +0 -0
  607. /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/build/lib/shared/types.js +0 -0
  608. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/shared/types.js.map +0 -0
  609. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/long-sleep.d.ts +0 -0
  610. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/long-sleep.d.ts.map +0 -0
  611. /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/build/lib/time/long-sleep.js +0 -0
  612. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/long-sleep.js.map +0 -0
  613. /package/node_modules/asyncbox/build/{esm/lib → lib/time}/retry.d.ts +0 -0
  614. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/retry.d.ts.map +0 -0
  615. /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/build/lib/time/retry.js +0 -0
  616. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/retry.js.map +0 -0
  617. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/sleep.d.ts +0 -0
  618. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/sleep.d.ts.map +0 -0
  619. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/sleep.js +0 -0
  620. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/sleep.js.map +0 -0
  621. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/wait-for-condition.d.ts +0 -0
  622. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/wait-for-condition.d.ts.map +0 -0
  623. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/wait-for-condition.js +0 -0
  624. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/wait-for-condition.js.map +0 -0
  625. /package/node_modules/asyncbox/build/{esm/lib → lib/time}/with-timeout.d.ts +0 -0
  626. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/with-timeout.d.ts.map +0 -0
  627. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/with-timeout.js +0 -0
  628. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/with-timeout.js.map +0 -0
  629. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/collections/asyncfilter.ts +0 -0
  630. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/collections/asyncmap.ts +0 -0
  631. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/collections/limit-function.ts +0 -0
  632. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/lock/lock.ts +0 -0
  633. /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/lib/shared/errors.ts +0 -0
  634. /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/lib/shared/types.ts +0 -0
  635. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/time/long-sleep.ts +0 -0
  636. /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/lib/time/retry.ts +0 -0
  637. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/time/sleep.ts +0 -0
  638. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/time/wait-for-condition.ts +0 -0
  639. /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/time/with-timeout.ts +0 -0
@@ -0,0 +1,37 @@
1
+ package io.appium.espressoserver.test.helpers
2
+
3
+ import io.appium.espressoserver.lib.helpers.forNameApp
4
+ import io.appium.espressoserver.lib.helpers.forNameShaded
5
+ import io.appium.espressoserver.lib.helpers.stripShadedPrefix
6
+ import org.junit.Test
7
+ import kotlin.test.assertEquals
8
+ import kotlin.test.assertFailsWith
9
+
10
+ class `ShadingHelpers Test` {
11
+
12
+ @Test
13
+ fun `'forNameShaded' falls back to the original name`() {
14
+ assertEquals(String::class.java, forNameShaded("java.lang.String"))
15
+ }
16
+
17
+ @Test
18
+ fun `'forNameShaded' throws for unknown classes`() {
19
+ assertFailsWith<ClassNotFoundException> { forNameShaded("no.such.Clazz") }
20
+ }
21
+
22
+ @Test
23
+ fun `'forNameApp' prefers the original name`() {
24
+ assertEquals(String::class.java, forNameApp("java.lang.String"))
25
+ assertFailsWith<ClassNotFoundException> { forNameApp("no.such.Clazz") }
26
+ }
27
+
28
+ @Test
29
+ fun `'stripShadedPrefix' removes the relocation prefix everywhere`() {
30
+ assertEquals(
31
+ "NoActivityResumedException: androidx.test.espresso.Foo and org.hamcrest.Matchers",
32
+ ("NoActivityResumedException: io.appium.espressoserver.shaded.androidx.test.espresso.Foo " +
33
+ "and io.appium.espressoserver.shaded.org.hamcrest.Matchers").stripShadedPrefix(),
34
+ )
35
+ assertEquals("io.appium.espressoserver.lib.Foo", "io.appium.espressoserver.lib.Foo".stripShadedPrefix())
36
+ }
37
+ }
@@ -50,6 +50,12 @@ export interface EspressoBuildConfiguration {
50
50
  * Defaults to true when omitted.
51
51
  */
52
52
  composeSupport?: boolean;
53
+ /**
54
+ * When false, the classes bundled with the Espresso server are not moved to a private package,
55
+ * so they shadow the same classes of the application under test.
56
+ * Defaults to true when omitted.
57
+ */
58
+ shadeServer?: boolean;
53
59
  additionalAppDependencies?: string[];
54
60
  additionalAndroidTestDependencies?: string[];
55
61
  }
@@ -72,6 +78,7 @@ export class ServerBuilder {
72
78
  private readonly additionalAppDependencies: string[] = [];
73
79
  private readonly additionalAndroidTestDependencies: string[] = [];
74
80
  private readonly composeSupport: boolean;
81
+ private readonly shadeServer: boolean;
75
82
 
76
83
  constructor(log: AppiumLogger, args: ServerBuilderOptions) {
77
84
  this.log = log;
@@ -80,6 +87,7 @@ export class ServerBuilder {
80
87
 
81
88
  const buildConfiguration = args.buildConfiguration || {};
82
89
  this.composeSupport = buildConfiguration.composeSupport !== false;
90
+ this.shadeServer = buildConfiguration.shadeServer !== false;
83
91
 
84
92
  const versionConfiguration = buildConfiguration.toolsVersions || {};
85
93
  this.serverVersions = {} as Partial<Record<(typeof VERSION_KEYS)[number], string>>;
@@ -148,11 +156,32 @@ export class ServerBuilder {
148
156
  args.push(composeArg);
149
157
  }
150
158
  }
159
+ if (!this.shadeServer) {
160
+ const shadeArg = buildProperty('appiumShadeServer', 'false');
161
+ if (shadeArg) {
162
+ args.push(shadeArg);
163
+ }
164
+ } else {
165
+ // The classes of these dependencies are not relocated, so they keep working as they do without shading
166
+ const sharedArg = buildProperty('appiumSharedDependencies', this.getSharedDependencyCoordinates().join(','));
167
+ if (sharedArg) {
168
+ args.push(sharedArg);
169
+ }
170
+ }
151
171
  args.push('app:assembleAndroidTest');
152
172
 
153
173
  return {cmd, args};
154
174
  }
155
175
 
176
+ /** `group:module` of the user declared dependencies, without versions */
177
+ private getSharedDependencyCoordinates(): string[] {
178
+ const coordinates = DEPENDENCY_PROP_NAMES.flatMap((propName) => this[propName])
179
+ .map((dep) => dep.trim().match(/^([\w.-]+):([\w.-]+)/))
180
+ .filter((match): match is RegExpMatchArray => match !== null)
181
+ .map((match) => `${match[1]}:${match[2]}`);
182
+ return [...new Set(coordinates)];
183
+ }
184
+
156
185
  private async setGradleWrapperVersion(version: string): Promise<void> {
157
186
  const propertiesPath = path.resolve(this.serverPath, 'gradle', 'wrapper', 'gradle-wrapper.properties');
158
187
  const originalProperties = await fs.readFile(propertiesPath, 'utf8');
@@ -0,0 +1,69 @@
1
+ const DOCS_URL = 'https://appium.github.io/appium-espresso-driver/latest/troubleshooting/class-conflicts/';
2
+ const REPORT = 'Please report this as a bug, and attach the logcat crash buffer and your espressoBuildConfig';
3
+ const SHADE_OFF = '"appium:espressoBuildConfig": {"shadeServer": false}';
4
+
5
+ export interface Hint {
6
+ /** Matches the failure text (instrumentation output, logcat crash buffer, server error) */
7
+ pattern: RegExp;
8
+ /** Anchor of the row that documents the pattern in docs/troubleshooting/class-conflicts.md */
9
+ anchor: string;
10
+ hint: string;
11
+ }
12
+
13
+ /**
14
+ * Only the patterns that have been reproduced are listed here. Every one of them must have
15
+ * a row with the same anchor in the class conflicts troubleshooting page.
16
+ */
17
+ export const HINTS: readonly Hint[] = [
18
+ {
19
+ pattern: /IllegalAccessError.*io\.appium\.espressoserver\.shaded/s,
20
+ anchor: 'illegal-access-shaded',
21
+ hint: `The server relocation has failed. ${REPORT}. As a workaround try ${SHADE_OFF}`,
22
+ },
23
+ {
24
+ pattern: /Exception handler was not found via a ServiceLoader/,
25
+ anchor: 'service-loader',
26
+ hint: `A service file of the server was not relocated. ${REPORT}. As a workaround try ${SHADE_OFF}`,
27
+ },
28
+ {
29
+ pattern: /StartupException.*ClassCastException.*Initializer|ViewTreeLifecycleOwner not found/s,
30
+ anchor: 'startup-initializer',
31
+ hint: `The classes shared with the application under test are not consistent. ${REPORT}. As a workaround try ${SHADE_OFF}`,
32
+ },
33
+ {
34
+ pattern: /(NoSuchMethodError|NoClassDefFoundError)[^\n]*androidx[./]compose/,
35
+ anchor: 'compose-version',
36
+ hint:
37
+ 'The Jetpack Compose version of the application under test differs from the one of the Espresso server. ' +
38
+ 'Set "toolsVersions": {"composeVersion": "<version of the app>"} in the espressoBuildConfig capability. ' +
39
+ 'If the app has no Compose, set "composeSupport": false instead',
40
+ },
41
+ ];
42
+
43
+ /**
44
+ * Finds the hints that apply to the given failure text.
45
+ *
46
+ * @param text - Failure text, e.g. the lines of an instrumentation crash.
47
+ * @returns Hint texts with the link to the docs, without duplicates.
48
+ */
49
+ export function findHints(text: string): string[] {
50
+ return [
51
+ ...new Set(
52
+ HINTS.filter(({pattern}) => pattern.test(text)).map(
53
+ ({hint, anchor}) => `Hint: ${hint} (see ${DOCS_URL}#${anchor})`,
54
+ ),
55
+ ),
56
+ ];
57
+ }
58
+
59
+ /**
60
+ * Appends the matching hints to an error message.
61
+ *
62
+ * @param message - The original message.
63
+ * @param text - Failure text to look the hints for in.
64
+ * @returns The message, extended with the hints if there are any.
65
+ */
66
+ export function withHints(message: string, text: string): string {
67
+ const hints = findHints(text);
68
+ return hints.length ? `${message}\n${hints.join('\n')}` : message;
69
+ }
@@ -13,6 +13,9 @@ import * as semver from 'semver';
13
13
  import {getPackageInfoSync, getPackageInfo, isPlainObject} from '../../utils/index.js';
14
14
  import {ServerBuilder, buildServerSigningConfig, type ServerSigningConfig} from './builder.js';
15
15
  import {ESPRESSO_SERVER_LAUNCH_TIMEOUT_MS, TARGET_PACKAGE_CONTAINER, TEST_APK_PKG} from './constants.js';
16
+ import {findHints, withHints} from './hints.js';
17
+
18
+ const MAX_OUTPUT_LINES = 500;
16
19
 
17
20
  export interface EspressoRunnerOptions {
18
21
  adb: ADB;
@@ -162,6 +165,36 @@ export class EspressoRunner {
162
165
  return previousAppPackage !== this.appPackage;
163
166
  }
164
167
 
168
+ /** Current device time in the format of `logcat -T`, or undefined if it cannot be read. */
169
+ private async getDeviceLogTime(): Promise<string | undefined> {
170
+ try {
171
+ return (await this.adb.shell(['date', '+%m-%d %H:%M:%S.000'])).trim() || undefined;
172
+ } catch (e: any) {
173
+ this.log.debug(`Cannot read the device time: ${e.message}`);
174
+ return undefined;
175
+ }
176
+ }
177
+
178
+ /**
179
+ * Appends the hints for the known failures to the message. The cause is looked for in the instrumentation
180
+ * output first and in the crash buffer of the device (since the given device time) after that.
181
+ */
182
+ private async withFailureHints(message: string, outputLines: string[], since?: string): Promise<string> {
183
+ let failureText = outputLines.join('\n');
184
+ if (since && findHints(failureText).length === 0) {
185
+ try {
186
+ failureText += '\n' + (await this.adb.adbExec(['logcat', '-d', '-b', 'crash', '-T', since]));
187
+ } catch (e: any) {
188
+ this.log.debug(`Cannot read the crash buffer to look for hints: ${e.message}`);
189
+ }
190
+ }
191
+ const result = withHints(message, failureText);
192
+ if (result !== message) {
193
+ this.log.warn(result.slice(message.length + 1));
194
+ }
195
+ return result;
196
+ }
197
+
165
198
  /**
166
199
  * Installs Espresso server apk on to the device or emulator.
167
200
  * Each adb command uses default timeout by them.
@@ -302,6 +335,9 @@ export class EspressoRunner {
302
335
  this.log.info(`Starting Espresso Server v${manifestPayload.version} with cmd: adb ${cmd.join(' ')}`);
303
336
 
304
337
  let hasSocketError = false;
338
+ const outputLines: string[] = [];
339
+ // Crashes that happened before this moment are not related to the launch
340
+ const launchTime = await this.getDeviceLogTime();
305
341
  // start the instrumentation process
306
342
  this.jwproxy.instrumentationState = {
307
343
  exited: false,
@@ -320,6 +356,10 @@ export class EspressoRunner {
320
356
  }
321
357
 
322
358
  this.log.debug(`[Instrumentation] ${line.trim()}`);
359
+ outputLines.push(line);
360
+ if (outputLines.length > MAX_OUTPUT_LINES) {
361
+ outputLines.shift();
362
+ }
323
363
  // A 'SocketException' indicates that we couldn't connect to the Espresso server,
324
364
  // because the INTERNET permission is not set
325
365
  if (line.toLowerCase().includes('java.net.socketexception')) {
@@ -343,8 +383,12 @@ export class EspressoRunner {
343
383
  );
344
384
  } else if (this.jwproxy.instrumentationState.exited) {
345
385
  throw this.log.errorWithException(
346
- `Espresso server process has been unexpectedly terminated. ` +
347
- `Check the Appium server log and the logcat output for more details`,
386
+ await this.withFailureHints(
387
+ `Espresso server process has been unexpectedly terminated. ` +
388
+ `Check the Appium server log and the logcat output for more details`,
389
+ outputLines,
390
+ launchTime,
391
+ ),
348
392
  );
349
393
  }
350
394
  let serverStatus: ServerStatus;
@@ -363,9 +407,13 @@ export class EspressoRunner {
363
407
  } catch (e: any) {
364
408
  if (/Condition unmet/.test(e.message)) {
365
409
  throw this.log.errorWithException(
366
- `Timed out waiting for Espresso server to be ` +
367
- `online within ${this.serverLaunchTimeout}ms. The timeout value could be ` +
368
- `customized using 'espressoServerLaunchTimeout' capability`,
410
+ await this.withFailureHints(
411
+ `Timed out waiting for Espresso server to be ` +
412
+ `online within ${this.serverLaunchTimeout}ms. The timeout value could be ` +
413
+ `customized using 'espressoServerLaunchTimeout' capability`,
414
+ outputLines,
415
+ launchTime,
416
+ ),
369
417
  );
370
418
  }
371
419
  throw e;
@@ -7,7 +7,7 @@ A collection of ES7 async/await utilities. Install via NPM:
7
7
  npm install asyncbox
8
8
  ```
9
9
 
10
- ESM only. Use `import {sleep} from 'asyncbox'`; CommonJS `require()` is no longer supported by the package itself.
10
+ Published as both ESM and CommonJS, so `import {sleep} from 'asyncbox'` and `const {sleep} = require('asyncbox')` both work.
11
11
 
12
12
  Then, behold!
13
13
 
@@ -0,0 +1,28 @@
1
+ export {
2
+ AsyncboxError,
3
+ TimeoutError,
4
+ ConditionUnmetError,
5
+ LockTimeoutError,
6
+ LockQueueFullError,
7
+ PromiseCancellationError,
8
+ } from './errors.js';
9
+ export {sleep} from './sleep.js';
10
+ export {withTimeout} from './with-timeout.js';
11
+ export {longSleep} from './long-sleep.js';
12
+ export {retry, retryInterval} from './retry.js';
13
+ export {asyncmap} from './asyncmap.js';
14
+ export {asyncfilter} from './asyncfilter.js';
15
+ export {waitForCondition} from './wait-for-condition.js';
16
+ export {AsyncLock} from './lock.js';
17
+
18
+ export type {AsyncLockOptions, AcquireOptions} from './lock.js';
19
+ export type {
20
+ CancellablePromise,
21
+ Progress,
22
+ ProgressCallback,
23
+ LongSleepOptions,
24
+ MapFilterOptions,
25
+ SleepArg,
26
+ SleepOptions,
27
+ WaitForConditionOptions,
28
+ } from './types.js';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asyncbox",
3
- "version": "7.0.0",
3
+ "version": "6.6.1",
4
4
  "description": "A collection of small async/await utilities",
5
5
  "keywords": [
6
6
  "async",
@@ -22,39 +22,53 @@
22
22
  },
23
23
  "files": [
24
24
  "lib/**/*",
25
- "build/lib/**/*"
25
+ "build/cjs/lib/**/*",
26
+ "build/cjs/package.json",
27
+ "build/esm/lib/**/*",
28
+ "build/esm/package.json"
26
29
  ],
27
30
  "type": "module",
28
- "module": "./build/lib/index.js",
29
- "types": "./build/lib/index.d.ts",
31
+ "main": "./build/cjs/lib/index.js",
32
+ "module": "./build/esm/lib/index.js",
33
+ "types": "./build/cjs/lib/index.d.ts",
30
34
  "exports": {
31
35
  ".": {
32
- "types": "./build/lib/index.d.ts",
33
- "default": "./build/lib/index.js"
36
+ "import": {
37
+ "types": "./build/esm/lib/index.d.ts",
38
+ "default": "./build/esm/lib/index.js"
39
+ },
40
+ "require": {
41
+ "types": "./build/cjs/lib/index.d.ts",
42
+ "default": "./build/cjs/lib/index.js"
43
+ }
34
44
  },
35
45
  "./package.json": "./package.json"
36
46
  },
37
47
  "scripts": {
38
- "build": "tsc -b",
48
+ "build": "tsc -b tsconfig.esm.json tsconfig.cjs.json",
49
+ "postbuild": "node scripts/postbuild.mjs",
39
50
  "clean": "node -e \"require('fs').rmSync('build', {recursive: true, force: true})\"",
40
51
  "rebuild": "npm run clean; npm run build",
41
52
  "dev": "npm run build -- --watch",
42
53
  "prepare": "npm run rebuild",
43
- "test": "node --test --enable-source-maps --test-force-exit --test-timeout=60000 \"./build/test/**/*.spec.js\"",
54
+ "test": "node --test --enable-source-maps --test-force-exit --test-timeout=60000 \"./build/esm/test/**/*.spec.js\" \"./test/*.spec.cjs\"",
44
55
  "lint": "oxlint -c oxlint.config.mjs .",
45
56
  "lint:fix": "oxlint -c oxlint.config.mjs --fix .",
46
57
  "format": "oxfmt -c oxfmt.config.mjs .",
47
58
  "format:check": "oxfmt -c oxfmt.config.mjs --check .",
48
59
  "watch": "npm run dev"
49
60
  },
61
+ "dependencies": {
62
+ "p-limit": "^7.2.0"
63
+ },
50
64
  "devDependencies": {
51
- "@appium/oxc-config": "^2.0.0-beta.2",
52
- "@appium/semantic-release-config": "^2.0.0-beta.1",
53
- "@appium/tsconfig": "^2.0.0-beta.1",
65
+ "@appium/oxc-config": "^1.1.0",
66
+ "@appium/semantic-release-config": "^1.1.0",
67
+ "@appium/tsconfig": "^1.2.0",
54
68
  "@types/node": "^26.1.0"
55
69
  },
56
70
  "engines": {
57
- "node": "^22.22.2 || ^24.15.0 || >=26.0.0",
71
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
58
72
  "npm": ">=10"
59
73
  }
60
74
  }
@@ -7,7 +7,7 @@ A collection of ES7 async/await utilities. Install via NPM:
7
7
  npm install asyncbox
8
8
  ```
9
9
 
10
- ESM only. Use `import {sleep} from 'asyncbox'`; CommonJS `require()` is no longer supported by the package itself.
10
+ Published as both ESM and CommonJS, so `import {sleep} from 'asyncbox'` and `const {sleep} = require('asyncbox')` both work.
11
11
 
12
12
  Then, behold!
13
13
 
@@ -1,4 +1,4 @@
1
- import type { MapFilterOptions } from '../shared/types.js';
1
+ import type { MapFilterOptions } from './types.js';
2
2
  /**
3
3
  * Similar to `Array.prototype.filter`; runs in parallel, serial, or with custom concurrency pool
4
4
  * @param coll - The collection to filter
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncfilter.d.ts","sourceRoot":"","sources":["../../../lib/asyncfilter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,IAAI,EAAE,CAAC,EAAE,EACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAChD,OAAO,GAAE,gBAAuB,GAC/B,OAAO,CAAC,CAAC,EAAE,CAAC,CA4Bd"}
@@ -1,11 +1,14 @@
1
- import { limitFunction } from './limit-function.js';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asyncfilter = asyncfilter;
4
+ const limit_function_js_1 = require("./limit-function.js");
2
5
  /**
3
6
  * Similar to `Array.prototype.filter`; runs in parallel, serial, or with custom concurrency pool
4
7
  * @param coll - The collection to filter
5
8
  * @param filter - The function to test each element
6
9
  * @param options - Options for controlling parallelism (default: true - fully parallel)
7
10
  */
8
- export async function asyncfilter(coll, filter, options = true) {
11
+ async function asyncfilter(coll, filter, options = true) {
9
12
  if (options === null) {
10
13
  throw new Error('Options cannot be null');
11
14
  }
@@ -24,7 +27,7 @@ export async function asyncfilter(coll, filter, options = true) {
24
27
  }
25
28
  return results;
26
29
  }
27
- const adjustedFilter = options === true ? filterAsync : limitFunction(filterAsync, { concurrency: options.concurrency });
30
+ const adjustedFilter = options === true ? filterAsync : (await (0, limit_function_js_1.getLimitFunction)())(filterAsync, { concurrency: options.concurrency });
28
31
  const bools = await Promise.all(coll.map(adjustedFilter));
29
32
  return coll.reduce((acc, item, i) => {
30
33
  if (bools[i]) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncfilter.js","sourceRoot":"","sources":["../../../lib/asyncfilter.ts"],"names":[],"mappings":";;AASA,kCAgCC;AAzCD,2DAAqD;AAGrD;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAC/B,IAAS,EACT,MAAgD,EAChD,UAA4B,IAAI;IAEhC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,+DAA+D;IAC/D,MAAM,WAAW,GAAG,KAAK,EAAE,KAAQ,EAAoB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACxE,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAQ,EAAE,CAAC;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBACtB,IAAI,MAAM,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC5B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,MAAM,cAAc,GAClB,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,oCAAgB,GAAE,CAAC,CAAC,WAAW,EAAE,EAAC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAC,CAAC,CAAC;IAC/G,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;IAC1D,OAAO,IAAI,CAAC,MAAM,CAAM,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;QACvC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YACb,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { MapFilterOptions } from '../shared/types.js';
1
+ import type { MapFilterOptions } from './types.js';
2
2
  /**
3
3
  * Similar to `Array.prototype.map`; runs in parallel, serial, or with custom concurrency pool
4
4
  * @param coll - The collection to map over
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncmap.d.ts","sourceRoot":"","sources":["../../../lib/asyncmap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAAE,CAAC,EACjC,IAAI,EAAE,CAAC,EAAE,EACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EACpC,OAAO,GAAE,gBAAuB,GAC/B,OAAO,CAAC,CAAC,EAAE,CAAC,CAmBd"}
@@ -1,11 +1,14 @@
1
- import { limitFunction } from './limit-function.js';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asyncmap = asyncmap;
4
+ const limit_function_js_1 = require("./limit-function.js");
2
5
  /**
3
6
  * Similar to `Array.prototype.map`; runs in parallel, serial, or with custom concurrency pool
4
7
  * @param coll - The collection to map over
5
8
  * @param mapper - The function to apply to each element
6
9
  * @param options - Options for controlling parallelism (default: true - fully parallel)
7
10
  */
8
- export async function asyncmap(coll, mapper, options = true) {
11
+ async function asyncmap(coll, mapper, options = true) {
9
12
  if (options === null) {
10
13
  throw new Error('Options cannot be null');
11
14
  }
@@ -21,7 +24,7 @@ export async function asyncmap(coll, mapper, options = true) {
21
24
  }
22
25
  return results;
23
26
  }
24
- const adjustedMapper = options === true ? mapperAsync : limitFunction(mapperAsync, { concurrency: options.concurrency });
27
+ const adjustedMapper = options === true ? mapperAsync : (await (0, limit_function_js_1.getLimitFunction)())(mapperAsync, { concurrency: options.concurrency });
25
28
  return Promise.all(coll.map(adjustedMapper));
26
29
  }
27
30
  //# sourceMappingURL=asyncmap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncmap.js","sourceRoot":"","sources":["../../../lib/asyncmap.ts"],"names":[],"mappings":";;AASA,4BAuBC;AAhCD,2DAAqD;AAGrD;;;;;GAKG;AACI,KAAK,UAAU,QAAQ,CAC5B,IAAS,EACT,MAAoC,EACpC,UAA4B,IAAI;IAEhC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,+DAA+D;IAC/D,MAAM,WAAW,GAAG,KAAK,EAAE,KAAQ,EAAc,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClE,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAQ,EAAE,CAAC;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,CAAC,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,MAAM,cAAc,GAClB,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,oCAAgB,GAAE,CAAC,CAAC,WAAW,EAAE,EAAC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAC,CAAC,CAAC;IAC/G,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../lib/errors.ts"],"names":[],"mappings":"AAAA,oHAAoH;AACpH,qBAAa,aAAc,SAAQ,KAAK;IACtC,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAuB;CAK3D;AAED,yEAAyE;AACzE,qBAAa,YAAa,SAAQ,aAAa;gBACjC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,MAA+B;CAIpE;AAED,gFAAgF;AAChF,qBAAa,mBAAoB,SAAQ,YAAY;gBACvC,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,gGAAgG;AAChG,qBAAa,gBAAiB,SAAQ,YAAY;gBACpC,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,4FAA4F;AAC5F,qBAAa,kBAAmB,SAAQ,aAAa;gBACvC,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,uDAAuD;AACvD,qBAAa,wBAAyB,SAAQ,aAAa;gBAC7C,OAAO,GAAE,MAA4B;CAIlD"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PromiseCancellationError = exports.LockQueueFullError = exports.LockTimeoutError = exports.ConditionUnmetError = exports.TimeoutError = exports.AsyncboxError = void 0;
4
+ /** Base class of the built-in typed errors of this package; match by `instanceof` or {@link AsyncboxError.code}. */
5
+ class AsyncboxError extends Error {
6
+ /** Stable machine-readable identifier, e.g. `ERR_ASYNCBOX_TIMEOUT` */
7
+ code;
8
+ constructor(message, code = 'ERR_ASYNCBOX') {
9
+ super(message);
10
+ this.name = 'AsyncboxError';
11
+ this.code = code;
12
+ }
13
+ }
14
+ exports.AsyncboxError = AsyncboxError;
15
+ /** Error thrown by {@link withTimeout} when the deadline is exceeded. */
16
+ class TimeoutError extends AsyncboxError {
17
+ constructor(message, code = 'ERR_ASYNCBOX_TIMEOUT') {
18
+ super(message ?? 'Operation timed out', code);
19
+ this.name = 'TimeoutError';
20
+ }
21
+ }
22
+ exports.TimeoutError = TimeoutError;
23
+ /** Thrown by {@link waitForCondition} when the condition is not met in time. */
24
+ class ConditionUnmetError extends TimeoutError {
25
+ constructor(message) {
26
+ super(message ?? 'Condition unmet', 'ERR_ASYNCBOX_CONDITION_UNMET');
27
+ this.name = 'ConditionUnmetError';
28
+ }
29
+ }
30
+ exports.ConditionUnmetError = ConditionUnmetError;
31
+ /** Thrown by {@link AsyncLock} when a queue, execution or occupation time limit is exceeded. */
32
+ class LockTimeoutError extends TimeoutError {
33
+ constructor(message) {
34
+ super(message ?? 'Lock timed out', 'ERR_ASYNCBOX_LOCK_TIMEOUT');
35
+ this.name = 'LockTimeoutError';
36
+ }
37
+ }
38
+ exports.LockTimeoutError = LockTimeoutError;
39
+ /** Thrown by {@link AsyncLock} when the queue of a key already holds `maxPending` tasks. */
40
+ class LockQueueFullError extends AsyncboxError {
41
+ constructor(message) {
42
+ super(message ?? 'Too many pending tasks in queue', 'ERR_ASYNCBOX_LOCK_QUEUE_FULL');
43
+ this.name = 'LockQueueFullError';
44
+ }
45
+ }
46
+ exports.LockQueueFullError = LockQueueFullError;
47
+ /** Thrown when a promise is cancelled via `cancel`. */
48
+ class PromiseCancellationError extends AsyncboxError {
49
+ constructor(message = 'Promise cancelled') {
50
+ super(message, 'ERR_ASYNCBOX_CANCELLED');
51
+ this.name = 'PromiseCancellationError';
52
+ }
53
+ }
54
+ exports.PromiseCancellationError = PromiseCancellationError;
55
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../lib/errors.ts"],"names":[],"mappings":";;;AAAA,oHAAoH;AACpH,MAAa,aAAc,SAAQ,KAAK;IACtC,sEAAsE;IAC7D,IAAI,CAAS;IAEtB,YAAY,OAAe,EAAE,OAAe,cAAc;QACxD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AATD,sCASC;AAED,yEAAyE;AACzE,MAAa,YAAa,SAAQ,aAAa;IAC7C,YAAY,OAAgB,EAAE,OAAe,sBAAsB;QACjE,KAAK,CAAC,OAAO,IAAI,qBAAqB,EAAE,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AALD,oCAKC;AAED,gFAAgF;AAChF,MAAa,mBAAoB,SAAQ,YAAY;IACnD,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,IAAI,iBAAiB,EAAE,8BAA8B,CAAC,CAAC;QACpE,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACpC,CAAC;CACF;AALD,kDAKC;AAED,gGAAgG;AAChG,MAAa,gBAAiB,SAAQ,YAAY;IAChD,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,IAAI,gBAAgB,EAAE,2BAA2B,CAAC,CAAC;QAChE,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AALD,4CAKC;AAED,4FAA4F;AAC5F,MAAa,kBAAmB,SAAQ,aAAa;IACnD,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,IAAI,iCAAiC,EAAE,8BAA8B,CAAC,CAAC;QACpF,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AALD,gDAKC;AAED,uDAAuD;AACvD,MAAa,wBAAyB,SAAQ,aAAa;IACzD,YAAY,UAAkB,mBAAmB;QAC/C,KAAK,CAAC,OAAO,EAAE,wBAAwB,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IACzC,CAAC;CACF;AALD,4DAKC"}
@@ -0,0 +1,12 @@
1
+ export { AsyncboxError, TimeoutError, ConditionUnmetError, LockTimeoutError, LockQueueFullError, PromiseCancellationError, } from './errors.js';
2
+ export { sleep } from './sleep.js';
3
+ export { withTimeout } from './with-timeout.js';
4
+ export { longSleep } from './long-sleep.js';
5
+ export { retry, retryInterval } from './retry.js';
6
+ export { asyncmap } from './asyncmap.js';
7
+ export { asyncfilter } from './asyncfilter.js';
8
+ export { waitForCondition } from './wait-for-condition.js';
9
+ export { AsyncLock } from './lock.js';
10
+ export type { AsyncLockOptions, AcquireOptions } from './lock.js';
11
+ export type { CancellablePromise, Progress, ProgressCallback, LongSleepOptions, MapFilterOptions, SleepArg, SleepOptions, WaitForConditionOptions, } from './types.js';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AAEpC,YAAY,EAAC,gBAAgB,EAAE,cAAc,EAAC,MAAM,WAAW,CAAC;AAChE,YAAY,EACV,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,uBAAuB,GACxB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AsyncLock = exports.waitForCondition = exports.asyncfilter = exports.asyncmap = exports.retryInterval = exports.retry = exports.longSleep = exports.withTimeout = exports.sleep = exports.PromiseCancellationError = exports.LockQueueFullError = exports.LockTimeoutError = exports.ConditionUnmetError = exports.TimeoutError = exports.AsyncboxError = void 0;
4
+ var errors_js_1 = require("./errors.js");
5
+ Object.defineProperty(exports, "AsyncboxError", { enumerable: true, get: function () { return errors_js_1.AsyncboxError; } });
6
+ Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return errors_js_1.TimeoutError; } });
7
+ Object.defineProperty(exports, "ConditionUnmetError", { enumerable: true, get: function () { return errors_js_1.ConditionUnmetError; } });
8
+ Object.defineProperty(exports, "LockTimeoutError", { enumerable: true, get: function () { return errors_js_1.LockTimeoutError; } });
9
+ Object.defineProperty(exports, "LockQueueFullError", { enumerable: true, get: function () { return errors_js_1.LockQueueFullError; } });
10
+ Object.defineProperty(exports, "PromiseCancellationError", { enumerable: true, get: function () { return errors_js_1.PromiseCancellationError; } });
11
+ var sleep_js_1 = require("./sleep.js");
12
+ Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return sleep_js_1.sleep; } });
13
+ var with_timeout_js_1 = require("./with-timeout.js");
14
+ Object.defineProperty(exports, "withTimeout", { enumerable: true, get: function () { return with_timeout_js_1.withTimeout; } });
15
+ var long_sleep_js_1 = require("./long-sleep.js");
16
+ Object.defineProperty(exports, "longSleep", { enumerable: true, get: function () { return long_sleep_js_1.longSleep; } });
17
+ var retry_js_1 = require("./retry.js");
18
+ Object.defineProperty(exports, "retry", { enumerable: true, get: function () { return retry_js_1.retry; } });
19
+ Object.defineProperty(exports, "retryInterval", { enumerable: true, get: function () { return retry_js_1.retryInterval; } });
20
+ var asyncmap_js_1 = require("./asyncmap.js");
21
+ Object.defineProperty(exports, "asyncmap", { enumerable: true, get: function () { return asyncmap_js_1.asyncmap; } });
22
+ var asyncfilter_js_1 = require("./asyncfilter.js");
23
+ Object.defineProperty(exports, "asyncfilter", { enumerable: true, get: function () { return asyncfilter_js_1.asyncfilter; } });
24
+ var wait_for_condition_js_1 = require("./wait-for-condition.js");
25
+ Object.defineProperty(exports, "waitForCondition", { enumerable: true, get: function () { return wait_for_condition_js_1.waitForCondition; } });
26
+ var lock_js_1 = require("./lock.js");
27
+ Object.defineProperty(exports, "AsyncLock", { enumerable: true, get: function () { return lock_js_1.AsyncLock; } });
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":";;;AAAA,yCAOqB;AANnB,0GAAA,aAAa,OAAA;AACb,yGAAA,YAAY,OAAA;AACZ,gHAAA,mBAAmB,OAAA;AACnB,6GAAA,gBAAgB,OAAA;AAChB,+GAAA,kBAAkB,OAAA;AAClB,qHAAA,wBAAwB,OAAA;AAE1B,uCAAiC;AAAzB,iGAAA,KAAK,OAAA;AACb,qDAA8C;AAAtC,8GAAA,WAAW,OAAA;AACnB,iDAA0C;AAAlC,0GAAA,SAAS,OAAA;AACjB,uCAAgD;AAAxC,iGAAA,KAAK,OAAA;AAAE,yGAAA,aAAa,OAAA;AAC5B,6CAAuC;AAA/B,uGAAA,QAAQ,OAAA;AAChB,mDAA6C;AAArC,6GAAA,WAAW,OAAA;AACnB,iEAAyD;AAAjD,yHAAA,gBAAgB,OAAA;AACxB,qCAAoC;AAA5B,oGAAA,SAAS,OAAA"}
@@ -0,0 +1,3 @@
1
+ import type { limitFunction } from 'p-limit';
2
+ export declare function getLimitFunction(): Promise<typeof limitFunction>;
3
+ //# sourceMappingURL=limit-function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limit-function.d.ts","sourceRoot":"","sources":["../../../lib/limit-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAc3C,wBAAsB,gBAAgB,kCAGrC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLimitFunction = getLimitFunction;
4
+ // p-limit is ESM-only. tsc downlevels a plain `import()` in CommonJS output into a
5
+ // require()-in-a-microtask, which still hits Node's require(esm) interop and can race with a
6
+ // concurrent dynamic import() of the same module elsewhere in the process
7
+ // (ERR_REQUIRE_ESM_RACE_CONDITION). Route through `new Function` so tsc can't see or rewrite the
8
+ // import() call, keeping it a genuine native dynamic import in both the ESM and CJS builds.
9
+ const dynamicImport = new Function('specifier', 'return import(specifier)');
10
+ let limitFunctionPromise;
11
+ async function getLimitFunction() {
12
+ limitFunctionPromise ??= dynamicImport('p-limit');
13
+ return (await limitFunctionPromise).limitFunction;
14
+ }
15
+ //# sourceMappingURL=limit-function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limit-function.js","sourceRoot":"","sources":["../../../lib/limit-function.ts"],"names":[],"mappings":";;AAcA,4CAGC;AAbD,mFAAmF;AACnF,6FAA6F;AAC7F,0EAA0E;AAC1E,iGAAiG;AACjG,4FAA4F;AAC5F,MAAM,aAAa,GAAG,IAAI,QAAQ,CAAC,WAAW,EAAE,0BAA0B,CAEhD,CAAC;AAE3B,IAAI,oBAAuD,CAAC;AACrD,KAAK,UAAU,gBAAgB;IACpC,oBAAoB,KAAK,aAAa,CAAC,SAAS,CAAC,CAAC;IAClD,OAAO,CAAC,MAAM,oBAAoB,CAAC,CAAC,aAAa,CAAC;AACpD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../../lib/lock.ts"],"names":[],"mappings":"AAQA,yFAAyF;AACzF,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,oFAAoF;AACpF,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,KAAK,IAAI,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAMxC;;;;;GAKG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;gBAE1C,IAAI,GAAE,gBAAqB;IAWvC;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,GAAE,cAAmB,GAAG,OAAO,CAAC,CAAC,CAAC;IAkB/F;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAInC;;;;OAIG;IACH,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO;CAG9B"}