brave-real-puppeteer-core 24.26.1 → 24.33.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/README.md +5 -5
- package/advanced-stealth.js +1 -1
- package/lib/cjs/puppeteer/api/BluetoothEmulation.d.ts +96 -0
- package/lib/cjs/puppeteer/api/BluetoothEmulation.d.ts.map +1 -0
- package/lib/cjs/puppeteer/api/BluetoothEmulation.js +8 -0
- package/lib/cjs/puppeteer/api/BluetoothEmulation.js.map +1 -0
- package/lib/cjs/puppeteer/api/Browser.d.ts +111 -2
- package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/lib/cjs/puppeteer/api/Browser.js +4 -2
- package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/lib/cjs/puppeteer/api/BrowserContext.d.ts +5 -3
- package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
- package/lib/cjs/puppeteer/api/CDPSession.d.ts.map +1 -1
- package/lib/cjs/puppeteer/api/CDPSession.js.map +1 -1
- package/lib/cjs/puppeteer/api/DeviceRequestPrompt.d.ts +62 -0
- package/lib/cjs/puppeteer/api/DeviceRequestPrompt.d.ts.map +1 -0
- package/lib/cjs/puppeteer/api/DeviceRequestPrompt.js +38 -0
- package/lib/cjs/puppeteer/api/DeviceRequestPrompt.js.map +1 -0
- package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
- package/lib/cjs/puppeteer/api/Frame.d.ts +1 -1
- package/lib/cjs/puppeteer/api/Frame.d.ts.map +1 -1
- package/lib/cjs/puppeteer/api/Frame.js.map +1 -1
- package/lib/cjs/puppeteer/api/Page.d.ts +39 -5
- package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/lib/cjs/puppeteer/api/api.d.ts +2 -0
- package/lib/cjs/puppeteer/api/api.d.ts.map +1 -1
- package/lib/cjs/puppeteer/api/api.js +1 -0
- package/lib/cjs/puppeteer/api/api.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/BluetoothEmulation.d.ts +18 -0
- package/lib/cjs/puppeteer/bidi/BluetoothEmulation.d.ts.map +1 -0
- package/lib/cjs/puppeteer/bidi/BluetoothEmulation.js +42 -0
- package/lib/cjs/puppeteer/bidi/BluetoothEmulation.js.map +1 -0
- package/lib/cjs/puppeteer/bidi/Browser.d.ts +6 -1
- package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/Browser.js +16 -0
- package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/BrowserConnector.js +4 -3
- package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +3 -3
- package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/BrowserContext.js +6 -3
- package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/Connection.d.ts +2 -1
- package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/Connection.js +3 -2
- package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.d.ts +27 -0
- package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.d.ts.map +1 -0
- package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.js +90 -0
- package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.js.map +1 -0
- package/lib/cjs/puppeteer/bidi/Frame.d.ts +3 -1
- package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/Frame.js +3 -2
- package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts +0 -1
- package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/HTTPRequest.js +0 -25
- package/lib/cjs/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/Page.d.ts +10 -8
- package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/Page.js +63 -47
- package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +8 -0
- package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +55 -2
- package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/lib/cjs/puppeteer/bidi/core/Connection.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +1 -12
- package/lib/cjs/puppeteer/bidi/core/Realm.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/util.d.ts.map +1 -1
- package/lib/cjs/puppeteer/bidi/util.js +7 -0
- package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/Accessibility.d.ts +6 -0
- package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/Accessibility.js +11 -3
- package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/BluetoothEmulation.d.ts +18 -0
- package/lib/cjs/puppeteer/cdp/BluetoothEmulation.d.ts.map +1 -0
- package/lib/cjs/puppeteer/cdp/BluetoothEmulation.js +30 -0
- package/lib/cjs/puppeteer/cdp/BluetoothEmulation.js.map +1 -0
- package/lib/cjs/puppeteer/cdp/Browser.d.ts +10 -5
- package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/Browser.js +61 -8
- package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/BrowserConnector.js +4 -2
- package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +3 -2
- package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/BrowserContext.js +4 -4
- package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/CdpSession.d.ts +1 -1
- package/lib/cjs/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/CdpSession.js +2 -1
- package/lib/cjs/puppeteer/cdp/CdpSession.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/Connection.d.ts +6 -1
- package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/Connection.js +11 -2
- package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.d.ts +5 -64
- package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js +10 -76
- package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/EmulationManager.d.ts +1 -0
- package/lib/cjs/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/EmulationManager.js +22 -0
- package/lib/cjs/puppeteer/cdp/EmulationManager.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/lib/cjs/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/Frame.d.ts +1 -1
- package/lib/cjs/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/Frame.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/FrameManager.d.ts +2 -2
- package/lib/cjs/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/FrameManager.js +1 -1
- package/lib/cjs/puppeteer/cdp/FrameManager.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts +1 -0
- package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/HTTPRequest.js +4 -1
- package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/NetworkEventManager.d.ts +1 -0
- package/lib/cjs/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/NetworkEventManager.js +8 -0
- package/lib/cjs/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/NetworkManager.js +25 -1
- package/lib/cjs/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/Page.d.ts +9 -4
- package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/Page.js +29 -6
- package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/TargetManager.d.ts +1 -1
- package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/TargetManager.js +29 -27
- package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/WebWorker.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/WebWorker.js +8 -3
- package/lib/cjs/puppeteer/cdp/WebWorker.js.map +1 -1
- package/lib/cjs/puppeteer/cdp/cdp.d.ts +1 -0
- package/lib/cjs/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/lib/cjs/puppeteer/cdp/cdp.js +1 -0
- package/lib/cjs/puppeteer/cdp/cdp.js.map +1 -1
- package/lib/cjs/puppeteer/common/BrowserConnector.js +47 -3
- package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +2 -0
- package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/lib/cjs/puppeteer/common/CallbackRegistry.js +4 -3
- package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +22 -0
- package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +8 -1
- package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/lib/cjs/puppeteer/common/ConsoleMessage.js +11 -1
- package/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +4 -0
- package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/lib/cjs/puppeteer/node/BrowserLauncher.js +10 -4
- package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +1 -1
- package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/lib/cjs/puppeteer/node/ChromeLauncher.js +2 -13
- package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +5 -3
- package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/lib/cjs/puppeteer/node/LaunchOptions.js +17 -0
- package/lib/cjs/puppeteer/node/LaunchOptions.js.map +1 -1
- package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/lib/cjs/puppeteer/revisions.js +3 -3
- package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/lib/cjs/puppeteer/util/disposable.d.ts +2 -2
- package/lib/cjs/puppeteer/util/disposable.d.ts.map +1 -1
- package/lib/cjs/puppeteer/util/disposable.js +3 -1
- package/lib/cjs/puppeteer/util/disposable.js.map +1 -1
- package/lib/cjs/puppeteer/util/util.d.ts +1 -0
- package/lib/cjs/puppeteer/util/util.d.ts.map +1 -1
- package/lib/cjs/puppeteer/util/util.js +1 -0
- package/lib/cjs/puppeteer/util/util.js.map +1 -1
- package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/lib/cjs/puppeteer/util/version.js +1 -1
- package/lib/es5-iife/puppeteer-core-browser.d.ts +297 -19
- package/lib/es5-iife/puppeteer-core-browser.js +456 -215
- package/lib/esm/puppeteer/api/BluetoothEmulation.d.ts +96 -0
- package/lib/esm/puppeteer/api/BluetoothEmulation.d.ts.map +1 -0
- package/lib/esm/puppeteer/api/BluetoothEmulation.js +7 -0
- package/lib/esm/puppeteer/api/BluetoothEmulation.js.map +1 -0
- package/lib/esm/puppeteer/api/Browser.d.ts +111 -2
- package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/lib/esm/puppeteer/api/Browser.js +4 -2
- package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/lib/esm/puppeteer/api/BrowserContext.d.ts +5 -3
- package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
- package/lib/esm/puppeteer/api/CDPSession.d.ts.map +1 -1
- package/lib/esm/puppeteer/api/CDPSession.js.map +1 -1
- package/lib/esm/puppeteer/api/DeviceRequestPrompt.d.ts +62 -0
- package/lib/esm/puppeteer/api/DeviceRequestPrompt.d.ts.map +1 -0
- package/lib/esm/puppeteer/api/DeviceRequestPrompt.js +34 -0
- package/lib/esm/puppeteer/api/DeviceRequestPrompt.js.map +1 -0
- package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
- package/lib/esm/puppeteer/api/Frame.d.ts +1 -1
- package/lib/esm/puppeteer/api/Frame.d.ts.map +1 -1
- package/lib/esm/puppeteer/api/Frame.js.map +1 -1
- package/lib/esm/puppeteer/api/Input.d.ts +1 -1
- package/lib/esm/puppeteer/api/Input.d.ts.map +1 -1
- package/lib/esm/puppeteer/api/Page.d.ts +39 -5
- package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/lib/esm/puppeteer/api/api.d.ts +2 -0
- package/lib/esm/puppeteer/api/api.d.ts.map +1 -1
- package/lib/esm/puppeteer/api/api.js +1 -0
- package/lib/esm/puppeteer/api/api.js.map +1 -1
- package/lib/esm/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/lib/esm/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/lib/esm/puppeteer/bidi/BluetoothEmulation.d.ts +18 -0
- package/lib/esm/puppeteer/bidi/BluetoothEmulation.d.ts.map +1 -0
- package/lib/esm/puppeteer/bidi/BluetoothEmulation.js +38 -0
- package/lib/esm/puppeteer/bidi/BluetoothEmulation.js.map +1 -0
- package/lib/esm/puppeteer/bidi/Browser.d.ts +6 -1
- package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/Browser.js +16 -0
- package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
- package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/BrowserConnector.js +4 -3
- package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +3 -3
- package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/BrowserContext.js +6 -3
- package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/lib/esm/puppeteer/bidi/Connection.d.ts +2 -1
- package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/Connection.js +3 -2
- package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
- package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.d.ts +27 -0
- package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.d.ts.map +1 -0
- package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.js +85 -0
- package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.js.map +1 -0
- package/lib/esm/puppeteer/bidi/Frame.d.ts +3 -1
- package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/Frame.js +3 -2
- package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
- package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts +0 -1
- package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/HTTPRequest.js +0 -25
- package/lib/esm/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/lib/esm/puppeteer/bidi/Page.d.ts +10 -8
- package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/Page.js +64 -48
- package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +8 -0
- package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +55 -2
- package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/lib/esm/puppeteer/bidi/core/Connection.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/core/Realm.d.ts +1 -12
- package/lib/esm/puppeteer/bidi/core/Realm.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/util.d.ts.map +1 -1
- package/lib/esm/puppeteer/bidi/util.js +7 -0
- package/lib/esm/puppeteer/bidi/util.js.map +1 -1
- package/lib/esm/puppeteer/cdp/Accessibility.d.ts +6 -0
- package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/Accessibility.js +11 -3
- package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/lib/esm/puppeteer/cdp/BluetoothEmulation.d.ts +18 -0
- package/lib/esm/puppeteer/cdp/BluetoothEmulation.d.ts.map +1 -0
- package/lib/esm/puppeteer/cdp/BluetoothEmulation.js +26 -0
- package/lib/esm/puppeteer/cdp/BluetoothEmulation.js.map +1 -0
- package/lib/esm/puppeteer/cdp/Browser.d.ts +10 -5
- package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/Browser.js +61 -8
- package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/BrowserConnector.js +4 -2
- package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +3 -2
- package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/BrowserContext.js +4 -4
- package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/lib/esm/puppeteer/cdp/CdpSession.d.ts +1 -1
- package/lib/esm/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/CdpSession.js +2 -1
- package/lib/esm/puppeteer/cdp/CdpSession.js.map +1 -1
- package/lib/esm/puppeteer/cdp/Connection.d.ts +6 -1
- package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/Connection.js +11 -2
- package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
- package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts +5 -64
- package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +7 -72
- package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js.map +1 -1
- package/lib/esm/puppeteer/cdp/EmulationManager.d.ts +1 -0
- package/lib/esm/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/EmulationManager.js +22 -0
- package/lib/esm/puppeteer/cdp/EmulationManager.js.map +1 -1
- package/lib/esm/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/lib/esm/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/lib/esm/puppeteer/cdp/Frame.d.ts +1 -1
- package/lib/esm/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/Frame.js.map +1 -1
- package/lib/esm/puppeteer/cdp/FrameManager.d.ts +2 -2
- package/lib/esm/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/FrameManager.js +2 -2
- package/lib/esm/puppeteer/cdp/FrameManager.js.map +1 -1
- package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts +1 -0
- package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/HTTPRequest.js +4 -1
- package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/lib/esm/puppeteer/cdp/NetworkEventManager.d.ts +1 -0
- package/lib/esm/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/NetworkEventManager.js +8 -0
- package/lib/esm/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/NetworkManager.js +25 -1
- package/lib/esm/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/lib/esm/puppeteer/cdp/Page.d.ts +9 -4
- package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/Page.js +29 -6
- package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/lib/esm/puppeteer/cdp/TargetManager.d.ts +1 -1
- package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/TargetManager.js +30 -28
- package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
- package/lib/esm/puppeteer/cdp/WebWorker.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/WebWorker.js +8 -3
- package/lib/esm/puppeteer/cdp/WebWorker.js.map +1 -1
- package/lib/esm/puppeteer/cdp/cdp.d.ts +1 -0
- package/lib/esm/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/lib/esm/puppeteer/cdp/cdp.js +1 -0
- package/lib/esm/puppeteer/cdp/cdp.js.map +1 -1
- package/lib/esm/puppeteer/common/BrowserConnector.js +48 -4
- package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +2 -0
- package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/lib/esm/puppeteer/common/CallbackRegistry.js +4 -3
- package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/lib/esm/puppeteer/common/ConnectOptions.d.ts +22 -0
- package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/lib/esm/puppeteer/common/ConsoleMessage.d.ts +8 -1
- package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/lib/esm/puppeteer/common/ConsoleMessage.js +11 -1
- package/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +4 -0
- package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/lib/esm/puppeteer/node/BrowserLauncher.js +10 -4
- package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/lib/esm/puppeteer/node/ChromeLauncher.d.ts +1 -1
- package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/lib/esm/puppeteer/node/ChromeLauncher.js +2 -13
- package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/lib/esm/puppeteer/node/LaunchOptions.d.ts +5 -3
- package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/lib/esm/puppeteer/node/LaunchOptions.js +16 -1
- package/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -1
- package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/lib/esm/puppeteer/revisions.js +3 -3
- package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/lib/esm/puppeteer/util/disposable.d.ts +2 -2
- package/lib/esm/puppeteer/util/disposable.d.ts.map +1 -1
- package/lib/esm/puppeteer/util/disposable.js +2 -2
- package/lib/esm/puppeteer/util/disposable.js.map +1 -1
- package/lib/esm/puppeteer/util/util.d.ts +1 -0
- package/lib/esm/puppeteer/util/util.d.ts.map +1 -1
- package/lib/esm/puppeteer/util/util.js +1 -0
- package/lib/esm/puppeteer/util/util.js.map +1 -1
- package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/lib/esm/puppeteer/util/version.js +1 -1
- package/lib/types.d.ts +297 -19
- package/package.json +15 -15
- package/src/api/BluetoothEmulation.ts +103 -0
- package/src/api/Browser.ts +130 -3
- package/src/api/BrowserContext.ts +10 -3
- package/src/api/CDPSession.ts +1 -2
- package/src/api/DeviceRequestPrompt.ts +71 -0
- package/src/api/ElementHandle.ts +2 -4
- package/src/api/Frame.ts +3 -5
- package/src/api/Page.ts +46 -9
- package/src/api/api.ts +2 -0
- package/src/bidi/BidiOverCdp.ts +1 -0
- package/src/bidi/BluetoothEmulation.ts +52 -0
- package/src/bidi/Browser.ts +28 -0
- package/src/bidi/BrowserConnector.ts +8 -1
- package/src/bidi/BrowserContext.ts +9 -6
- package/src/bidi/Connection.ts +4 -1
- package/src/bidi/DeviceRequestPrompt.ts +138 -0
- package/src/bidi/Frame.ts +7 -3
- package/src/bidi/HTTPRequest.ts +0 -41
- package/src/bidi/Page.ts +86 -71
- package/src/bidi/core/BrowsingContext.ts +80 -2
- package/src/bidi/core/Connection.ts +3 -2
- package/src/bidi/util.ts +8 -0
- package/src/cdp/Accessibility.ts +17 -3
- package/src/cdp/BluetoothEmulation.ts +47 -0
- package/src/cdp/Browser.ts +95 -10
- package/src/cdp/BrowserConnector.ts +4 -0
- package/src/cdp/BrowserContext.ts +5 -4
- package/src/cdp/CdpSession.ts +3 -2
- package/src/cdp/Connection.ts +15 -1
- package/src/cdp/DeviceRequestPrompt.ts +8 -79
- package/src/cdp/EmulationManager.ts +30 -0
- package/src/cdp/ExtensionTransport.ts +5 -1
- package/src/cdp/Frame.ts +3 -5
- package/src/cdp/FrameManager.ts +9 -4
- package/src/cdp/HTTPRequest.ts +5 -1
- package/src/cdp/NetworkEventManager.ts +16 -1
- package/src/cdp/NetworkManager.ts +31 -1
- package/src/cdp/Page.ts +48 -13
- package/src/cdp/TargetManager.ts +36 -43
- package/src/cdp/WebWorker.ts +8 -3
- package/src/cdp/cdp.ts +1 -0
- package/src/common/BrowserConnector.ts +67 -4
- package/src/common/CallbackRegistry.ts +7 -5
- package/src/common/ConnectOptions.ts +28 -0
- package/src/common/ConsoleMessage.ts +14 -0
- package/src/common/EventEmitter.ts +3 -3
- package/src/node/BrowserLauncher.ts +22 -1
- package/src/node/ChromeLauncher.ts +5 -17
- package/src/node/LaunchOptions.ts +23 -7
- package/src/revisions.ts +3 -3
- package/src/util/disposable.ts +2 -2
- package/src/util/util.ts +1 -0
- package/src/util/version.ts +1 -1
- package/src/templates/version.ts.tmpl +0 -4
package/lib/types.d.ts
CHANGED
|
@@ -91,6 +91,33 @@ export declare interface ActionOptions {
|
|
|
91
91
|
*/
|
|
92
92
|
export declare type ActionResult = 'continue' | 'abort' | 'respond';
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* @license
|
|
96
|
+
* Copyright 2025 Google Inc.
|
|
97
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
* Emulated bluetooth adapter state.
|
|
102
|
+
*/
|
|
103
|
+
export declare type AdapterState = 'absent' | 'powered-off' | 'powered-on';
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export declare interface AddScreenParams {
|
|
109
|
+
left: number;
|
|
110
|
+
top: number;
|
|
111
|
+
width: number;
|
|
112
|
+
height: number;
|
|
113
|
+
workAreaInsets?: WorkAreaInsets;
|
|
114
|
+
devicePixelRatio?: number;
|
|
115
|
+
rotation?: number;
|
|
116
|
+
colorDepth?: number;
|
|
117
|
+
label?: string;
|
|
118
|
+
isInternal?: boolean;
|
|
119
|
+
}
|
|
120
|
+
|
|
94
121
|
/**
|
|
95
122
|
* @public
|
|
96
123
|
*/
|
|
@@ -127,6 +154,83 @@ export declare type AwaitablePredicate<T> = (value: T) => Awaitable<boolean>;
|
|
|
127
154
|
*/
|
|
128
155
|
export declare type AwaitedLocator<T> = T extends Locator<infer S> ? S : never;
|
|
129
156
|
|
|
157
|
+
/**
|
|
158
|
+
* Exposes the bluetooth emulation abilities.
|
|
159
|
+
*
|
|
160
|
+
* @remarks {@link https://webbluetoothcg.github.io/web-bluetooth/#simulated-bluetooth-adapter|Web Bluetooth specification}
|
|
161
|
+
* requires the emulated adapters should be isolated per top-level navigable. However,
|
|
162
|
+
* at the moment Chromium's bluetooth emulation implementation is tight to the browser
|
|
163
|
+
* context, not the page. This means the bluetooth emulation exposed from different pages
|
|
164
|
+
* of the same browser context would interfere their states.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
*
|
|
168
|
+
* ```ts
|
|
169
|
+
* await page.bluetooth.emulateAdapter('powered-on');
|
|
170
|
+
* await page.bluetooth.simulatePreconnectedPeripheral({
|
|
171
|
+
* address: '09:09:09:09:09:09',
|
|
172
|
+
* name: 'SOME_NAME',
|
|
173
|
+
* manufacturerData: [
|
|
174
|
+
* {
|
|
175
|
+
* key: 17,
|
|
176
|
+
* data: 'AP8BAX8=',
|
|
177
|
+
* },
|
|
178
|
+
* ],
|
|
179
|
+
* knownServiceUuids: ['12345678-1234-5678-9abc-def123456789'],
|
|
180
|
+
* });
|
|
181
|
+
* await page.bluetooth.disableEmulation();
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* @experimental
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
export declare interface BluetoothEmulation {
|
|
188
|
+
/**
|
|
189
|
+
* Emulate Bluetooth adapter. Required for bluetooth simulations
|
|
190
|
+
* See {@link https://webbluetoothcg.github.io/web-bluetooth/#bluetooth-simulateAdapter-command|bluetooth.simulateAdapter}.
|
|
191
|
+
*
|
|
192
|
+
* @param state - The desired bluetooth adapter state.
|
|
193
|
+
* @param leSupported - Mark if the adapter supports low-energy bluetooth.
|
|
194
|
+
*
|
|
195
|
+
* @experimental
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
198
|
+
emulateAdapter(state: AdapterState, leSupported?: boolean): Promise<void>;
|
|
199
|
+
/**
|
|
200
|
+
* Disable emulated bluetooth adapter.
|
|
201
|
+
* See {@link https://webbluetoothcg.github.io/web-bluetooth/#bluetooth-disableSimulation-command|bluetooth.disableSimulation}.
|
|
202
|
+
*
|
|
203
|
+
* @experimental
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
206
|
+
disableEmulation(): Promise<void>;
|
|
207
|
+
/**
|
|
208
|
+
* Simulated preconnected Bluetooth Peripheral.
|
|
209
|
+
* See {@link https://webbluetoothcg.github.io/web-bluetooth/#bluetooth-simulateconnectedperipheral-command|bluetooth.simulatePreconnectedPeripheral}.
|
|
210
|
+
*
|
|
211
|
+
* @param preconnectedPeripheral - The peripheral to simulate.
|
|
212
|
+
*
|
|
213
|
+
* @experimental
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
simulatePreconnectedPeripheral(preconnectedPeripheral: PreconnectedPeripheral): Promise<void>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @public
|
|
221
|
+
* Represents the simulated bluetooth peripheral's manufacturer data.
|
|
222
|
+
*/
|
|
223
|
+
export declare interface BluetoothManufacturerData {
|
|
224
|
+
/**
|
|
225
|
+
* The company identifier, as defined by the {@link https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/|Bluetooth SIG}.
|
|
226
|
+
*/
|
|
227
|
+
key: number;
|
|
228
|
+
/**
|
|
229
|
+
* The manufacturer-specific data as a base64-encoded string.
|
|
230
|
+
*/
|
|
231
|
+
data: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
130
234
|
/**
|
|
131
235
|
* @public
|
|
132
236
|
*/
|
|
@@ -254,7 +358,15 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
254
358
|
* Creates a new {@link Page | page} in the
|
|
255
359
|
* {@link Browser.defaultBrowserContext | default browser context}.
|
|
256
360
|
*/
|
|
257
|
-
abstract newPage(): Promise<Page>;
|
|
361
|
+
abstract newPage(options?: CreatePageOptions): Promise<Page>;
|
|
362
|
+
/**
|
|
363
|
+
* Gets the specified window {@link WindowBounds | bounds}.
|
|
364
|
+
*/
|
|
365
|
+
abstract getWindowBounds(windowId: WindowId): Promise<WindowBounds>;
|
|
366
|
+
/**
|
|
367
|
+
* Sets the specified window {@link WindowBounds | bounds}.
|
|
368
|
+
*/
|
|
369
|
+
abstract setWindowBounds(windowId: WindowId, windowBounds: WindowBounds): Promise<void>;
|
|
258
370
|
/**
|
|
259
371
|
* Gets all active {@link Target | targets}.
|
|
260
372
|
*
|
|
@@ -291,10 +403,12 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
291
403
|
* returns all {@link Page | pages} in all
|
|
292
404
|
* {@link BrowserContext | browser contexts}.
|
|
293
405
|
*
|
|
406
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
407
|
+
*
|
|
294
408
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
295
409
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
296
410
|
*/
|
|
297
|
-
pages(): Promise<Page[]>;
|
|
411
|
+
pages(includeAll?: boolean): Promise<Page[]>;
|
|
298
412
|
/**
|
|
299
413
|
* Gets a string representing this {@link Browser | browser's} name and
|
|
300
414
|
* version.
|
|
@@ -375,6 +489,26 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
375
489
|
* `--enable-unsafe-extension-debugging` flag is set.
|
|
376
490
|
*/
|
|
377
491
|
abstract uninstallExtension(id: string): Promise<void>;
|
|
492
|
+
/**
|
|
493
|
+
* Gets a list of {@link ScreenInfo | screen information objects}.
|
|
494
|
+
*/
|
|
495
|
+
abstract screens(): Promise<ScreenInfo[]>;
|
|
496
|
+
/**
|
|
497
|
+
* Adds a new screen, returns the added {@link ScreenInfo | screen information object}.
|
|
498
|
+
*
|
|
499
|
+
* @remarks
|
|
500
|
+
*
|
|
501
|
+
* Only supported in headless mode.
|
|
502
|
+
*/
|
|
503
|
+
abstract addScreen(params: AddScreenParams): Promise<ScreenInfo>;
|
|
504
|
+
/**
|
|
505
|
+
* Removes a screen.
|
|
506
|
+
*
|
|
507
|
+
* @remarks
|
|
508
|
+
*
|
|
509
|
+
* Only supported in headless mode. Fails if the primary screen id is specified.
|
|
510
|
+
*/
|
|
511
|
+
abstract removeScreen(screenId: string): Promise<void>;
|
|
378
512
|
/**
|
|
379
513
|
* Whether Puppeteer is connected to this {@link Browser | browser}.
|
|
380
514
|
*
|
|
@@ -470,10 +604,12 @@ export declare abstract class BrowserContext extends EventEmitter<BrowserContext
|
|
|
470
604
|
* Gets a list of all open {@link Page | pages} inside this
|
|
471
605
|
* {@link BrowserContext | browser context}.
|
|
472
606
|
*
|
|
607
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
608
|
+
*
|
|
473
609
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
474
610
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
475
611
|
*/
|
|
476
|
-
abstract pages(): Promise<Page[]>;
|
|
612
|
+
abstract pages(includeAll?: boolean): Promise<Page[]>;
|
|
477
613
|
/**
|
|
478
614
|
* Grants this {@link BrowserContext | browser context} the given
|
|
479
615
|
* `permissions` within the given `origin`.
|
|
@@ -513,7 +649,7 @@ export declare abstract class BrowserContext extends EventEmitter<BrowserContext
|
|
|
513
649
|
* Creates a new {@link Page | page} in this
|
|
514
650
|
* {@link BrowserContext | browser context}.
|
|
515
651
|
*/
|
|
516
|
-
abstract newPage(): Promise<Page>;
|
|
652
|
+
abstract newPage(options?: CreatePageOptions): Promise<Page>;
|
|
517
653
|
/**
|
|
518
654
|
* Gets the {@link Browser | browser} associated with this
|
|
519
655
|
* {@link BrowserContext | browser context}.
|
|
@@ -984,13 +1120,14 @@ connect: (options: Puppeteer_2.ConnectOptions) => Promise<Puppeteer_2.Browser>;
|
|
|
984
1120
|
*/
|
|
985
1121
|
export declare class Connection extends EventEmitter<CDPSessionEvents> {
|
|
986
1122
|
#private;
|
|
987
|
-
constructor(url: string, transport: ConnectionTransport, delay?: number, timeout?: number, rawErrors?: boolean);
|
|
1123
|
+
constructor(url: string, transport: ConnectionTransport, delay?: number, timeout?: number, rawErrors?: boolean, idGenerator?: () => number);
|
|
988
1124
|
static fromSession(session: CDPSession): Connection | undefined;
|
|
989
1125
|
|
|
990
1126
|
get timeout(): number;
|
|
991
1127
|
|
|
992
1128
|
|
|
993
1129
|
|
|
1130
|
+
|
|
994
1131
|
/**
|
|
995
1132
|
* @param sessionId - The session id
|
|
996
1133
|
* @returns The current CDP session if it exists
|
|
@@ -1046,6 +1183,17 @@ export declare interface ConnectOptions {
|
|
|
1046
1183
|
* @defaultValue `false`
|
|
1047
1184
|
*/
|
|
1048
1185
|
acceptInsecureCerts?: boolean;
|
|
1186
|
+
/**
|
|
1187
|
+
* If specified, puppeteer looks for an open WebSocket at the well-known
|
|
1188
|
+
* default user data directory for the specified channel and attempts to
|
|
1189
|
+
* connect to it using ws://localhost:$ActivePort/devtools/browser. Only works
|
|
1190
|
+
* for Chrome and when run in Node.js.
|
|
1191
|
+
*
|
|
1192
|
+
* This option is experimental when used with puppeteer.connect().
|
|
1193
|
+
*
|
|
1194
|
+
* @experimental
|
|
1195
|
+
*/
|
|
1196
|
+
channel?: ChromeReleaseChannel;
|
|
1049
1197
|
/**
|
|
1050
1198
|
* Experimental setting to disable monitoring network events by default. When
|
|
1051
1199
|
* set to `false`, parts of Puppeteer that depend on network events would not
|
|
@@ -1103,6 +1251,7 @@ export declare interface ConnectOptions {
|
|
|
1103
1251
|
browserWSEndpoint?: string;
|
|
1104
1252
|
browserURL?: string;
|
|
1105
1253
|
transport?: ConnectionTransport;
|
|
1254
|
+
|
|
1106
1255
|
/**
|
|
1107
1256
|
* Headers to use for the web socket connection.
|
|
1108
1257
|
* @remarks
|
|
@@ -1145,6 +1294,7 @@ export declare class ConsoleMessage {
|
|
|
1145
1294
|
* The array of locations on the stack of the console message.
|
|
1146
1295
|
*/
|
|
1147
1296
|
stackTrace(): ConsoleMessageLocation[];
|
|
1297
|
+
|
|
1148
1298
|
}
|
|
1149
1299
|
|
|
1150
1300
|
/**
|
|
@@ -1497,6 +1647,16 @@ export declare interface CoverageEntry {
|
|
|
1497
1647
|
}>;
|
|
1498
1648
|
}
|
|
1499
1649
|
|
|
1650
|
+
/**
|
|
1651
|
+
* @public
|
|
1652
|
+
*/
|
|
1653
|
+
export declare type CreatePageOptions = {
|
|
1654
|
+
type: 'tab';
|
|
1655
|
+
} | {
|
|
1656
|
+
type: 'window';
|
|
1657
|
+
windowBounds?: WindowBounds;
|
|
1658
|
+
};
|
|
1659
|
+
|
|
1500
1660
|
/**
|
|
1501
1661
|
* @public
|
|
1502
1662
|
*/
|
|
@@ -1656,25 +1816,23 @@ export declare interface Device {
|
|
|
1656
1816
|
*
|
|
1657
1817
|
* @public
|
|
1658
1818
|
*/
|
|
1659
|
-
export declare class DeviceRequestPrompt {
|
|
1660
|
-
#private;
|
|
1819
|
+
export declare abstract class DeviceRequestPrompt {
|
|
1661
1820
|
/**
|
|
1662
1821
|
* Current list of selectable devices.
|
|
1663
1822
|
*/
|
|
1664
|
-
devices: DeviceRequestPromptDevice[];
|
|
1665
|
-
|
|
1823
|
+
readonly devices: DeviceRequestPromptDevice[];
|
|
1666
1824
|
/**
|
|
1667
1825
|
* Resolve to the first device in the prompt matching a filter.
|
|
1668
1826
|
*/
|
|
1669
|
-
waitForDevice(filter: (device: DeviceRequestPromptDevice) => boolean, options?: WaitTimeoutOptions): Promise<DeviceRequestPromptDevice>;
|
|
1827
|
+
abstract waitForDevice(filter: (device: DeviceRequestPromptDevice) => boolean, options?: WaitTimeoutOptions): Promise<DeviceRequestPromptDevice>;
|
|
1670
1828
|
/**
|
|
1671
1829
|
* Select a device in the prompt's list.
|
|
1672
1830
|
*/
|
|
1673
|
-
select(device: DeviceRequestPromptDevice): Promise<void>;
|
|
1831
|
+
abstract select(device: DeviceRequestPromptDevice): Promise<void>;
|
|
1674
1832
|
/**
|
|
1675
1833
|
* Cancel the prompt.
|
|
1676
1834
|
*/
|
|
1677
|
-
cancel(): Promise<void>;
|
|
1835
|
+
abstract cancel(): Promise<void>;
|
|
1678
1836
|
}
|
|
1679
1837
|
|
|
1680
1838
|
/**
|
|
@@ -1682,7 +1840,7 @@ export declare class DeviceRequestPrompt {
|
|
|
1682
1840
|
*
|
|
1683
1841
|
* @public
|
|
1684
1842
|
*/
|
|
1685
|
-
export declare
|
|
1843
|
+
export declare interface DeviceRequestPromptDevice {
|
|
1686
1844
|
/**
|
|
1687
1845
|
* Device id during a prompt.
|
|
1688
1846
|
*/
|
|
@@ -1691,7 +1849,6 @@ export declare class DeviceRequestPromptDevice {
|
|
|
1691
1849
|
* Device name as it appears in a prompt.
|
|
1692
1850
|
*/
|
|
1693
1851
|
name: string;
|
|
1694
|
-
|
|
1695
1852
|
}
|
|
1696
1853
|
|
|
1697
1854
|
/**
|
|
@@ -5449,7 +5606,7 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
5449
5606
|
* multiple redirects, the navigation will resolve with the response of the
|
|
5450
5607
|
* last redirect.
|
|
5451
5608
|
*/
|
|
5452
|
-
abstract reload(options?:
|
|
5609
|
+
abstract reload(options?: ReloadOptions): Promise<HTTPResponse | null>;
|
|
5453
5610
|
/**
|
|
5454
5611
|
* Waits for the page to navigate to a new URL or to reload. It is useful when
|
|
5455
5612
|
* you run code that will indirectly cause the page to navigate.
|
|
@@ -5976,6 +6133,12 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
5976
6133
|
encoding: 'base64';
|
|
5977
6134
|
}): Promise<string>;
|
|
5978
6135
|
screenshot(options?: Readonly<ScreenshotOptions>): Promise<Uint8Array>;
|
|
6136
|
+
/**
|
|
6137
|
+
* Emulates focus state of the page.
|
|
6138
|
+
*
|
|
6139
|
+
* @param enabled - Whether to emulate focus.
|
|
6140
|
+
*/
|
|
6141
|
+
abstract emulateFocusedPage(enabled: boolean): Promise<void>;
|
|
5979
6142
|
|
|
5980
6143
|
/**
|
|
5981
6144
|
* Generates a PDF of the page with the `print` CSS media type.
|
|
@@ -6367,8 +6530,23 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
6367
6530
|
*/
|
|
6368
6531
|
abstract waitForDevicePrompt(options?: WaitTimeoutOptions): Promise<DeviceRequestPrompt>;
|
|
6369
6532
|
|
|
6533
|
+
/**
|
|
6534
|
+
* Returns the page's window id.
|
|
6535
|
+
*
|
|
6536
|
+
* @experimental
|
|
6537
|
+
*/
|
|
6538
|
+
abstract windowId(): Promise<WindowId>;
|
|
6370
6539
|
|
|
6371
6540
|
|
|
6541
|
+
/**
|
|
6542
|
+
* Opens DevTools for the current Page and returns the DevTools Page. This
|
|
6543
|
+
* method is only available in Chrome.
|
|
6544
|
+
*/
|
|
6545
|
+
abstract openDevTools(): Promise<Page>;
|
|
6546
|
+
/**
|
|
6547
|
+
* {@inheritDoc BluetoothEmulation}
|
|
6548
|
+
*/
|
|
6549
|
+
abstract get bluetooth(): BluetoothEmulation;
|
|
6372
6550
|
}
|
|
6373
6551
|
|
|
6374
6552
|
/**
|
|
@@ -6745,6 +6923,17 @@ declare namespace PQuerySelector {
|
|
|
6745
6923
|
}
|
|
6746
6924
|
}
|
|
6747
6925
|
|
|
6926
|
+
/**
|
|
6927
|
+
* @public
|
|
6928
|
+
* A bluetooth peripheral to be simulated.
|
|
6929
|
+
*/
|
|
6930
|
+
export declare interface PreconnectedPeripheral {
|
|
6931
|
+
address: string;
|
|
6932
|
+
name: string;
|
|
6933
|
+
manufacturerData: BluetoothManufacturerData[];
|
|
6934
|
+
knownServiceUuids: string[];
|
|
6935
|
+
}
|
|
6936
|
+
|
|
6748
6937
|
/**
|
|
6749
6938
|
* A list of pre-defined network conditions to be used with
|
|
6750
6939
|
* {@link Page.emulateNetworkConditions}.
|
|
@@ -6888,6 +7077,10 @@ declare namespace Puppeteer_2 {
|
|
|
6888
7077
|
export {
|
|
6889
7078
|
Protocol,
|
|
6890
7079
|
Session,
|
|
7080
|
+
AdapterState,
|
|
7081
|
+
BluetoothManufacturerData,
|
|
7082
|
+
PreconnectedPeripheral,
|
|
7083
|
+
BluetoothEmulation,
|
|
6891
7084
|
BrowserContextOptions,
|
|
6892
7085
|
TargetFilterCallback,
|
|
6893
7086
|
Permission,
|
|
@@ -6895,6 +7088,14 @@ declare namespace Puppeteer_2 {
|
|
|
6895
7088
|
BrowserEvent,
|
|
6896
7089
|
BrowserEvents,
|
|
6897
7090
|
DebugInfo,
|
|
7091
|
+
WindowState,
|
|
7092
|
+
WindowBounds,
|
|
7093
|
+
WindowId,
|
|
7094
|
+
CreatePageOptions,
|
|
7095
|
+
ScreenOrientation_2 as ScreenOrientation,
|
|
7096
|
+
ScreenInfo,
|
|
7097
|
+
WorkAreaInsets,
|
|
7098
|
+
AddScreenParams,
|
|
6898
7099
|
Browser,
|
|
6899
7100
|
BrowserContextEvent,
|
|
6900
7101
|
BrowserContextEvents,
|
|
@@ -6904,6 +7105,8 @@ declare namespace Puppeteer_2 {
|
|
|
6904
7105
|
CDPSessionEvents,
|
|
6905
7106
|
CommandOptions,
|
|
6906
7107
|
CDPSession,
|
|
7108
|
+
DeviceRequestPromptDevice,
|
|
7109
|
+
DeviceRequestPrompt,
|
|
6907
7110
|
Dialog,
|
|
6908
7111
|
Quad,
|
|
6909
7112
|
BoxModel,
|
|
@@ -6961,6 +7164,7 @@ declare namespace Puppeteer_2 {
|
|
|
6961
7164
|
PageEvent,
|
|
6962
7165
|
PageEvents,
|
|
6963
7166
|
NewDocumentScriptEvaluation,
|
|
7167
|
+
ReloadOptions,
|
|
6964
7168
|
Page,
|
|
6965
7169
|
TargetType,
|
|
6966
7170
|
Target,
|
|
@@ -6986,8 +7190,6 @@ declare namespace Puppeteer_2 {
|
|
|
6986
7190
|
Coverage,
|
|
6987
7191
|
JSCoverage,
|
|
6988
7192
|
CSSCoverage,
|
|
6989
|
-
DeviceRequestPromptDevice,
|
|
6990
|
-
DeviceRequestPrompt,
|
|
6991
7193
|
ExtensionTransport,
|
|
6992
7194
|
PuppeteerLifeCycleEvent,
|
|
6993
7195
|
ProtocolLifeCycleEvent,
|
|
@@ -7005,6 +7207,7 @@ declare namespace Puppeteer_2 {
|
|
|
7005
7207
|
ProtocolType,
|
|
7006
7208
|
SupportedWebDriverCapability,
|
|
7007
7209
|
SupportedWebDriverCapabilities,
|
|
7210
|
+
ChromeReleaseChannel,
|
|
7008
7211
|
ConnectOptions,
|
|
7009
7212
|
ConsoleMessageLocation,
|
|
7010
7213
|
ConsoleMessageType,
|
|
@@ -7055,7 +7258,6 @@ declare namespace Puppeteer_2 {
|
|
|
7055
7258
|
Viewport,
|
|
7056
7259
|
DownloadPolicy,
|
|
7057
7260
|
DownloadBehavior,
|
|
7058
|
-
ChromeReleaseChannel,
|
|
7059
7261
|
LaunchOptions,
|
|
7060
7262
|
BrowserLauncher,
|
|
7061
7263
|
PuppeteerNode,
|
|
@@ -7259,6 +7461,19 @@ export declare interface QueryOptions {
|
|
|
7259
7461
|
isolate: boolean;
|
|
7260
7462
|
}
|
|
7261
7463
|
|
|
7464
|
+
/**
|
|
7465
|
+
* @public
|
|
7466
|
+
*/
|
|
7467
|
+
export declare interface ReloadOptions extends WaitForOptions {
|
|
7468
|
+
/**
|
|
7469
|
+
* If set to true, the browser caches are ignored for the page reload.
|
|
7470
|
+
*
|
|
7471
|
+
* @defaultValue true
|
|
7472
|
+
* @public
|
|
7473
|
+
*/
|
|
7474
|
+
ignoreCache?: boolean;
|
|
7475
|
+
}
|
|
7476
|
+
|
|
7262
7477
|
/**
|
|
7263
7478
|
* @public
|
|
7264
7479
|
*/
|
|
@@ -7385,6 +7600,37 @@ export declare interface ScreencastOptions {
|
|
|
7385
7600
|
ffmpegPath?: string;
|
|
7386
7601
|
}
|
|
7387
7602
|
|
|
7603
|
+
/**
|
|
7604
|
+
* @public
|
|
7605
|
+
*/
|
|
7606
|
+
export declare interface ScreenInfo {
|
|
7607
|
+
left: number;
|
|
7608
|
+
top: number;
|
|
7609
|
+
width: number;
|
|
7610
|
+
height: number;
|
|
7611
|
+
availLeft: number;
|
|
7612
|
+
availTop: number;
|
|
7613
|
+
availWidth: number;
|
|
7614
|
+
availHeight: number;
|
|
7615
|
+
devicePixelRatio: number;
|
|
7616
|
+
colorDepth: number;
|
|
7617
|
+
orientation: ScreenOrientation_2;
|
|
7618
|
+
isExtended: boolean;
|
|
7619
|
+
isInternal: boolean;
|
|
7620
|
+
isPrimary: boolean;
|
|
7621
|
+
label: string;
|
|
7622
|
+
id: string;
|
|
7623
|
+
}
|
|
7624
|
+
|
|
7625
|
+
/**
|
|
7626
|
+
* @public
|
|
7627
|
+
*/
|
|
7628
|
+
declare interface ScreenOrientation_2 {
|
|
7629
|
+
angle: number;
|
|
7630
|
+
type: string;
|
|
7631
|
+
}
|
|
7632
|
+
export { ScreenOrientation_2 as ScreenOrientation }
|
|
7633
|
+
|
|
7388
7634
|
/**
|
|
7389
7635
|
* @public
|
|
7390
7636
|
*/
|
|
@@ -7450,7 +7696,7 @@ export declare interface ScreenshotOptions {
|
|
|
7450
7696
|
* relative to current working directory. If no path is provided, the image
|
|
7451
7697
|
* won't be saved to the disk.
|
|
7452
7698
|
*/
|
|
7453
|
-
path?:
|
|
7699
|
+
path?: string;
|
|
7454
7700
|
/**
|
|
7455
7701
|
* Specifies the region of the page/element to clip.
|
|
7456
7702
|
*/
|
|
@@ -7581,6 +7827,7 @@ export declare interface SerializedAXNode {
|
|
|
7581
7827
|
* Children of this node, if there are any.
|
|
7582
7828
|
*/
|
|
7583
7829
|
children?: SerializedAXNode[];
|
|
7830
|
+
|
|
7584
7831
|
/**
|
|
7585
7832
|
* Get an ElementHandle for this AXNode if available.
|
|
7586
7833
|
*
|
|
@@ -8106,4 +8353,35 @@ export declare abstract class WebWorker extends EventEmitter<Record<EventType, u
|
|
|
8106
8353
|
close(): Promise<void>;
|
|
8107
8354
|
}
|
|
8108
8355
|
|
|
8356
|
+
/**
|
|
8357
|
+
* @public
|
|
8358
|
+
*/
|
|
8359
|
+
export declare interface WindowBounds {
|
|
8360
|
+
left?: number;
|
|
8361
|
+
top?: number;
|
|
8362
|
+
width?: number;
|
|
8363
|
+
height?: number;
|
|
8364
|
+
windowState?: WindowState;
|
|
8365
|
+
}
|
|
8366
|
+
|
|
8367
|
+
/**
|
|
8368
|
+
* @public
|
|
8369
|
+
*/
|
|
8370
|
+
export declare type WindowId = string;
|
|
8371
|
+
|
|
8372
|
+
/**
|
|
8373
|
+
* @public
|
|
8374
|
+
*/
|
|
8375
|
+
export declare type WindowState = 'normal' | 'minimized' | 'maximized' | 'fullscreen';
|
|
8376
|
+
|
|
8377
|
+
/**
|
|
8378
|
+
* @public
|
|
8379
|
+
*/
|
|
8380
|
+
export declare interface WorkAreaInsets {
|
|
8381
|
+
top?: number;
|
|
8382
|
+
left?: number;
|
|
8383
|
+
bottom?: number;
|
|
8384
|
+
right?: number;
|
|
8385
|
+
}
|
|
8386
|
+
|
|
8109
8387
|
export { }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brave-real-puppeteer-core",
|
|
3
|
-
"version": "24.
|
|
4
|
-
"description": "Brave-optimized Puppeteer Core (v24.
|
|
3
|
+
"version": "24.33.0",
|
|
4
|
+
"description": "Brave-optimized Puppeteer Core (v24.33.0) with comprehensive stealth patches and cross-platform browser detection",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"puppeteer",
|
|
7
7
|
"brave",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"rebrowser",
|
|
14
14
|
"patches",
|
|
15
15
|
"anti-detection",
|
|
16
|
-
"puppeteer-24.
|
|
16
|
+
"puppeteer-24.33.0",
|
|
17
17
|
"puppeteer-core",
|
|
18
18
|
"patch-version"
|
|
19
19
|
],
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
},
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@puppeteer/browsers": "2.
|
|
41
|
-
"chromium-bidi": "
|
|
40
|
+
"@puppeteer/browsers": "2.11.0",
|
|
41
|
+
"chromium-bidi": "11.0.0",
|
|
42
42
|
"debug": "^4.4.3",
|
|
43
|
-
"devtools-protocol": "0.0.
|
|
43
|
+
"devtools-protocol": "0.0.1534754",
|
|
44
44
|
"typed-query-selector": "^2.12.0",
|
|
45
|
-
"webdriver-bidi-protocol": "0.3.
|
|
45
|
+
"webdriver-bidi-protocol": "0.3.9",
|
|
46
46
|
"ws": "^8.18.3"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"puppeteer-core": "24.
|
|
50
|
+
"puppeteer-core": "24.33.0"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"lib",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
],
|
|
59
59
|
"brave": {
|
|
60
60
|
"optimized": true,
|
|
61
|
-
"version": "24.
|
|
61
|
+
"version": "24.33.0",
|
|
62
62
|
"basedOn": {
|
|
63
|
-
"puppeteer-core": "24.
|
|
64
|
-
"patches-version": "24.
|
|
65
|
-
"release-info": "Brave Puppeteer v24.
|
|
63
|
+
"puppeteer-core": "24.33.0",
|
|
64
|
+
"patches-version": "24.33.0",
|
|
65
|
+
"release-info": "Brave Puppeteer v24.33.0 based on Puppeteer Core v24.33.0"
|
|
66
66
|
},
|
|
67
67
|
"versionInfo": {
|
|
68
|
-
"braveVersion": "24.
|
|
69
|
-
"puppeteerVersion": "24.
|
|
70
|
-
"fullName": "Brave Puppeteer Core v24.
|
|
68
|
+
"braveVersion": "24.33.0",
|
|
69
|
+
"puppeteerVersion": "24.33.0",
|
|
70
|
+
"fullName": "Brave Puppeteer Core v24.33.0 (Puppeteer 24.33.0)"
|
|
71
71
|
},
|
|
72
72
|
"features": [
|
|
73
73
|
"ultra-fast-timing",
|