rechrome 1.35.0 → 1.36.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 +74 -0
- package/extension/lib/background.mjs +28 -1
- package/extension/lib/ui/connect.js +29 -19
- package/listeners.js +17 -1
- package/listeners.ts +7 -2
- package/package.json +5 -3
- package/rechrome.js +64 -16
- package/rechrome.ts +64 -16
- package/scoped-upload.js +165 -0
- package/scoped-upload.ts +140 -0
- package/serve.js +30 -2
- package/serve.ts +30 -2
- package/vendor/playwright-cli/node_modules/playwright-core/lib/coreBundle.js +360 -256
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/help.json +9 -4
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/program.js +6 -1
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/session.js +10 -12
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/extension.js +8 -5
- package/vendor/playwright-cli/node_modules/playwright-core/lib/androidServerImpl.js +0 -65
- package/vendor/playwright-cli/node_modules/playwright-core/lib/browserServerImpl.js +0 -120
- package/vendor/playwright-cli/node_modules/playwright-core/lib/cli/driver.js +0 -98
- package/vendor/playwright-cli/node_modules/playwright-core/lib/cli/program.js +0 -597
- package/vendor/playwright-cli/node_modules/playwright-core/lib/cli/programWithTestStub.js +0 -74
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/android.js +0 -361
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/api.js +0 -137
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/artifact.js +0 -79
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/browser.js +0 -169
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/browserContext.js +0 -583
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/browserType.js +0 -153
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/cdpSession.js +0 -55
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/channelOwner.js +0 -194
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/clientHelper.js +0 -64
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/clientInstrumentation.js +0 -55
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/clientStackTrace.js +0 -69
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/clock.js +0 -68
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/connect.js +0 -143
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/connection.js +0 -322
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/consoleMessage.js +0 -61
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/coverage.js +0 -44
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/debugger.js +0 -57
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/dialog.js +0 -56
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/disposable.js +0 -76
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/download.js +0 -62
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/electron.js +0 -138
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/elementHandle.js +0 -281
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/errors.js +0 -77
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/eventEmitter.js +0 -314
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/events.js +0 -103
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/fetch.js +0 -367
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/fileChooser.js +0 -46
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/fileUtils.js +0 -34
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/frame.js +0 -404
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/harRouter.js +0 -99
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/input.js +0 -84
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/jsHandle.js +0 -105
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/jsonPipe.js +0 -39
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/localUtils.js +0 -60
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/locator.js +0 -367
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/network.js +0 -750
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/page.js +0 -729
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/platform.js +0 -77
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/playwright.js +0 -71
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/screencast.js +0 -48
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/selectors.js +0 -57
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/stream.js +0 -39
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/timeoutSettings.js +0 -79
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/tracing.js +0 -126
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/types.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/video.js +0 -68
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/waiter.js +0 -142
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/webError.js +0 -39
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/worker.js +0 -85
- package/vendor/playwright-cli/node_modules/playwright-core/lib/client/writableStream.js +0 -39
- package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/clockSource.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/injectedScriptSource.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/storageScriptSource.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/utilityScriptSource.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/webSocketMockSource.js +0 -336
- package/vendor/playwright-cli/node_modules/playwright-core/lib/inProcessFactory.js +0 -60
- package/vendor/playwright-cli/node_modules/playwright-core/lib/inprocess.js +0 -3
- package/vendor/playwright-cli/node_modules/playwright-core/lib/mcpBundle.js +0 -81
- package/vendor/playwright-cli/node_modules/playwright-core/lib/mcpBundleImpl/index.js +0 -91
- package/vendor/playwright-cli/node_modules/playwright-core/lib/outofprocess.js +0 -76
- package/vendor/playwright-cli/node_modules/playwright-core/lib/protocol/serializers.js +0 -197
- package/vendor/playwright-cli/node_modules/playwright-core/lib/protocol/validator.js +0 -3034
- package/vendor/playwright-cli/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +0 -193
- package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/playwrightConnection.js +0 -131
- package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/playwrightPipeServer.js +0 -100
- package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/playwrightServer.js +0 -339
- package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/playwrightWebSocketServer.js +0 -73
- package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/serverTransport.js +0 -96
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/android/android.js +0 -465
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/android/backendAdb.js +0 -177
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/artifact.js +0 -127
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +0 -571
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +0 -162
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +0 -213
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiDeserializer.js +0 -116
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +0 -267
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +0 -128
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiInput.js +0 -146
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +0 -411
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +0 -102
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiPage.js +0 -599
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +0 -106
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +0 -22
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +0 -256
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +0 -24
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +0 -180
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +0 -42
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +0 -148
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +0 -261
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/browser.js +0 -223
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/browserContext.js +0 -703
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/browserType.js +0 -338
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/callLog.js +0 -82
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/chromium.js +0 -399
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +0 -104
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crBrowser.js +0 -532
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crConnection.js +0 -197
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crCoverage.js +0 -235
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crDevTools.js +0 -111
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +0 -131
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +0 -146
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crInput.js +0 -187
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +0 -708
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crPage.js +0 -1004
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crPdf.js +0 -121
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +0 -145
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +0 -137
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +0 -162
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/protocol.d.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/clock.js +0 -149
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/csharp.js +0 -327
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/java.js +0 -274
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/javascript.js +0 -247
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/jsonl.js +0 -52
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/language.js +0 -132
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/languages.js +0 -68
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/python.js +0 -279
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/types.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/console.js +0 -61
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/cookieStore.js +0 -206
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/debugController.js +0 -197
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/debugger.js +0 -120
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/deviceDescriptors.js +0 -39
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dialog.js +0 -116
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +0 -325
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +0 -118
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +0 -381
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +0 -124
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +0 -71
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +0 -47
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +0 -78
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/debuggerDispatcher.js +0 -80
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +0 -47
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +0 -364
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/disposableDispatcher.js +0 -39
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +0 -90
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +0 -181
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +0 -227
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +0 -85
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +0 -58
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +0 -185
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +0 -214
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +0 -434
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +0 -108
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +0 -67
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +0 -68
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -164
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +0 -79
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/disposable.js +0 -41
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dom.js +0 -823
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/download.js +0 -71
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/electron/electron.js +0 -272
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/electron/loader.js +0 -115
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/errors.js +0 -69
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/fetch.js +0 -621
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/fileChooser.js +0 -43
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/fileUploadUtils.js +0 -84
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +0 -415
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffConnection.js +0 -142
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +0 -150
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffInput.js +0 -175
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +0 -256
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffPage.js +0 -495
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/firefox.js +0 -114
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/protocol.d.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/formData.js +0 -147
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/frameSelectors.js +0 -160
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/frames.js +0 -1495
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/har/harRecorder.js +0 -147
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/har/harTracer.js +0 -608
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/harBackend.js +0 -157
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/helper.js +0 -96
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/index.js +0 -58
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/input.js +0 -277
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/instrumentation.js +0 -72
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/javascript.js +0 -291
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/launchApp.js +0 -127
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/localUtils.js +0 -214
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/macEditingCommands.js +0 -143
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/network.js +0 -668
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/page.js +0 -884
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/pipeTransport.js +0 -89
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/playwright.js +0 -69
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/progress.js +0 -136
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/protocolError.js +0 -52
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/chat.js +0 -161
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/recorderApp.js +0 -367
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +0 -138
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +0 -83
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +0 -157
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/throttledFile.js +0 -57
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder.js +0 -540
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/browserFetcher.js +0 -177
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/dependencies.js +0 -371
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/index.js +0 -1395
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/nativeDeps.js +0 -1281
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +0 -127
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/screencast.js +0 -216
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/screenshotter.js +0 -333
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/selectors.js +0 -112
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +0 -383
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/socksInterceptor.js +0 -95
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +0 -147
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +0 -561
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +0 -607
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +0 -244
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/transport.js +0 -181
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/types.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/usKeyboardLayout.js +0 -152
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/ascii.js +0 -44
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/comparators.js +0 -139
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/crypto.js +0 -216
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/debug.js +0 -42
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/debugLogger.js +0 -122
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/disposable.js +0 -32
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/env.js +0 -73
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/eventsHelper.js +0 -41
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/expectUtils.js +0 -123
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/fileUtils.js +0 -191
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +0 -207
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/hostPlatform.js +0 -123
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/httpServer.js +0 -205
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +0 -89
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +0 -109
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +0 -78
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +0 -102
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/linuxUtils.js +0 -71
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/network.js +0 -244
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/nodePlatform.js +0 -154
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/pipeTransport.js +0 -84
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/processLauncher.js +0 -243
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/profiler.js +0 -65
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/socksProxy.js +0 -511
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/spawnAsync.js +0 -41
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/task.js +0 -51
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/userAgent.js +0 -98
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/wsServer.js +0 -121
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/zipFile.js +0 -74
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/zones.js +0 -57
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/videoRecorder.js +0 -133
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/protocol.d.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/webkit.js +0 -108
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +0 -331
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkConnection.js +0 -144
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +0 -154
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkInput.js +0 -181
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +0 -197
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkPage.js +0 -1164
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +0 -83
- package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +0 -106
- package/vendor/playwright-cli/node_modules/playwright-core/lib/third_party/pixelmatch.js +0 -255
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/browserBackend.js +0 -79
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/common.js +0 -63
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/config.js +0 -41
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/console.js +0 -66
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/context.js +0 -290
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/cookies.js +0 -152
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/devtools.js +0 -69
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/dialogs.js +0 -59
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/evaluate.js +0 -64
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/files.js +0 -60
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/form.js +0 -64
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/keyboard.js +0 -155
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/logFile.js +0 -95
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/mouse.js +0 -168
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/navigate.js +0 -106
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/network.js +0 -135
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/pdf.js +0 -48
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/response.js +0 -302
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/route.js +0 -140
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/runCode.js +0 -76
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/screenshot.js +0 -88
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/sessionLog.js +0 -74
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/snapshot.js +0 -208
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/storage.js +0 -67
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tab.js +0 -445
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tabs.js +0 -67
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tool.js +0 -47
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tools.js +0 -102
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tracing.js +0 -75
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/utils.js +0 -83
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/verify.js +0 -151
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/video.js +0 -89
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/wait.js +0 -63
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/webstorage.js +0 -223
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/command.js +0 -73
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/commands.js +0 -933
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/daemon.js +0 -178
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/helpGenerator.js +0 -173
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/program.js +0 -118
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/dashboard/dashboardApp.js +0 -286
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/dashboard/dashboardController.js +0 -296
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/exports.js +0 -60
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/browserFactory.js +0 -233
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/cdpRelay.js +0 -356
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/cli-stub.js +0 -7
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/config.d.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/config.js +0 -401
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/configIni.js +0 -189
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/extensionContextFactory.js +0 -59
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/index.js +0 -62
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/log.js +0 -35
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/program.js +0 -107
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/protocol.js +0 -28
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/watchdog.js +0 -44
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/installSkill.js +0 -48
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceActions.js +0 -142
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceAttachments.js +0 -69
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceCli.js +0 -80
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceConsole.js +0 -97
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceErrors.js +0 -55
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceOpen.js +0 -69
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceParser.js +0 -96
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceRequests.js +0 -158
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceScreenshot.js +0 -68
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceSnapshot.js +0 -149
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceUtils.js +0 -135
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/connect.js +0 -32
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/mcp/http.js +0 -152
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/mcp/server.js +0 -230
- package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/mcp/tool.js +0 -47
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +0 -455
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/assert.js +0 -31
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/colors.js +0 -72
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +0 -245
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +0 -1051
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/formatUtils.js +0 -64
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/headers.js +0 -53
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/imageUtils.js +0 -141
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +0 -689
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +0 -176
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +0 -81
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/lruCache.js +0 -51
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +0 -114
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +0 -464
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +0 -80
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +0 -81
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +0 -342
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +0 -43
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +0 -386
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +0 -54
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +0 -158
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +0 -204
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/time.js +0 -49
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +0 -66
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/entries.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotRenderer.js +0 -502
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotServer.js +0 -120
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +0 -89
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +0 -131
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js +0 -366
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +0 -401
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/traceUtils.js +0 -58
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/types.js +0 -16
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +0 -243
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +0 -262
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/yaml.js +0 -84
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utils.js +0 -113
- package/vendor/playwright-cli/node_modules/playwright-core/lib/utilsBundleImpl/index.js +0 -218
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BtGnd8kr.js +0 -32
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-CnvO0fko.js +0 -32
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-BkMbME_o.js +0 -262
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CN3cwLGD.js +0 -262
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.B4dS75f0.css +0 -1
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.DcQiWcKS.css +0 -1
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/index.B2ffe31o.js +0 -2
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/index.Df3uWWXm.js +0 -2
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.BZQ54Kgt.css +0 -1
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CmAqMvmy.js +0 -6
- package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.u9Eas4CP.js +0 -6
- package/vendor/playwright-cli/node_modules/playwright-core/lib/zipBundle.js +0 -34
- package/vendor/playwright-cli/node_modules/playwright-core/lib/zipBundleImpl.js +0 -5
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var connect_exports = {};
|
|
20
|
-
__export(connect_exports, {
|
|
21
|
-
connectToBrowser: () => connectToBrowser,
|
|
22
|
-
connectToEndpoint: () => connectToEndpoint
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(connect_exports);
|
|
25
|
-
var import_time = require("../utils/isomorphic/time");
|
|
26
|
-
var import_timeoutRunner = require("../utils/isomorphic/timeoutRunner");
|
|
27
|
-
var import_browser = require("./browser");
|
|
28
|
-
var import_connection = require("./connection");
|
|
29
|
-
var import_events = require("./events");
|
|
30
|
-
async function connectToBrowser(playwright, params) {
|
|
31
|
-
const deadline = params.timeout ? (0, import_time.monotonicTime)() + params.timeout : 0;
|
|
32
|
-
const nameParam = params.browserName ? { "x-playwright-browser": params.browserName } : {};
|
|
33
|
-
const headers = { ...nameParam, ...params.headers };
|
|
34
|
-
const connectParams = {
|
|
35
|
-
endpoint: params.endpoint,
|
|
36
|
-
headers,
|
|
37
|
-
exposeNetwork: params.exposeNetwork,
|
|
38
|
-
slowMo: params.slowMo,
|
|
39
|
-
timeout: params.timeout || 0
|
|
40
|
-
};
|
|
41
|
-
if (params.__testHookRedirectPortForwarding)
|
|
42
|
-
connectParams.socksProxyRedirectPortForTest = params.__testHookRedirectPortForwarding;
|
|
43
|
-
const connection = await connectToEndpoint(playwright._connection, connectParams);
|
|
44
|
-
let browser;
|
|
45
|
-
connection.on("close", () => {
|
|
46
|
-
for (const context of browser?.contexts() || []) {
|
|
47
|
-
for (const page of context.pages())
|
|
48
|
-
page._onClose();
|
|
49
|
-
context._onClose();
|
|
50
|
-
}
|
|
51
|
-
setTimeout(() => browser?._didClose(), 0);
|
|
52
|
-
});
|
|
53
|
-
const result = await (0, import_timeoutRunner.raceAgainstDeadline)(async () => {
|
|
54
|
-
if (params.__testHookBeforeCreateBrowser)
|
|
55
|
-
await params.__testHookBeforeCreateBrowser();
|
|
56
|
-
const playwright2 = await connection.initializePlaywright();
|
|
57
|
-
if (!playwright2._initializer.preLaunchedBrowser) {
|
|
58
|
-
connection.close();
|
|
59
|
-
throw new Error("Malformed endpoint. Did you use BrowserType.launchServer method?");
|
|
60
|
-
}
|
|
61
|
-
playwright2.selectors = playwright2.selectors;
|
|
62
|
-
browser = import_browser.Browser.from(playwright2._initializer.preLaunchedBrowser);
|
|
63
|
-
browser._shouldCloseConnectionOnClose = true;
|
|
64
|
-
browser.on(import_events.Events.Browser.Disconnected, () => connection.close());
|
|
65
|
-
return browser;
|
|
66
|
-
}, deadline);
|
|
67
|
-
if (!result.timedOut) {
|
|
68
|
-
return result.result;
|
|
69
|
-
} else {
|
|
70
|
-
connection.close();
|
|
71
|
-
throw new Error(`Timeout ${params.timeout}ms exceeded`);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
async function connectToEndpoint(parentConnection, params) {
|
|
75
|
-
const localUtils = parentConnection.localUtils();
|
|
76
|
-
const transport = localUtils ? new JsonPipeTransport(localUtils) : new WebSocketTransport();
|
|
77
|
-
const connectHeaders = await transport.connect(params);
|
|
78
|
-
const connection = new import_connection.Connection(parentConnection._platform, localUtils, parentConnection._instrumentation, connectHeaders);
|
|
79
|
-
connection.markAsRemote();
|
|
80
|
-
connection.on("close", () => transport.close());
|
|
81
|
-
let closeError;
|
|
82
|
-
const onTransportClosed = (reason) => {
|
|
83
|
-
connection.close(reason || closeError);
|
|
84
|
-
};
|
|
85
|
-
transport.onClose((reason) => onTransportClosed(reason));
|
|
86
|
-
connection.onmessage = (message) => transport.send(message).catch(() => onTransportClosed());
|
|
87
|
-
transport.onMessage((message) => {
|
|
88
|
-
try {
|
|
89
|
-
connection.dispatch(message);
|
|
90
|
-
} catch (e) {
|
|
91
|
-
closeError = String(e);
|
|
92
|
-
transport.close().catch(() => {
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
return connection;
|
|
97
|
-
}
|
|
98
|
-
class JsonPipeTransport {
|
|
99
|
-
constructor(owner) {
|
|
100
|
-
this._owner = owner;
|
|
101
|
-
}
|
|
102
|
-
async connect(params) {
|
|
103
|
-
const { pipe, headers: connectHeaders } = await this._owner._channel.connect(params);
|
|
104
|
-
this._pipe = pipe;
|
|
105
|
-
return connectHeaders;
|
|
106
|
-
}
|
|
107
|
-
async send(message) {
|
|
108
|
-
await this._pipe.send({ message });
|
|
109
|
-
}
|
|
110
|
-
onMessage(callback) {
|
|
111
|
-
this._pipe.on("message", ({ message }) => callback(message));
|
|
112
|
-
}
|
|
113
|
-
onClose(callback) {
|
|
114
|
-
this._pipe.on("closed", ({ reason }) => callback(reason));
|
|
115
|
-
}
|
|
116
|
-
async close() {
|
|
117
|
-
await this._pipe.close().catch(() => {
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
class WebSocketTransport {
|
|
122
|
-
async connect(params) {
|
|
123
|
-
this._ws = new window.WebSocket(params.endpoint);
|
|
124
|
-
return [];
|
|
125
|
-
}
|
|
126
|
-
async send(message) {
|
|
127
|
-
this._ws.send(JSON.stringify(message));
|
|
128
|
-
}
|
|
129
|
-
onMessage(callback) {
|
|
130
|
-
this._ws.addEventListener("message", (event) => callback(JSON.parse(event.data)));
|
|
131
|
-
}
|
|
132
|
-
onClose(callback) {
|
|
133
|
-
this._ws.addEventListener("close", () => callback());
|
|
134
|
-
}
|
|
135
|
-
async close() {
|
|
136
|
-
this._ws.close();
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
140
|
-
0 && (module.exports = {
|
|
141
|
-
connectToBrowser,
|
|
142
|
-
connectToEndpoint
|
|
143
|
-
});
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var connection_exports = {};
|
|
20
|
-
__export(connection_exports, {
|
|
21
|
-
Connection: () => Connection
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(connection_exports);
|
|
24
|
-
var import_eventEmitter = require("./eventEmitter");
|
|
25
|
-
var import_android = require("./android");
|
|
26
|
-
var import_artifact = require("./artifact");
|
|
27
|
-
var import_browser = require("./browser");
|
|
28
|
-
var import_browserContext = require("./browserContext");
|
|
29
|
-
var import_browserType = require("./browserType");
|
|
30
|
-
var import_cdpSession = require("./cdpSession");
|
|
31
|
-
var import_channelOwner = require("./channelOwner");
|
|
32
|
-
var import_clientInstrumentation = require("./clientInstrumentation");
|
|
33
|
-
var import_debugger = require("./debugger");
|
|
34
|
-
var import_dialog = require("./dialog");
|
|
35
|
-
var import_disposable = require("./disposable");
|
|
36
|
-
var import_electron = require("./electron");
|
|
37
|
-
var import_elementHandle = require("./elementHandle");
|
|
38
|
-
var import_errors = require("./errors");
|
|
39
|
-
var import_fetch = require("./fetch");
|
|
40
|
-
var import_frame = require("./frame");
|
|
41
|
-
var import_jsHandle = require("./jsHandle");
|
|
42
|
-
var import_jsonPipe = require("./jsonPipe");
|
|
43
|
-
var import_localUtils = require("./localUtils");
|
|
44
|
-
var import_network = require("./network");
|
|
45
|
-
var import_page = require("./page");
|
|
46
|
-
var import_playwright = require("./playwright");
|
|
47
|
-
var import_stream = require("./stream");
|
|
48
|
-
var import_tracing = require("./tracing");
|
|
49
|
-
var import_worker = require("./worker");
|
|
50
|
-
var import_writableStream = require("./writableStream");
|
|
51
|
-
var import_validator = require("../protocol/validator");
|
|
52
|
-
var import_stackTrace = require("../utils/isomorphic/stackTrace");
|
|
53
|
-
class Root extends import_channelOwner.ChannelOwner {
|
|
54
|
-
constructor(connection) {
|
|
55
|
-
super(connection, "Root", "", {});
|
|
56
|
-
}
|
|
57
|
-
async initialize() {
|
|
58
|
-
return import_playwright.Playwright.from((await this._channel.initialize({
|
|
59
|
-
sdkLanguage: "javascript"
|
|
60
|
-
})).playwright);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
class DummyChannelOwner extends import_channelOwner.ChannelOwner {
|
|
64
|
-
}
|
|
65
|
-
class Connection extends import_eventEmitter.EventEmitter {
|
|
66
|
-
constructor(platform, localUtils, instrumentation, headers = []) {
|
|
67
|
-
super(platform);
|
|
68
|
-
this._objects = /* @__PURE__ */ new Map();
|
|
69
|
-
this.onmessage = (message) => {
|
|
70
|
-
};
|
|
71
|
-
this._lastId = 0;
|
|
72
|
-
this._callbacks = /* @__PURE__ */ new Map();
|
|
73
|
-
this._isRemote = false;
|
|
74
|
-
this._rawBuffers = false;
|
|
75
|
-
this._tracingCount = 0;
|
|
76
|
-
this._instrumentation = instrumentation || (0, import_clientInstrumentation.createInstrumentation)();
|
|
77
|
-
this._localUtils = localUtils;
|
|
78
|
-
this._rootObject = new Root(this);
|
|
79
|
-
this.headers = headers;
|
|
80
|
-
}
|
|
81
|
-
markAsRemote() {
|
|
82
|
-
this._isRemote = true;
|
|
83
|
-
}
|
|
84
|
-
isRemote() {
|
|
85
|
-
return this._isRemote;
|
|
86
|
-
}
|
|
87
|
-
useRawBuffers() {
|
|
88
|
-
this._rawBuffers = true;
|
|
89
|
-
}
|
|
90
|
-
rawBuffers() {
|
|
91
|
-
return this._rawBuffers;
|
|
92
|
-
}
|
|
93
|
-
localUtils() {
|
|
94
|
-
return this._localUtils;
|
|
95
|
-
}
|
|
96
|
-
async initializePlaywright() {
|
|
97
|
-
return await this._rootObject.initialize();
|
|
98
|
-
}
|
|
99
|
-
getObjectWithKnownName(guid) {
|
|
100
|
-
return this._objects.get(guid);
|
|
101
|
-
}
|
|
102
|
-
setIsTracing(isTracing) {
|
|
103
|
-
if (isTracing)
|
|
104
|
-
this._tracingCount++;
|
|
105
|
-
else
|
|
106
|
-
this._tracingCount--;
|
|
107
|
-
}
|
|
108
|
-
async sendMessageToServer(object, method, params, options) {
|
|
109
|
-
if (this._closedError)
|
|
110
|
-
throw this._closedError;
|
|
111
|
-
if (object._wasCollected)
|
|
112
|
-
throw new Error("The object has been collected to prevent unbounded heap growth.");
|
|
113
|
-
const guid = object._guid;
|
|
114
|
-
const type = object._type;
|
|
115
|
-
const id = ++this._lastId;
|
|
116
|
-
const message = { id, guid, method, params };
|
|
117
|
-
if (this._platform.isLogEnabled("channel")) {
|
|
118
|
-
this._platform.log("channel", "SEND> " + JSON.stringify(message));
|
|
119
|
-
}
|
|
120
|
-
const location = options.frames?.[0] ? { file: options.frames[0].file, line: options.frames[0].line, column: options.frames[0].column } : void 0;
|
|
121
|
-
const metadata = { title: options.title, location, internal: options.internal, stepId: options.stepId };
|
|
122
|
-
if (this._tracingCount && options.frames && type !== "LocalUtils")
|
|
123
|
-
this._localUtils?.addStackToTracingNoReply({ callData: { stack: options.frames ?? [], id } }).catch(() => {
|
|
124
|
-
});
|
|
125
|
-
this._platform.zones.empty.run(() => this.onmessage({ ...message, metadata }));
|
|
126
|
-
return await new Promise((resolve, reject) => this._callbacks.set(id, { resolve, reject, title: options.title, type, method }));
|
|
127
|
-
}
|
|
128
|
-
_validatorFromWireContext() {
|
|
129
|
-
return {
|
|
130
|
-
tChannelImpl: this._tChannelImplFromWire.bind(this),
|
|
131
|
-
binary: this._rawBuffers ? "buffer" : "fromBase64",
|
|
132
|
-
isUnderTest: () => this._platform.isUnderTest()
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
dispatch(message) {
|
|
136
|
-
if (this._closedError)
|
|
137
|
-
return;
|
|
138
|
-
const { id, guid, method, params, result, error, log } = message;
|
|
139
|
-
if (id) {
|
|
140
|
-
if (this._platform.isLogEnabled("channel"))
|
|
141
|
-
this._platform.log("channel", "<RECV " + JSON.stringify(message));
|
|
142
|
-
const callback = this._callbacks.get(id);
|
|
143
|
-
if (!callback)
|
|
144
|
-
throw new Error(`Cannot find command to respond: ${id}`);
|
|
145
|
-
this._callbacks.delete(id);
|
|
146
|
-
if (error && !result) {
|
|
147
|
-
const parsedError = (0, import_errors.parseError)(error);
|
|
148
|
-
(0, import_stackTrace.rewriteErrorMessage)(parsedError, parsedError.message + formatCallLog(this._platform, log));
|
|
149
|
-
callback.reject(parsedError);
|
|
150
|
-
} else {
|
|
151
|
-
const validator2 = (0, import_validator.findValidator)(callback.type, callback.method, "Result");
|
|
152
|
-
callback.resolve(validator2(result, "", this._validatorFromWireContext()));
|
|
153
|
-
}
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (this._platform.isLogEnabled("channel"))
|
|
157
|
-
this._platform.log("channel", "<EVENT " + JSON.stringify(message));
|
|
158
|
-
if (method === "__create__") {
|
|
159
|
-
this._createRemoteObject(guid, params.type, params.guid, params.initializer);
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
const object = this._objects.get(guid);
|
|
163
|
-
if (!object)
|
|
164
|
-
throw new Error(`Cannot find object to "${method}": ${guid}`);
|
|
165
|
-
if (method === "__adopt__") {
|
|
166
|
-
const child = this._objects.get(params.guid);
|
|
167
|
-
if (!child)
|
|
168
|
-
throw new Error(`Unknown new child: ${params.guid}`);
|
|
169
|
-
object._adopt(child);
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
if (method === "__dispose__") {
|
|
173
|
-
object._dispose(params.reason);
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
const validator = (0, import_validator.findValidator)(object._type, method, "Event");
|
|
177
|
-
object._channel.emit(method, validator(params, "", this._validatorFromWireContext()));
|
|
178
|
-
}
|
|
179
|
-
close(cause) {
|
|
180
|
-
if (this._closedError)
|
|
181
|
-
return;
|
|
182
|
-
this._closedError = new import_errors.TargetClosedError(cause);
|
|
183
|
-
for (const callback of this._callbacks.values())
|
|
184
|
-
callback.reject(this._closedError);
|
|
185
|
-
this._callbacks.clear();
|
|
186
|
-
this.emit("close");
|
|
187
|
-
}
|
|
188
|
-
_tChannelImplFromWire(names, arg, path, context) {
|
|
189
|
-
if (arg && typeof arg === "object" && typeof arg.guid === "string") {
|
|
190
|
-
const object = this._objects.get(arg.guid);
|
|
191
|
-
if (!object)
|
|
192
|
-
throw new Error(`Object with guid ${arg.guid} was not bound in the connection`);
|
|
193
|
-
if (names !== "*" && !names.includes(object._type))
|
|
194
|
-
throw new import_validator.ValidationError(`${path}: expected channel ${names.toString()}`);
|
|
195
|
-
return object._channel;
|
|
196
|
-
}
|
|
197
|
-
throw new import_validator.ValidationError(`${path}: expected channel ${names.toString()}`);
|
|
198
|
-
}
|
|
199
|
-
_createRemoteObject(parentGuid, type, guid, initializer) {
|
|
200
|
-
const parent = this._objects.get(parentGuid);
|
|
201
|
-
if (!parent)
|
|
202
|
-
throw new Error(`Cannot find parent object ${parentGuid} to create ${guid}`);
|
|
203
|
-
let result;
|
|
204
|
-
const validator = (0, import_validator.findValidator)(type, "", "Initializer");
|
|
205
|
-
initializer = validator(initializer, "", this._validatorFromWireContext());
|
|
206
|
-
switch (type) {
|
|
207
|
-
case "Android":
|
|
208
|
-
result = new import_android.Android(parent, type, guid, initializer);
|
|
209
|
-
break;
|
|
210
|
-
case "AndroidSocket":
|
|
211
|
-
result = new import_android.AndroidSocket(parent, type, guid, initializer);
|
|
212
|
-
break;
|
|
213
|
-
case "AndroidDevice":
|
|
214
|
-
result = new import_android.AndroidDevice(parent, type, guid, initializer);
|
|
215
|
-
break;
|
|
216
|
-
case "APIRequestContext":
|
|
217
|
-
result = new import_fetch.APIRequestContext(parent, type, guid, initializer);
|
|
218
|
-
break;
|
|
219
|
-
case "Artifact":
|
|
220
|
-
result = new import_artifact.Artifact(parent, type, guid, initializer);
|
|
221
|
-
break;
|
|
222
|
-
case "BindingCall":
|
|
223
|
-
result = new import_page.BindingCall(parent, type, guid, initializer);
|
|
224
|
-
break;
|
|
225
|
-
case "Browser":
|
|
226
|
-
result = new import_browser.Browser(parent, type, guid, initializer);
|
|
227
|
-
break;
|
|
228
|
-
case "BrowserContext":
|
|
229
|
-
result = new import_browserContext.BrowserContext(parent, type, guid, initializer);
|
|
230
|
-
break;
|
|
231
|
-
case "BrowserType":
|
|
232
|
-
result = new import_browserType.BrowserType(parent, type, guid, initializer);
|
|
233
|
-
break;
|
|
234
|
-
case "CDPSession":
|
|
235
|
-
result = new import_cdpSession.CDPSession(parent, type, guid, initializer);
|
|
236
|
-
break;
|
|
237
|
-
case "Debugger":
|
|
238
|
-
result = new import_debugger.Debugger(parent, type, guid, initializer);
|
|
239
|
-
break;
|
|
240
|
-
case "Dialog":
|
|
241
|
-
result = new import_dialog.Dialog(parent, type, guid, initializer);
|
|
242
|
-
break;
|
|
243
|
-
case "Disposable":
|
|
244
|
-
result = new import_disposable.DisposableObject(parent, type, guid, initializer);
|
|
245
|
-
break;
|
|
246
|
-
case "Electron":
|
|
247
|
-
result = new import_electron.Electron(parent, type, guid, initializer);
|
|
248
|
-
break;
|
|
249
|
-
case "ElectronApplication":
|
|
250
|
-
result = new import_electron.ElectronApplication(parent, type, guid, initializer);
|
|
251
|
-
break;
|
|
252
|
-
case "ElementHandle":
|
|
253
|
-
result = new import_elementHandle.ElementHandle(parent, type, guid, initializer);
|
|
254
|
-
break;
|
|
255
|
-
case "Frame":
|
|
256
|
-
result = new import_frame.Frame(parent, type, guid, initializer);
|
|
257
|
-
break;
|
|
258
|
-
case "JSHandle":
|
|
259
|
-
result = new import_jsHandle.JSHandle(parent, type, guid, initializer);
|
|
260
|
-
break;
|
|
261
|
-
case "JsonPipe":
|
|
262
|
-
result = new import_jsonPipe.JsonPipe(parent, type, guid, initializer);
|
|
263
|
-
break;
|
|
264
|
-
case "LocalUtils":
|
|
265
|
-
result = new import_localUtils.LocalUtils(parent, type, guid, initializer);
|
|
266
|
-
if (!this._localUtils)
|
|
267
|
-
this._localUtils = result;
|
|
268
|
-
break;
|
|
269
|
-
case "Page":
|
|
270
|
-
result = new import_page.Page(parent, type, guid, initializer);
|
|
271
|
-
break;
|
|
272
|
-
case "Playwright":
|
|
273
|
-
result = new import_playwright.Playwright(parent, type, guid, initializer);
|
|
274
|
-
break;
|
|
275
|
-
case "Request":
|
|
276
|
-
result = new import_network.Request(parent, type, guid, initializer);
|
|
277
|
-
break;
|
|
278
|
-
case "Response":
|
|
279
|
-
result = new import_network.Response(parent, type, guid, initializer);
|
|
280
|
-
break;
|
|
281
|
-
case "Route":
|
|
282
|
-
result = new import_network.Route(parent, type, guid, initializer);
|
|
283
|
-
break;
|
|
284
|
-
case "Stream":
|
|
285
|
-
result = new import_stream.Stream(parent, type, guid, initializer);
|
|
286
|
-
break;
|
|
287
|
-
case "SocksSupport":
|
|
288
|
-
result = new DummyChannelOwner(parent, type, guid, initializer);
|
|
289
|
-
break;
|
|
290
|
-
case "Tracing":
|
|
291
|
-
result = new import_tracing.Tracing(parent, type, guid, initializer);
|
|
292
|
-
break;
|
|
293
|
-
case "WebSocket":
|
|
294
|
-
result = new import_network.WebSocket(parent, type, guid, initializer);
|
|
295
|
-
break;
|
|
296
|
-
case "WebSocketRoute":
|
|
297
|
-
result = new import_network.WebSocketRoute(parent, type, guid, initializer);
|
|
298
|
-
break;
|
|
299
|
-
case "Worker":
|
|
300
|
-
result = new import_worker.Worker(parent, type, guid, initializer);
|
|
301
|
-
break;
|
|
302
|
-
case "WritableStream":
|
|
303
|
-
result = new import_writableStream.WritableStream(parent, type, guid, initializer);
|
|
304
|
-
break;
|
|
305
|
-
default:
|
|
306
|
-
throw new Error("Missing type " + type);
|
|
307
|
-
}
|
|
308
|
-
return result;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
function formatCallLog(platform, log) {
|
|
312
|
-
if (!log || !log.some((l) => !!l))
|
|
313
|
-
return "";
|
|
314
|
-
return `
|
|
315
|
-
Call log:
|
|
316
|
-
${platform.colors.dim(log.join("\n"))}
|
|
317
|
-
`;
|
|
318
|
-
}
|
|
319
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
320
|
-
0 && (module.exports = {
|
|
321
|
-
Connection
|
|
322
|
-
});
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var consoleMessage_exports = {};
|
|
20
|
-
__export(consoleMessage_exports, {
|
|
21
|
-
ConsoleMessage: () => ConsoleMessage
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(consoleMessage_exports);
|
|
24
|
-
var import_jsHandle = require("./jsHandle");
|
|
25
|
-
class ConsoleMessage {
|
|
26
|
-
constructor(platform, event, page, worker) {
|
|
27
|
-
this._page = page;
|
|
28
|
-
this._worker = worker;
|
|
29
|
-
this._event = event;
|
|
30
|
-
if (platform.inspectCustom)
|
|
31
|
-
this[platform.inspectCustom] = () => this._inspect();
|
|
32
|
-
}
|
|
33
|
-
worker() {
|
|
34
|
-
return this._worker;
|
|
35
|
-
}
|
|
36
|
-
page() {
|
|
37
|
-
return this._page;
|
|
38
|
-
}
|
|
39
|
-
type() {
|
|
40
|
-
return this._event.type;
|
|
41
|
-
}
|
|
42
|
-
text() {
|
|
43
|
-
return this._event.text;
|
|
44
|
-
}
|
|
45
|
-
args() {
|
|
46
|
-
return this._event.args.map(import_jsHandle.JSHandle.from);
|
|
47
|
-
}
|
|
48
|
-
location() {
|
|
49
|
-
return this._event.location;
|
|
50
|
-
}
|
|
51
|
-
timestamp() {
|
|
52
|
-
return this._event.timestamp;
|
|
53
|
-
}
|
|
54
|
-
_inspect() {
|
|
55
|
-
return this.text();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
-
0 && (module.exports = {
|
|
60
|
-
ConsoleMessage
|
|
61
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var coverage_exports = {};
|
|
20
|
-
__export(coverage_exports, {
|
|
21
|
-
Coverage: () => Coverage
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(coverage_exports);
|
|
24
|
-
class Coverage {
|
|
25
|
-
constructor(channel) {
|
|
26
|
-
this._channel = channel;
|
|
27
|
-
}
|
|
28
|
-
async startJSCoverage(options = {}) {
|
|
29
|
-
await this._channel.startJSCoverage(options);
|
|
30
|
-
}
|
|
31
|
-
async stopJSCoverage() {
|
|
32
|
-
return (await this._channel.stopJSCoverage()).entries;
|
|
33
|
-
}
|
|
34
|
-
async startCSSCoverage(options = {}) {
|
|
35
|
-
await this._channel.startCSSCoverage(options);
|
|
36
|
-
}
|
|
37
|
-
async stopCSSCoverage() {
|
|
38
|
-
return (await this._channel.stopCSSCoverage()).entries;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
-
0 && (module.exports = {
|
|
43
|
-
Coverage
|
|
44
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var debugger_exports = {};
|
|
20
|
-
__export(debugger_exports, {
|
|
21
|
-
Debugger: () => Debugger
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(debugger_exports);
|
|
24
|
-
var import_channelOwner = require("./channelOwner");
|
|
25
|
-
var import_events = require("./events");
|
|
26
|
-
class Debugger extends import_channelOwner.ChannelOwner {
|
|
27
|
-
constructor(parent, type, guid, initializer) {
|
|
28
|
-
super(parent, type, guid, initializer);
|
|
29
|
-
this._pausedDetails = [];
|
|
30
|
-
this._channel.on("pausedStateChanged", ({ pausedDetails }) => {
|
|
31
|
-
this._pausedDetails = pausedDetails;
|
|
32
|
-
this.emit(import_events.Events.Debugger.PausedStateChanged);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
static from(channel) {
|
|
36
|
-
return channel._object;
|
|
37
|
-
}
|
|
38
|
-
async pause() {
|
|
39
|
-
await this._channel.pause();
|
|
40
|
-
}
|
|
41
|
-
async resume() {
|
|
42
|
-
await this._channel.resume();
|
|
43
|
-
}
|
|
44
|
-
async next() {
|
|
45
|
-
await this._channel.next();
|
|
46
|
-
}
|
|
47
|
-
async runTo(location) {
|
|
48
|
-
await this._channel.runTo({ location });
|
|
49
|
-
}
|
|
50
|
-
pausedDetails() {
|
|
51
|
-
return this._pausedDetails;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
-
0 && (module.exports = {
|
|
56
|
-
Debugger
|
|
57
|
-
});
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var dialog_exports = {};
|
|
20
|
-
__export(dialog_exports, {
|
|
21
|
-
Dialog: () => Dialog
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(dialog_exports);
|
|
24
|
-
var import_channelOwner = require("./channelOwner");
|
|
25
|
-
var import_page = require("./page");
|
|
26
|
-
class Dialog extends import_channelOwner.ChannelOwner {
|
|
27
|
-
static from(dialog) {
|
|
28
|
-
return dialog._object;
|
|
29
|
-
}
|
|
30
|
-
constructor(parent, type, guid, initializer) {
|
|
31
|
-
super(parent, type, guid, initializer);
|
|
32
|
-
this._page = import_page.Page.fromNullable(initializer.page);
|
|
33
|
-
}
|
|
34
|
-
page() {
|
|
35
|
-
return this._page;
|
|
36
|
-
}
|
|
37
|
-
type() {
|
|
38
|
-
return this._initializer.type;
|
|
39
|
-
}
|
|
40
|
-
message() {
|
|
41
|
-
return this._initializer.message;
|
|
42
|
-
}
|
|
43
|
-
defaultValue() {
|
|
44
|
-
return this._initializer.defaultValue;
|
|
45
|
-
}
|
|
46
|
-
async accept(promptText) {
|
|
47
|
-
await this._channel.accept({ promptText });
|
|
48
|
-
}
|
|
49
|
-
async dismiss() {
|
|
50
|
-
await this._channel.dismiss();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
-
0 && (module.exports = {
|
|
55
|
-
Dialog
|
|
56
|
-
});
|