appium-xcuitest-driver 12.20.0 → 12.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/LICENSE +203 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/README.md +215 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts +84 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js.map +1 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/package.json +3 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts +84 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js +2 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js.map +1 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/package.json +3 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/types.ts +88 -0
- package/node_modules/@appium/base-driver/node_modules/asyncbox/package.json +74 -0
- package/node_modules/@appium/coresim/CHANGELOG.md +14 -0
- package/node_modules/@appium/coresim/binding.gyp +2 -0
- package/node_modules/@appium/coresim/lib/src/commands/duo.d.ts +43 -0
- package/node_modules/@appium/coresim/lib/src/commands/duo.d.ts.map +1 -0
- package/node_modules/@appium/coresim/lib/src/commands/duo.js +41 -0
- package/node_modules/@appium/coresim/lib/src/commands/duo.js.map +1 -0
- package/node_modules/@appium/coresim/lib/src/commands/hid.d.ts +21 -0
- package/node_modules/@appium/coresim/lib/src/commands/hid.d.ts.map +1 -0
- package/node_modules/@appium/coresim/lib/src/commands/hid.js +18 -0
- package/node_modules/@appium/coresim/lib/src/commands/hid.js.map +1 -0
- package/node_modules/@appium/coresim/lib/src/native-simctl.d.ts +3 -0
- package/node_modules/@appium/coresim/lib/src/native-simctl.d.ts.map +1 -1
- package/node_modules/@appium/coresim/lib/src/native-simctl.js +9 -0
- package/node_modules/@appium/coresim/lib/src/native-simctl.js.map +1 -1
- package/node_modules/@appium/coresim/lib/src/types.d.ts +4 -0
- package/node_modules/@appium/coresim/lib/src/types.d.ts.map +1 -1
- package/node_modules/@appium/coresim/package.json +3 -3
- package/node_modules/@appium/coresim/prebuilds/darwin-arm64/@appium+coresim.node +0 -0
- package/node_modules/@appium/coresim/src/commands/duo.ts +58 -0
- package/node_modules/@appium/coresim/src/commands/hid.ts +31 -0
- package/node_modules/@appium/coresim/src/coresim.mm +50 -0
- package/node_modules/@appium/coresim/src/native/sim_duo.h +9 -0
- package/node_modules/@appium/coresim/src/native/sim_duo.mm +65 -0
- package/node_modules/@appium/coresim/src/native/sim_hid.h +8 -0
- package/node_modules/@appium/coresim/src/native/sim_hid.mm +116 -0
- package/node_modules/@appium/coresim/src/native-simctl.ts +11 -0
- package/node_modules/@appium/coresim/src/types.ts +4 -0
- package/node_modules/@appium/support/node_modules/asyncbox/LICENSE +203 -0
- package/node_modules/@appium/support/node_modules/asyncbox/README.md +215 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +103 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +311 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +84 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +3 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +3 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +103 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +298 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +84 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +2 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +3 -0
- package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +382 -0
- package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +88 -0
- package/node_modules/@appium/support/node_modules/asyncbox/package.json +74 -0
- package/node_modules/appium-ios-remotexpc/CHANGELOG.md +50 -0
- package/node_modules/appium-ios-remotexpc/README.md +25 -0
- package/node_modules/appium-ios-remotexpc/build/src/index.d.ts +3 -0
- package/node_modules/appium-ios-remotexpc/build/src/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/index.js +2 -0
- package/node_modules/appium-ios-remotexpc/build/src/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/lockdown/index.d.ts +42 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/lockdown/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/lockdown/index.js +111 -13
- package/node_modules/appium-ios-remotexpc/build/src/lib/lockdown/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/binary-plist-parser.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/binary-plist-parser.js +3 -2
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/binary-plist-parser.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/index.d.ts +2 -2
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/index.js +2 -2
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/length-based-splitter.d.ts +6 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/length-based-splitter.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/length-based-splitter.js +4 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/length-based-splitter.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-encoder.d.ts +4 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-encoder.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-encoder.js +11 -9
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-encoder.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-service.d.ts +2 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-service.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-service.js +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/plist/plist-service.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/availability.d.ts +37 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/availability.d.ts.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/availability.js +94 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/availability.js.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/constants.d.ts +3 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/constants.d.ts.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/constants.js +3 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/constants.js.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/errors.d.ts +12 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/errors.d.ts.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/errors.js +15 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/errors.js.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/index.d.ts +54 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/index.d.ts.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/index.js +82 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/index.js.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/lockdown-service-names.d.ts +8 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/lockdown-service-names.d.ts.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/lockdown-service-names.js +21 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/lockdown-service-names.js.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/service-names.d.ts +16 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/service-names.d.ts.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/service-names.js +16 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/service-names.js.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/usbmux.d.ts +41 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/usbmux.d.ts.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/usbmux.js +115 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/service-transport/usbmux.js.map +1 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/types.d.ts +5 -0
- package/node_modules/appium-ios-remotexpc/build/src/lib/types.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/demux.js +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/demux.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/index.d.ts +3 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/index.js +10 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/afc/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/base-service.d.ts +22 -2
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/base-service.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/base-service.js +40 -3
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/base-service.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/energy-monitor.d.ts +2 -0
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/energy-monitor.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/energy-monitor.js +6 -2
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/instruments/energy-monitor.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-decoder.d.ts +14 -0
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-decoder.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-decoder.js +16 -71
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/nskeyedarchiver-decoder.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/utils.d.ts +10 -0
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/utils.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/utils.js +25 -3
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/dvt/utils.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/installation-proxy/index.d.ts +10 -2
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/installation-proxy/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/installation-proxy/index.js +9 -3
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/installation-proxy/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/notification-proxy/index.d.ts +10 -2
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/notification-proxy/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/notification-proxy/index.js +9 -3
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/notification-proxy/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/syslog-service/index.d.ts +12 -5
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/syslog-service/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/syslog-service/index.js +102 -43
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/syslog-service/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/syslog-service/syslog-entry-parser.d.ts +13 -0
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/syslog-service/syslog-entry-parser.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/syslog-service/syslog-entry-parser.js +33 -0
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/syslog-service/syslog-entry-parser.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/webinspector/index.d.ts +7 -2
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/webinspector/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/webinspector/index.js +9 -2
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/webinspector/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/zipconduit/index.d.ts +3 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/zipconduit/index.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/zipconduit/index.js +8 -1
- package/node_modules/appium-ios-remotexpc/build/src/services/ios/zipconduit/index.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services.d.ts +11 -9
- package/node_modules/appium-ios-remotexpc/build/src/services.d.ts.map +1 -1
- package/node_modules/appium-ios-remotexpc/build/src/services.js +35 -33
- package/node_modules/appium-ios-remotexpc/build/src/services.js.map +1 -1
- package/node_modules/appium-ios-remotexpc/package.json +5 -6
- package/node_modules/appium-ios-remotexpc/src/index.ts +13 -0
- package/node_modules/appium-ios-remotexpc/src/lib/lockdown/index.ts +140 -16
- package/node_modules/appium-ios-remotexpc/src/lib/plist/binary-plist-parser.ts +4 -3
- package/node_modules/appium-ios-remotexpc/src/lib/plist/index.ts +2 -1
- package/node_modules/appium-ios-remotexpc/src/lib/plist/length-based-splitter.ts +9 -1
- package/node_modules/appium-ios-remotexpc/src/lib/plist/plist-encoder.ts +12 -11
- package/node_modules/appium-ios-remotexpc/src/lib/plist/plist-service.ts +3 -0
- package/node_modules/appium-ios-remotexpc/src/lib/service-transport/availability.ts +125 -0
- package/node_modules/appium-ios-remotexpc/src/lib/service-transport/constants.ts +2 -0
- package/node_modules/appium-ios-remotexpc/src/lib/service-transport/errors.ts +15 -0
- package/node_modules/appium-ios-remotexpc/src/lib/service-transport/index.ts +133 -0
- package/node_modules/appium-ios-remotexpc/src/lib/service-transport/lockdown-service-names.ts +22 -0
- package/node_modules/appium-ios-remotexpc/src/lib/service-transport/service-names.ts +15 -0
- package/node_modules/appium-ios-remotexpc/src/lib/service-transport/usbmux.ts +130 -0
- package/node_modules/appium-ios-remotexpc/src/lib/types.ts +6 -0
- package/node_modules/appium-ios-remotexpc/src/services/ios/afc/demux.ts +1 -1
- package/node_modules/appium-ios-remotexpc/src/services/ios/afc/index.ts +18 -2
- package/node_modules/appium-ios-remotexpc/src/services/ios/base-service.ts +63 -4
- package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/instruments/energy-monitor.ts +6 -2
- package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/nskeyedarchiver-decoder.ts +17 -66
- package/node_modules/appium-ios-remotexpc/src/services/ios/dvt/utils.ts +27 -3
- package/node_modules/appium-ios-remotexpc/src/services/ios/installation-proxy/index.ts +16 -4
- package/node_modules/appium-ios-remotexpc/src/services/ios/notification-proxy/index.ts +16 -4
- package/node_modules/appium-ios-remotexpc/src/services/ios/syslog-service/index.ts +108 -47
- package/node_modules/appium-ios-remotexpc/src/services/ios/syslog-service/syslog-entry-parser.ts +41 -0
- package/node_modules/appium-ios-remotexpc/src/services/ios/webinspector/index.ts +11 -3
- package/node_modules/appium-ios-remotexpc/src/services/ios/zipconduit/index.ts +14 -1
- package/node_modules/appium-ios-remotexpc/src/services.ts +102 -31
- package/node_modules/appium-ios-simulator/CHANGELOG.md +14 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/duo.d.ts +21 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/duo.d.ts.map +1 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/duo.js +18 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/duo.js.map +1 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/hid.d.ts +18 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/hid.d.ts.map +1 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/hid.js +12 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/hid.js.map +1 -0
- package/node_modules/appium-ios-simulator/build/lib/extensions/settings.js +1 -1
- package/node_modules/appium-ios-simulator/build/lib/extensions/settings.js.map +1 -1
- package/node_modules/appium-ios-simulator/build/lib/extensions/ui-client.d.ts.map +1 -1
- package/node_modules/appium-ios-simulator/build/lib/extensions/ui-client.js +1 -2
- package/node_modules/appium-ios-simulator/build/lib/extensions/ui-client.js.map +1 -1
- package/node_modules/appium-ios-simulator/build/lib/simulator-xcode-15.d.ts +6 -0
- package/node_modules/appium-ios-simulator/build/lib/simulator-xcode-15.d.ts.map +1 -1
- package/node_modules/appium-ios-simulator/build/lib/simulator-xcode-15.js +10 -0
- package/node_modules/appium-ios-simulator/build/lib/simulator-xcode-15.js.map +1 -1
- package/node_modules/appium-ios-simulator/build/lib/simulator-xcode-27.d.ts.map +1 -1
- package/node_modules/appium-ios-simulator/build/lib/simulator-xcode-27.js +2 -0
- package/node_modules/appium-ios-simulator/build/lib/simulator-xcode-27.js.map +1 -1
- package/node_modules/appium-ios-simulator/build/lib/types.d.ts +11 -1
- package/node_modules/appium-ios-simulator/build/lib/types.d.ts.map +1 -1
- package/node_modules/appium-ios-simulator/lib/extensions/duo.ts +29 -0
- package/node_modules/appium-ios-simulator/lib/extensions/hid.ts +18 -0
- package/node_modules/appium-ios-simulator/lib/extensions/settings.ts +1 -1
- package/node_modules/appium-ios-simulator/lib/extensions/ui-client.ts +1 -2
- package/node_modules/appium-ios-simulator/lib/simulator-xcode-15.ts +11 -0
- package/node_modules/appium-ios-simulator/lib/simulator-xcode-27.ts +3 -0
- package/node_modules/appium-ios-simulator/lib/types.ts +14 -0
- package/node_modules/appium-ios-simulator/package.json +5 -7
- package/node_modules/appium-remote-debugger/CHANGELOG.md +55 -0
- package/node_modules/appium-remote-debugger/build/lib/rpc/rpc-client.d.ts +1 -1
- package/node_modules/appium-remote-debugger/build/lib/rpc/rpc-client.d.ts.map +1 -1
- package/node_modules/appium-remote-debugger/build/lib/rpc/rpc-client.js +1 -2
- package/node_modules/appium-remote-debugger/build/lib/rpc/rpc-client.js.map +1 -1
- package/node_modules/appium-remote-debugger/lib/rpc/rpc-client.ts +1 -2
- package/node_modules/appium-remote-debugger/package.json +5 -7
- package/node_modules/appium-webdriveragent/CHANGELOG.md +29 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.h +3 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m +30 -1
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIElement+FBTyping.h +7 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIElement+FBTyping.m +20 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Commands/FBElementCommands.m +7 -1
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Commands/FBSessionCommands.m +1 -1
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Info.plist +2 -2
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Routing/FBSession.m +3 -2
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBConfiguration.h +2 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBConfiguration.m +1 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBSettings.h +1 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBSettings.m +1 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBSettingsHandler.m +24 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/FBTypingTest.m +33 -0
- package/node_modules/appium-webdriveragent/WebDriverAgentTests/IntegrationTests/XCUIApplicationHelperTests.m +111 -0
- package/node_modules/appium-webdriveragent/build/lib/webdriveragent.d.ts.map +1 -1
- package/node_modules/appium-webdriveragent/build/lib/webdriveragent.js +1 -2
- package/node_modules/appium-webdriveragent/build/lib/webdriveragent.js.map +1 -1
- package/node_modules/appium-webdriveragent/lib/webdriveragent.ts +1 -2
- package/node_modules/appium-webdriveragent/package.json +5 -7
- package/node_modules/appium-xcode/CHANGELOG.md +7 -0
- package/node_modules/appium-xcode/package.json +4 -4
- package/node_modules/asyncbox/README.md +43 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js +35 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.js +23 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.js +20 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/index.d.ts +12 -0
- package/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/index.js +24 -0
- package/node_modules/asyncbox/build/cjs/lib/index.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +3 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.js +15 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.d.ts +74 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.js +295 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts +15 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.js +36 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.d.ts +17 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.js +57 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts +20 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.js +61 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js +51 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts +16 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.js +45 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.js +32 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.js +20 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/errors.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/errors.js +15 -0
- package/node_modules/asyncbox/build/esm/lib/errors.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/index.d.ts +12 -0
- package/node_modules/asyncbox/build/esm/lib/index.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/index.js +10 -0
- package/node_modules/asyncbox/build/esm/lib/index.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +3 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.js +12 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/lock.d.ts +74 -0
- package/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/lock.js +291 -0
- package/node_modules/asyncbox/build/esm/lib/lock.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +15 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js +33 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/retry.d.ts +17 -0
- package/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/retry.js +53 -0
- package/node_modules/asyncbox/build/esm/lib/retry.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.d.ts +20 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.js +58 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js +48 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts +16 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.js +42 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +1 -0
- package/node_modules/asyncbox/lib/asyncfilter.ts +38 -0
- package/node_modules/asyncbox/lib/asyncmap.ts +29 -0
- package/node_modules/asyncbox/lib/errors.ts +15 -0
- package/node_modules/asyncbox/lib/index.ts +21 -0
- package/node_modules/asyncbox/lib/limit-function.ts +18 -0
- package/node_modules/asyncbox/lib/lock.ts +360 -0
- package/node_modules/asyncbox/lib/long-sleep.ts +38 -0
- package/node_modules/asyncbox/lib/retry.ts +61 -0
- package/node_modules/asyncbox/lib/sleep.ts +79 -0
- package/node_modules/asyncbox/lib/wait-for-condition.ts +52 -0
- package/node_modules/asyncbox/lib/with-timeout.ts +43 -0
- package/node_modules/asyncbox/package.json +8 -8
- package/node_modules/follow-redirects/README.md +27 -1
- package/node_modules/follow-redirects/index.js +1 -5
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/node-devicectl/CHANGELOG.md +7 -0
- package/node_modules/node-devicectl/build/lib/mixins/process.d.ts +1 -1
- package/node_modules/node-devicectl/build/lib/mixins/process.js +1 -1
- package/node_modules/node-devicectl/lib/mixins/process.ts +1 -1
- package/node_modules/node-devicectl/package.json +3 -3
- package/package.json +8 -8
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncbox.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncbox.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncbox.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncbox.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncbox.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncbox.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncbox.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncbox.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/asyncbox.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [12.21.0](https://github.com/appium/appium-xcuitest-driver/compare/v12.20.0...v12.21.0) (2026-10-26)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add keyboardWaitTimeout setting ([#3073](https://github.com/appium/appium-xcuitest-driver/issues/3073)) ([7f4bcbd](https://github.com/appium/appium-xcuitest-driver/commit/7f4bcbd27209dcdad2300cd285274a8fac61f0da))
|
|
6
|
+
|
|
1
7
|
## [12.20.0](https://github.com/appium/appium-xcuitest-driver/compare/v12.19.1...v12.20.0) (2026-10-22)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
Copyright 2012-2018 JS Foundation and other contributors
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
Version 2.0, January 2004
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
12
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
13
|
+
|
|
14
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
15
|
+
the copyright owner that is granting the License.
|
|
16
|
+
|
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
18
|
+
other entities that control, are controlled by, or are under common
|
|
19
|
+
control with that entity. For the purposes of this definition,
|
|
20
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
21
|
+
direction or management of such entity, whether by contract or
|
|
22
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
23
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
24
|
+
|
|
25
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
26
|
+
exercising permissions granted by this License.
|
|
27
|
+
|
|
28
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
29
|
+
including but not limited to software source code, documentation
|
|
30
|
+
source, and configuration files.
|
|
31
|
+
|
|
32
|
+
"Object" form shall mean any form resulting from mechanical
|
|
33
|
+
transformation or translation of a Source form, including but
|
|
34
|
+
not limited to compiled object code, generated documentation,
|
|
35
|
+
and conversions to other media types.
|
|
36
|
+
|
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
38
|
+
Object form, made available under the License, as indicated by a
|
|
39
|
+
copyright notice that is included in or attached to the work
|
|
40
|
+
(an example is provided in the Appendix below).
|
|
41
|
+
|
|
42
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
43
|
+
form, that is based on (or derived from) the Work and for which the
|
|
44
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
45
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
46
|
+
of this License, Derivative Works shall not include works that remain
|
|
47
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
48
|
+
the Work and Derivative Works thereof.
|
|
49
|
+
|
|
50
|
+
"Contribution" shall mean any work of authorship, including
|
|
51
|
+
the original version of the Work and any modifications or additions
|
|
52
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
53
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
54
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
55
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
56
|
+
means any form of electronic, verbal, or written communication sent
|
|
57
|
+
to the Licensor or its representatives, including but not limited to
|
|
58
|
+
communication on electronic mailing lists, source code control systems,
|
|
59
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
60
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
61
|
+
excluding communication that is conspicuously marked or otherwise
|
|
62
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
63
|
+
|
|
64
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
65
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
66
|
+
subsequently incorporated within the Work.
|
|
67
|
+
|
|
68
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
69
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
70
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
71
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
72
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
73
|
+
Work and such Derivative Works in Source or Object form.
|
|
74
|
+
|
|
75
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
76
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
77
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
78
|
+
(except as stated in this section) patent license to make, have made,
|
|
79
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
80
|
+
where such license applies only to those patent claims licensable
|
|
81
|
+
by such Contributor that are necessarily infringed by their
|
|
82
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
83
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
84
|
+
institute patent litigation against any entity (including a
|
|
85
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
86
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
87
|
+
or contributory patent infringement, then any patent licenses
|
|
88
|
+
granted to You under this License for that Work shall terminate
|
|
89
|
+
as of the date such litigation is filed.
|
|
90
|
+
|
|
91
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
92
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
93
|
+
modifications, and in Source or Object form, provided that You
|
|
94
|
+
meet the following conditions:
|
|
95
|
+
|
|
96
|
+
(a) You must give any other recipients of the Work or
|
|
97
|
+
Derivative Works a copy of this License; and
|
|
98
|
+
|
|
99
|
+
(b) You must cause any modified files to carry prominent notices
|
|
100
|
+
stating that You changed the files; and
|
|
101
|
+
|
|
102
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
103
|
+
that You distribute, all copyright, patent, trademark, and
|
|
104
|
+
attribution notices from the Source form of the Work,
|
|
105
|
+
excluding those notices that do not pertain to any part of
|
|
106
|
+
the Derivative Works; and
|
|
107
|
+
|
|
108
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
109
|
+
distribution, then any Derivative Works that You distribute must
|
|
110
|
+
include a readable copy of the attribution notices contained
|
|
111
|
+
within such NOTICE file, excluding those notices that do not
|
|
112
|
+
pertain to any part of the Derivative Works, in at least one
|
|
113
|
+
of the following places: within a NOTICE text file distributed
|
|
114
|
+
as part of the Derivative Works; within the Source form or
|
|
115
|
+
documentation, if provided along with the Derivative Works; or,
|
|
116
|
+
within a display generated by the Derivative Works, if and
|
|
117
|
+
wherever such third-party notices normally appear. The contents
|
|
118
|
+
of the NOTICE file are for informational purposes only and
|
|
119
|
+
do not modify the License. You may add Your own attribution
|
|
120
|
+
notices within Derivative Works that You distribute, alongside
|
|
121
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
122
|
+
that such additional attribution notices cannot be construed
|
|
123
|
+
as modifying the License.
|
|
124
|
+
|
|
125
|
+
You may add Your own copyright statement to Your modifications and
|
|
126
|
+
may provide additional or different license terms and conditions
|
|
127
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
128
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
129
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
130
|
+
the conditions stated in this License.
|
|
131
|
+
|
|
132
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
133
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
134
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
135
|
+
this License, without any additional terms or conditions.
|
|
136
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
137
|
+
the terms of any separate license agreement you may have executed
|
|
138
|
+
with Licensor regarding such Contributions.
|
|
139
|
+
|
|
140
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
141
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
142
|
+
except as required for reasonable and customary use in describing the
|
|
143
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
144
|
+
|
|
145
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
146
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
147
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
148
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
149
|
+
implied, including, without limitation, any warranties or conditions
|
|
150
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
151
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
152
|
+
appropriateness of using or redistributing the Work and assume any
|
|
153
|
+
risks associated with Your exercise of permissions under this License.
|
|
154
|
+
|
|
155
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
156
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
157
|
+
unless required by applicable law (such as deliberate and grossly
|
|
158
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
159
|
+
liable to You for damages, including any direct, indirect, special,
|
|
160
|
+
incidental, or consequential damages of any character arising as a
|
|
161
|
+
result of this License or out of the use or inability to use the
|
|
162
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
163
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
164
|
+
other commercial damages or losses), even if such Contributor
|
|
165
|
+
has been advised of the possibility of such damages.
|
|
166
|
+
|
|
167
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
168
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
169
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
170
|
+
or other liability obligations and/or rights consistent with this
|
|
171
|
+
License. However, in accepting such obligations, You may act only
|
|
172
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
173
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
174
|
+
defend, and hold each Contributor harmless for any liability
|
|
175
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
176
|
+
of your accepting any such warranty or additional liability.
|
|
177
|
+
|
|
178
|
+
END OF TERMS AND CONDITIONS
|
|
179
|
+
|
|
180
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
181
|
+
|
|
182
|
+
To apply the Apache License to your work, attach the following
|
|
183
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
184
|
+
replaced with your own identifying information. (Don't include
|
|
185
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
186
|
+
comment syntax for the file format. We also recommend that a
|
|
187
|
+
file or class name and description of purpose be included on the
|
|
188
|
+
same "printed page" as the copyright notice for easier
|
|
189
|
+
identification within third-party archives.
|
|
190
|
+
|
|
191
|
+
Copyright 2012 JS Foundation and other contributors
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
asyncbox
|
|
2
|
+
========
|
|
3
|
+
|
|
4
|
+
A collection of ES7 async/await utilities. Install via NPM:
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
npm install asyncbox
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Published as both ESM and CommonJS, so `import {sleep} from 'asyncbox'` and `const {sleep} = require('asyncbox')` both work.
|
|
11
|
+
|
|
12
|
+
Then, behold!
|
|
13
|
+
|
|
14
|
+
### Sleep
|
|
15
|
+
|
|
16
|
+
An async/await version of setTimeout
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
import { sleep } from 'asyncbox';
|
|
20
|
+
|
|
21
|
+
async function myFn () {
|
|
22
|
+
// do some stuff
|
|
23
|
+
await sleep(1000); // wait one second
|
|
24
|
+
// do some other stuff
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### withTimeout
|
|
29
|
+
|
|
30
|
+
Race a promise against a deadline. If the promise settles first, its result is returned; if the deadline passes first, the call rejects. By default that rejection is a `TimeoutError` whose message includes how long you waited; you can pass a non-empty string for a custom `TimeoutError` message, or an `Error` instance to reject with that exact value. Omitted or other falsy third arguments (except a real `Error`) use the default timeout message.
|
|
31
|
+
|
|
32
|
+
`withTimeout` only stops *waiting* on the promise: the underlying async work keeps running (there is no built-in cancellation). Aborting a `fetch`, clearing timers, or tearing down other resources is the caller’s responsibility if you need that behavior.
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
import { withTimeout, TimeoutError } from 'asyncbox';
|
|
36
|
+
|
|
37
|
+
// default: TimeoutError, message includes timeoutMs
|
|
38
|
+
await withTimeout(fetch('/slow').then((r) => r.json()), 5000);
|
|
39
|
+
|
|
40
|
+
// custom TimeoutError message
|
|
41
|
+
await withTimeout(slowWork(), 10_000, 'slowWork exceeded 10s');
|
|
42
|
+
|
|
43
|
+
// reject with a specific error you constructed (same object on timeout)
|
|
44
|
+
const err = new MyAppError('upstream did not respond');
|
|
45
|
+
await withTimeout(slowWork(), 5000, err);
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Cancelling an in-flight `fetch` when the timeout wins:
|
|
49
|
+
|
|
50
|
+
```js
|
|
51
|
+
import { withTimeout, TimeoutError } from 'asyncbox';
|
|
52
|
+
|
|
53
|
+
async function fetchJsonWithTimeout(url, timeoutMs) {
|
|
54
|
+
const controller = new AbortController();
|
|
55
|
+
const body = fetch(url, { signal: controller.signal }).then((r) => r.json());
|
|
56
|
+
try {
|
|
57
|
+
return await withTimeout(body, timeoutMs);
|
|
58
|
+
} catch (err) {
|
|
59
|
+
if (err instanceof TimeoutError) {
|
|
60
|
+
controller.abort();
|
|
61
|
+
}
|
|
62
|
+
throw err;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Long Sleep
|
|
68
|
+
|
|
69
|
+
Sometimes `Promise.delay` or `setTimeout` are inaccurate for large wait times. To safely wait for these long times (e.g. in the 5+ minute range), you can use `longSleep`:
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
import { longSleep } from 'asyncbox';
|
|
73
|
+
|
|
74
|
+
async function myFn () {
|
|
75
|
+
await longSleep(10 * 60 * 1000); // wait for 10 mins
|
|
76
|
+
await longSleep(5000, {thresholdMs: 10000}); // wait for 5s. Anything below the thresholdMs will use a single sleep
|
|
77
|
+
await longSleep(5000, {intervalMs: 500}); // check the clock every 500ms to see if waiting should stop
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
You can also pass a `progressCb` option which is a callback function that receives an object with the properties `elapsedMs`, `timeLeft`, and `progress`. This will be called on every wait interval so you can do your wait logging or whatever.
|
|
82
|
+
|
|
83
|
+
```js
|
|
84
|
+
function progressCb({elapsedMs, timeLeft, progress}) {
|
|
85
|
+
console.log(`We are {progress * 100}% complete waiting`);
|
|
86
|
+
}
|
|
87
|
+
await longSleep(10 * 60 * 1000, {progressCb});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Retry
|
|
91
|
+
|
|
92
|
+
An async/await way of running a method until it doesn't throw an error
|
|
93
|
+
|
|
94
|
+
```js
|
|
95
|
+
import { sleep, retry } from 'asyncbox';
|
|
96
|
+
|
|
97
|
+
async function flakeyFunction (val1, val2) {
|
|
98
|
+
if (val1 < 10) {
|
|
99
|
+
throw new Error("this is a flakey value");
|
|
100
|
+
}
|
|
101
|
+
await sleep(1000);
|
|
102
|
+
return val1 + val2;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
async function myFn () {
|
|
106
|
+
let randVals = [Math.random() * 100, Math.random() * 100];
|
|
107
|
+
|
|
108
|
+
// run flakeyFunction up to 3 times until it succeeds.
|
|
109
|
+
// if it doesn't, we'll get the error thrown in this context
|
|
110
|
+
let randSum = await retry(3, flakeyFunction, ...randVals);
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
You can also use `retryInterval` to add a sleep in between retries. This can be
|
|
115
|
+
useful if you want to throttle how fast we retry:
|
|
116
|
+
|
|
117
|
+
```js
|
|
118
|
+
await retryInterval(3, 1500, expensiveFunction, ...args);
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Filter/Map
|
|
122
|
+
|
|
123
|
+
Filter and map are pretty handy concepts, and now you can write filter and map
|
|
124
|
+
functions that execute asynchronously!
|
|
125
|
+
|
|
126
|
+
```js
|
|
127
|
+
import { asyncmap, asyncfilter } from 'asyncbox';
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Then in your async functions, you can do:
|
|
131
|
+
|
|
132
|
+
```js
|
|
133
|
+
const items = [1, 2, 3, 4];
|
|
134
|
+
const slowSquare = async (n) => { await sleep(5); return n * n; };
|
|
135
|
+
let newItems = await asyncmap(items, slowSquare);
|
|
136
|
+
console.log(newItems); // [1, 4, 9, 16];
|
|
137
|
+
|
|
138
|
+
const slowEven = async (n) => { await sleep(5); return n % 2 === 0; };
|
|
139
|
+
newItems = await asyncfilter(items, slowEven);
|
|
140
|
+
console.log(newItems); // [2, 4];
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
By default, `asyncmap` and `asyncfilter` run their operations in parallel, but you
|
|
144
|
+
can set the third argument to `false` to enforce sequential execution, or set a custom
|
|
145
|
+
concurrency pool limit using `{concurrency: <number>}`:
|
|
146
|
+
|
|
147
|
+
```js
|
|
148
|
+
const items = [1, 2, 3, 4];
|
|
149
|
+
const slowSquare = async (n) => { await sleep(5); return n * n; };
|
|
150
|
+
// this will run sequentially (~20ms)
|
|
151
|
+
const newItemsSeq = await asyncmap(items, slowSquare, false);
|
|
152
|
+
// this will handle 2 items at a time (~10ms)
|
|
153
|
+
const newItemsMaxTwo = await asyncmap(items, slowSquare, {concurrency: 2});
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### waitForCondition
|
|
157
|
+
|
|
158
|
+
Takes a condition (a function returning a boolean or boolean promise),
|
|
159
|
+
and waits until the condition is true.
|
|
160
|
+
|
|
161
|
+
Throws a `/Condition unmet/` error if the condition has not been
|
|
162
|
+
satisfied within the allocated time, unless an error is provided in
|
|
163
|
+
the options, as the `error` property, which is either thrown itself, or
|
|
164
|
+
used as the message.
|
|
165
|
+
|
|
166
|
+
The condition result is returned if it is not falsy. If the condition
|
|
167
|
+
throws an error then this exception will be immediately passed through.
|
|
168
|
+
|
|
169
|
+
The default options are: `{ waitMs: 5000, intervalMs: 500 }`
|
|
170
|
+
|
|
171
|
+
```js
|
|
172
|
+
// define your own condition
|
|
173
|
+
function condFn () { return Math.random()*1000 > 995; }
|
|
174
|
+
|
|
175
|
+
// with default params
|
|
176
|
+
await waitForCondition(condFn);
|
|
177
|
+
|
|
178
|
+
// with options
|
|
179
|
+
await waitForCondition(condFn, {
|
|
180
|
+
waitMs: 300000,
|
|
181
|
+
intervalMs: 10000
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
// pass a logger to get extra debug info
|
|
185
|
+
await waitForCondition(condFn, {
|
|
186
|
+
waitMs: 300000,
|
|
187
|
+
intervalMs: 10000
|
|
188
|
+
logger: myLogger // expects a debug method
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
// pass an error string to get that message in the resulting exception
|
|
192
|
+
try {
|
|
193
|
+
await waitForCondition(condFn, {
|
|
194
|
+
error: 'Unable to satisfy condition'
|
|
195
|
+
});
|
|
196
|
+
} catch (err) {
|
|
197
|
+
// err.message === 'Unable to satisfy condition'
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// pass an error instance to be thrown
|
|
201
|
+
const error = new Error('Unable to satisfy condition');
|
|
202
|
+
try {
|
|
203
|
+
await waitForCondition(condFn, {
|
|
204
|
+
error: error
|
|
205
|
+
});
|
|
206
|
+
} catch (err) {
|
|
207
|
+
// err === error
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Run the tests
|
|
212
|
+
|
|
213
|
+
```
|
|
214
|
+
npm test
|
|
215
|
+
```
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parameter provided to a progress callback
|
|
3
|
+
*/
|
|
4
|
+
export interface Progress {
|
|
5
|
+
/** Elapsed time in milliseconds since the operation started */
|
|
6
|
+
elapsedMs: number;
|
|
7
|
+
/** Remaining time in milliseconds until the operation completes */
|
|
8
|
+
timeLeft: number;
|
|
9
|
+
/** Progress as a number between 0 and 1 (0 = not started, 1 = complete) */
|
|
10
|
+
progress: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Progress callback for {@link longSleep}
|
|
14
|
+
*/
|
|
15
|
+
export type ProgressCallback = (progress: Progress) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Options for {@link longSleep}
|
|
18
|
+
*/
|
|
19
|
+
export interface LongSleepOptions {
|
|
20
|
+
/** Minimum duration in milliseconds before using long sleep behavior.
|
|
21
|
+
* @default 5000
|
|
22
|
+
*/
|
|
23
|
+
thresholdMs?: number;
|
|
24
|
+
/** Interval in milliseconds between progress callbacks.
|
|
25
|
+
* @default 1000
|
|
26
|
+
*/
|
|
27
|
+
intervalMs?: number;
|
|
28
|
+
/** Optional callback function to receive progress updates during the sleep */
|
|
29
|
+
progressCb?: ProgressCallback | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Options for {@link asyncmap} and {@link asyncfilter}
|
|
33
|
+
*/
|
|
34
|
+
export type MapFilterOptions = boolean | {
|
|
35
|
+
concurrency: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Object form of {@link sleep}'s argument: duration plus optional cancellation rejection override.
|
|
39
|
+
* Structural typing allows class instances; {@link sleep} accepts any non-array object with a finite `ms`.
|
|
40
|
+
*/
|
|
41
|
+
export interface SleepOptions {
|
|
42
|
+
/** Duration in milliseconds */
|
|
43
|
+
ms: number;
|
|
44
|
+
/**
|
|
45
|
+
* When {@link sleep}'s `cancel` runs: a non-empty string becomes {@link PromiseCancellationError}
|
|
46
|
+
* with that message; an `Error` rejects with that same instance; `null` resolves the promise
|
|
47
|
+
* instead of rejecting; omitted, `undefined`, or `''` use the default {@link PromiseCancellationError}.
|
|
48
|
+
*/
|
|
49
|
+
cancelError?: string | Error | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Argument to {@link sleep}: either milliseconds or an options object (see {@link SleepOptions}).
|
|
53
|
+
*/
|
|
54
|
+
export type SleepArg = number | SleepOptions;
|
|
55
|
+
/**
|
|
56
|
+
* A promise with a {@linkcode cancel} method (e.g. from {@link sleep}).
|
|
57
|
+
*
|
|
58
|
+
* @typeParam T - Resolved value type; {@link sleep} uses `void`.
|
|
59
|
+
*/
|
|
60
|
+
export type CancellablePromise<T = void> = Promise<T> & {
|
|
61
|
+
cancel: () => void;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Options for {@link waitForCondition}
|
|
65
|
+
*/
|
|
66
|
+
export interface WaitForConditionOptions {
|
|
67
|
+
/** Maximum time to wait in milliseconds.
|
|
68
|
+
* @default 5000
|
|
69
|
+
*/
|
|
70
|
+
waitMs?: number;
|
|
71
|
+
/** Interval in milliseconds between condition checks.
|
|
72
|
+
* @default 500
|
|
73
|
+
*/
|
|
74
|
+
intervalMs?: number;
|
|
75
|
+
/** Optional logger object with a debug method for logging wait progress */
|
|
76
|
+
logger?: {
|
|
77
|
+
debug: (...args: any[]) => void;
|
|
78
|
+
};
|
|
79
|
+
/** Custom error message (string) or Error object to throw if condition is not met.
|
|
80
|
+
* If not provided, a default error is thrown
|
|
81
|
+
*/
|
|
82
|
+
error?: string | Error;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG;IAAC,WAAW,EAAE,MAAM,CAAA;CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAC;AAE7C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG;IACtD,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;KACjC,CAAC;IACF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parameter provided to a progress callback
|
|
3
|
+
*/
|
|
4
|
+
export interface Progress {
|
|
5
|
+
/** Elapsed time in milliseconds since the operation started */
|
|
6
|
+
elapsedMs: number;
|
|
7
|
+
/** Remaining time in milliseconds until the operation completes */
|
|
8
|
+
timeLeft: number;
|
|
9
|
+
/** Progress as a number between 0 and 1 (0 = not started, 1 = complete) */
|
|
10
|
+
progress: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Progress callback for {@link longSleep}
|
|
14
|
+
*/
|
|
15
|
+
export type ProgressCallback = (progress: Progress) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Options for {@link longSleep}
|
|
18
|
+
*/
|
|
19
|
+
export interface LongSleepOptions {
|
|
20
|
+
/** Minimum duration in milliseconds before using long sleep behavior.
|
|
21
|
+
* @default 5000
|
|
22
|
+
*/
|
|
23
|
+
thresholdMs?: number;
|
|
24
|
+
/** Interval in milliseconds between progress callbacks.
|
|
25
|
+
* @default 1000
|
|
26
|
+
*/
|
|
27
|
+
intervalMs?: number;
|
|
28
|
+
/** Optional callback function to receive progress updates during the sleep */
|
|
29
|
+
progressCb?: ProgressCallback | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Options for {@link asyncmap} and {@link asyncfilter}
|
|
33
|
+
*/
|
|
34
|
+
export type MapFilterOptions = boolean | {
|
|
35
|
+
concurrency: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Object form of {@link sleep}'s argument: duration plus optional cancellation rejection override.
|
|
39
|
+
* Structural typing allows class instances; {@link sleep} accepts any non-array object with a finite `ms`.
|
|
40
|
+
*/
|
|
41
|
+
export interface SleepOptions {
|
|
42
|
+
/** Duration in milliseconds */
|
|
43
|
+
ms: number;
|
|
44
|
+
/**
|
|
45
|
+
* When {@link sleep}'s `cancel` runs: a non-empty string becomes {@link PromiseCancellationError}
|
|
46
|
+
* with that message; an `Error` rejects with that same instance; `null` resolves the promise
|
|
47
|
+
* instead of rejecting; omitted, `undefined`, or `''` use the default {@link PromiseCancellationError}.
|
|
48
|
+
*/
|
|
49
|
+
cancelError?: string | Error | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Argument to {@link sleep}: either milliseconds or an options object (see {@link SleepOptions}).
|
|
53
|
+
*/
|
|
54
|
+
export type SleepArg = number | SleepOptions;
|
|
55
|
+
/**
|
|
56
|
+
* A promise with a {@linkcode cancel} method (e.g. from {@link sleep}).
|
|
57
|
+
*
|
|
58
|
+
* @typeParam T - Resolved value type; {@link sleep} uses `void`.
|
|
59
|
+
*/
|
|
60
|
+
export type CancellablePromise<T = void> = Promise<T> & {
|
|
61
|
+
cancel: () => void;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Options for {@link waitForCondition}
|
|
65
|
+
*/
|
|
66
|
+
export interface WaitForConditionOptions {
|
|
67
|
+
/** Maximum time to wait in milliseconds.
|
|
68
|
+
* @default 5000
|
|
69
|
+
*/
|
|
70
|
+
waitMs?: number;
|
|
71
|
+
/** Interval in milliseconds between condition checks.
|
|
72
|
+
* @default 500
|
|
73
|
+
*/
|
|
74
|
+
intervalMs?: number;
|
|
75
|
+
/** Optional logger object with a debug method for logging wait progress */
|
|
76
|
+
logger?: {
|
|
77
|
+
debug: (...args: any[]) => void;
|
|
78
|
+
};
|
|
79
|
+
/** Custom error message (string) or Error object to throw if condition is not met.
|
|
80
|
+
* If not provided, a default error is thrown
|
|
81
|
+
*/
|
|
82
|
+
error?: string | Error;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG;IAAC,WAAW,EAAE,MAAM,CAAA;CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAC;AAE7C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG;IACtD,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;KACjC,CAAC;IACF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/types.ts"],"names":[],"mappings":""}
|