rubycrawl 0.1.1 → 0.1.3
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.
- checksums.yaml +4 -4
- data/lib/rubycrawl/helpers.rb +1 -1
- data/lib/rubycrawl/markdown_converter.rb +33 -6
- data/lib/rubycrawl/result.rb +10 -2
- data/lib/rubycrawl/site_crawler.rb +7 -2
- data/lib/rubycrawl/version.rb +1 -1
- data/rubycrawl.gemspec +1 -1
- metadata +1 -571
- data/bin/console +0 -9
- data/bin/setup +0 -4
- data/node/.gitignore +0 -2
- data/node/.npmrc +0 -1
- data/node/README.md +0 -19
- data/node/node_modules/.bin/playwright +0 -1
- data/node/node_modules/.bin/playwright-core +0 -1
- data/node/node_modules/.package-lock.json +0 -65
- data/node/node_modules/dotenv/CHANGELOG.md +0 -520
- data/node/node_modules/dotenv/LICENSE +0 -23
- data/node/node_modules/dotenv/README-es.md +0 -411
- data/node/node_modules/dotenv/README.md +0 -645
- data/node/node_modules/dotenv/SECURITY.md +0 -1
- data/node/node_modules/dotenv/config.d.ts +0 -1
- data/node/node_modules/dotenv/config.js +0 -9
- data/node/node_modules/dotenv/lib/cli-options.js +0 -17
- data/node/node_modules/dotenv/lib/env-options.js +0 -28
- data/node/node_modules/dotenv/lib/main.d.ts +0 -162
- data/node/node_modules/dotenv/lib/main.js +0 -386
- data/node/node_modules/dotenv/package.json +0 -62
- data/node/node_modules/playwright/LICENSE +0 -202
- data/node/node_modules/playwright/NOTICE +0 -5
- data/node/node_modules/playwright/README.md +0 -168
- data/node/node_modules/playwright/ThirdPartyNotices.txt +0 -5042
- data/node/node_modules/playwright/cli.js +0 -19
- data/node/node_modules/playwright/index.d.ts +0 -17
- data/node/node_modules/playwright/index.js +0 -17
- data/node/node_modules/playwright/index.mjs +0 -18
- data/node/node_modules/playwright/jsx-runtime.js +0 -42
- data/node/node_modules/playwright/jsx-runtime.mjs +0 -21
- data/node/node_modules/playwright/lib/agents/agentParser.js +0 -89
- data/node/node_modules/playwright/lib/agents/copilot-setup-steps.yml +0 -34
- data/node/node_modules/playwright/lib/agents/generateAgents.js +0 -348
- data/node/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +0 -31
- data/node/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +0 -8
- data/node/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +0 -88
- data/node/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +0 -6
- data/node/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +0 -55
- data/node/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +0 -9
- data/node/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +0 -73
- data/node/node_modules/playwright/lib/common/config.js +0 -282
- data/node/node_modules/playwright/lib/common/configLoader.js +0 -344
- data/node/node_modules/playwright/lib/common/esmLoaderHost.js +0 -104
- data/node/node_modules/playwright/lib/common/expectBundle.js +0 -28
- data/node/node_modules/playwright/lib/common/expectBundleImpl.js +0 -407
- data/node/node_modules/playwright/lib/common/fixtures.js +0 -302
- data/node/node_modules/playwright/lib/common/globals.js +0 -58
- data/node/node_modules/playwright/lib/common/ipc.js +0 -60
- data/node/node_modules/playwright/lib/common/poolBuilder.js +0 -85
- data/node/node_modules/playwright/lib/common/process.js +0 -132
- data/node/node_modules/playwright/lib/common/suiteUtils.js +0 -140
- data/node/node_modules/playwright/lib/common/test.js +0 -321
- data/node/node_modules/playwright/lib/common/testLoader.js +0 -101
- data/node/node_modules/playwright/lib/common/testType.js +0 -298
- data/node/node_modules/playwright/lib/common/validators.js +0 -68
- data/node/node_modules/playwright/lib/fsWatcher.js +0 -67
- data/node/node_modules/playwright/lib/index.js +0 -726
- data/node/node_modules/playwright/lib/internalsForTest.js +0 -42
- data/node/node_modules/playwright/lib/isomorphic/events.js +0 -77
- data/node/node_modules/playwright/lib/isomorphic/folders.js +0 -30
- data/node/node_modules/playwright/lib/isomorphic/stringInternPool.js +0 -69
- data/node/node_modules/playwright/lib/isomorphic/teleReceiver.js +0 -521
- data/node/node_modules/playwright/lib/isomorphic/teleSuiteUpdater.js +0 -157
- data/node/node_modules/playwright/lib/isomorphic/testServerConnection.js +0 -225
- data/node/node_modules/playwright/lib/isomorphic/testServerInterface.js +0 -16
- data/node/node_modules/playwright/lib/isomorphic/testTree.js +0 -329
- data/node/node_modules/playwright/lib/isomorphic/types.d.js +0 -16
- data/node/node_modules/playwright/lib/loader/loaderMain.js +0 -59
- data/node/node_modules/playwright/lib/matchers/expect.js +0 -311
- data/node/node_modules/playwright/lib/matchers/matcherHint.js +0 -44
- data/node/node_modules/playwright/lib/matchers/matchers.js +0 -383
- data/node/node_modules/playwright/lib/matchers/toBeTruthy.js +0 -75
- data/node/node_modules/playwright/lib/matchers/toEqual.js +0 -100
- data/node/node_modules/playwright/lib/matchers/toHaveURL.js +0 -101
- data/node/node_modules/playwright/lib/matchers/toMatchAriaSnapshot.js +0 -159
- data/node/node_modules/playwright/lib/matchers/toMatchSnapshot.js +0 -342
- data/node/node_modules/playwright/lib/matchers/toMatchText.js +0 -99
- data/node/node_modules/playwright/lib/mcp/browser/browserContextFactory.js +0 -329
- data/node/node_modules/playwright/lib/mcp/browser/browserServerBackend.js +0 -84
- data/node/node_modules/playwright/lib/mcp/browser/config.js +0 -421
- data/node/node_modules/playwright/lib/mcp/browser/context.js +0 -244
- data/node/node_modules/playwright/lib/mcp/browser/response.js +0 -278
- data/node/node_modules/playwright/lib/mcp/browser/sessionLog.js +0 -75
- data/node/node_modules/playwright/lib/mcp/browser/tab.js +0 -343
- data/node/node_modules/playwright/lib/mcp/browser/tools/common.js +0 -65
- data/node/node_modules/playwright/lib/mcp/browser/tools/console.js +0 -46
- data/node/node_modules/playwright/lib/mcp/browser/tools/dialogs.js +0 -60
- data/node/node_modules/playwright/lib/mcp/browser/tools/evaluate.js +0 -61
- data/node/node_modules/playwright/lib/mcp/browser/tools/files.js +0 -58
- data/node/node_modules/playwright/lib/mcp/browser/tools/form.js +0 -63
- data/node/node_modules/playwright/lib/mcp/browser/tools/install.js +0 -72
- data/node/node_modules/playwright/lib/mcp/browser/tools/keyboard.js +0 -107
- data/node/node_modules/playwright/lib/mcp/browser/tools/mouse.js +0 -107
- data/node/node_modules/playwright/lib/mcp/browser/tools/navigate.js +0 -71
- data/node/node_modules/playwright/lib/mcp/browser/tools/network.js +0 -63
- data/node/node_modules/playwright/lib/mcp/browser/tools/open.js +0 -57
- data/node/node_modules/playwright/lib/mcp/browser/tools/pdf.js +0 -49
- data/node/node_modules/playwright/lib/mcp/browser/tools/runCode.js +0 -78
- data/node/node_modules/playwright/lib/mcp/browser/tools/screenshot.js +0 -93
- data/node/node_modules/playwright/lib/mcp/browser/tools/snapshot.js +0 -173
- data/node/node_modules/playwright/lib/mcp/browser/tools/tabs.js +0 -67
- data/node/node_modules/playwright/lib/mcp/browser/tools/tool.js +0 -47
- data/node/node_modules/playwright/lib/mcp/browser/tools/tracing.js +0 -74
- data/node/node_modules/playwright/lib/mcp/browser/tools/utils.js +0 -94
- data/node/node_modules/playwright/lib/mcp/browser/tools/verify.js +0 -143
- data/node/node_modules/playwright/lib/mcp/browser/tools/wait.js +0 -63
- data/node/node_modules/playwright/lib/mcp/browser/tools.js +0 -84
- data/node/node_modules/playwright/lib/mcp/browser/watchdog.js +0 -44
- data/node/node_modules/playwright/lib/mcp/config.d.js +0 -16
- data/node/node_modules/playwright/lib/mcp/extension/cdpRelay.js +0 -351
- data/node/node_modules/playwright/lib/mcp/extension/extensionContextFactory.js +0 -76
- data/node/node_modules/playwright/lib/mcp/extension/protocol.js +0 -28
- data/node/node_modules/playwright/lib/mcp/index.js +0 -61
- data/node/node_modules/playwright/lib/mcp/log.js +0 -35
- data/node/node_modules/playwright/lib/mcp/program.js +0 -111
- data/node/node_modules/playwright/lib/mcp/sdk/exports.js +0 -28
- data/node/node_modules/playwright/lib/mcp/sdk/http.js +0 -152
- data/node/node_modules/playwright/lib/mcp/sdk/inProcessTransport.js +0 -71
- data/node/node_modules/playwright/lib/mcp/sdk/server.js +0 -223
- data/node/node_modules/playwright/lib/mcp/sdk/tool.js +0 -47
- data/node/node_modules/playwright/lib/mcp/terminal/cli.js +0 -296
- data/node/node_modules/playwright/lib/mcp/terminal/command.js +0 -56
- data/node/node_modules/playwright/lib/mcp/terminal/commands.js +0 -333
- data/node/node_modules/playwright/lib/mcp/terminal/daemon.js +0 -129
- data/node/node_modules/playwright/lib/mcp/terminal/help.json +0 -32
- data/node/node_modules/playwright/lib/mcp/terminal/helpGenerator.js +0 -88
- data/node/node_modules/playwright/lib/mcp/terminal/socketConnection.js +0 -80
- data/node/node_modules/playwright/lib/mcp/test/browserBackend.js +0 -98
- data/node/node_modules/playwright/lib/mcp/test/generatorTools.js +0 -122
- data/node/node_modules/playwright/lib/mcp/test/plannerTools.js +0 -145
- data/node/node_modules/playwright/lib/mcp/test/seed.js +0 -82
- data/node/node_modules/playwright/lib/mcp/test/streams.js +0 -44
- data/node/node_modules/playwright/lib/mcp/test/testBackend.js +0 -99
- data/node/node_modules/playwright/lib/mcp/test/testContext.js +0 -285
- data/node/node_modules/playwright/lib/mcp/test/testTool.js +0 -30
- data/node/node_modules/playwright/lib/mcp/test/testTools.js +0 -108
- data/node/node_modules/playwright/lib/plugins/gitCommitInfoPlugin.js +0 -198
- data/node/node_modules/playwright/lib/plugins/index.js +0 -28
- data/node/node_modules/playwright/lib/plugins/webServerPlugin.js +0 -237
- data/node/node_modules/playwright/lib/program.js +0 -417
- data/node/node_modules/playwright/lib/reporters/base.js +0 -634
- data/node/node_modules/playwright/lib/reporters/blob.js +0 -138
- data/node/node_modules/playwright/lib/reporters/dot.js +0 -99
- data/node/node_modules/playwright/lib/reporters/empty.js +0 -32
- data/node/node_modules/playwright/lib/reporters/github.js +0 -128
- data/node/node_modules/playwright/lib/reporters/html.js +0 -633
- data/node/node_modules/playwright/lib/reporters/internalReporter.js +0 -138
- data/node/node_modules/playwright/lib/reporters/json.js +0 -254
- data/node/node_modules/playwright/lib/reporters/junit.js +0 -232
- data/node/node_modules/playwright/lib/reporters/line.js +0 -131
- data/node/node_modules/playwright/lib/reporters/list.js +0 -253
- data/node/node_modules/playwright/lib/reporters/listModeReporter.js +0 -69
- data/node/node_modules/playwright/lib/reporters/markdown.js +0 -144
- data/node/node_modules/playwright/lib/reporters/merge.js +0 -558
- data/node/node_modules/playwright/lib/reporters/multiplexer.js +0 -112
- data/node/node_modules/playwright/lib/reporters/reporterV2.js +0 -102
- data/node/node_modules/playwright/lib/reporters/teleEmitter.js +0 -317
- data/node/node_modules/playwright/lib/reporters/versions/blobV1.js +0 -16
- data/node/node_modules/playwright/lib/runner/dispatcher.js +0 -530
- data/node/node_modules/playwright/lib/runner/failureTracker.js +0 -72
- data/node/node_modules/playwright/lib/runner/lastRun.js +0 -77
- data/node/node_modules/playwright/lib/runner/loadUtils.js +0 -334
- data/node/node_modules/playwright/lib/runner/loaderHost.js +0 -89
- data/node/node_modules/playwright/lib/runner/processHost.js +0 -180
- data/node/node_modules/playwright/lib/runner/projectUtils.js +0 -241
- data/node/node_modules/playwright/lib/runner/rebase.js +0 -189
- data/node/node_modules/playwright/lib/runner/reporters.js +0 -138
- data/node/node_modules/playwright/lib/runner/sigIntWatcher.js +0 -96
- data/node/node_modules/playwright/lib/runner/storage.js +0 -91
- data/node/node_modules/playwright/lib/runner/taskRunner.js +0 -127
- data/node/node_modules/playwright/lib/runner/tasks.js +0 -410
- data/node/node_modules/playwright/lib/runner/testGroups.js +0 -125
- data/node/node_modules/playwright/lib/runner/testRunner.js +0 -398
- data/node/node_modules/playwright/lib/runner/testServer.js +0 -269
- data/node/node_modules/playwright/lib/runner/uiModeReporter.js +0 -30
- data/node/node_modules/playwright/lib/runner/vcs.js +0 -72
- data/node/node_modules/playwright/lib/runner/watchMode.js +0 -396
- data/node/node_modules/playwright/lib/runner/workerHost.js +0 -104
- data/node/node_modules/playwright/lib/third_party/pirates.js +0 -62
- data/node/node_modules/playwright/lib/third_party/tsconfig-loader.js +0 -103
- data/node/node_modules/playwright/lib/transform/babelBundle.js +0 -46
- data/node/node_modules/playwright/lib/transform/babelBundleImpl.js +0 -461
- data/node/node_modules/playwright/lib/transform/compilationCache.js +0 -274
- data/node/node_modules/playwright/lib/transform/esmLoader.js +0 -103
- data/node/node_modules/playwright/lib/transform/md.js +0 -221
- data/node/node_modules/playwright/lib/transform/portTransport.js +0 -67
- data/node/node_modules/playwright/lib/transform/transform.js +0 -303
- data/node/node_modules/playwright/lib/util.js +0 -400
- data/node/node_modules/playwright/lib/utilsBundle.js +0 -50
- data/node/node_modules/playwright/lib/utilsBundleImpl.js +0 -103
- data/node/node_modules/playwright/lib/worker/fixtureRunner.js +0 -262
- data/node/node_modules/playwright/lib/worker/testInfo.js +0 -536
- data/node/node_modules/playwright/lib/worker/testTracing.js +0 -345
- data/node/node_modules/playwright/lib/worker/timeoutManager.js +0 -174
- data/node/node_modules/playwright/lib/worker/util.js +0 -31
- data/node/node_modules/playwright/lib/worker/workerMain.js +0 -530
- data/node/node_modules/playwright/package.json +0 -72
- data/node/node_modules/playwright/test.d.ts +0 -18
- data/node/node_modules/playwright/test.js +0 -24
- data/node/node_modules/playwright/test.mjs +0 -34
- data/node/node_modules/playwright/types/test.d.ts +0 -10251
- data/node/node_modules/playwright/types/testReporter.d.ts +0 -822
- data/node/node_modules/playwright-core/LICENSE +0 -202
- data/node/node_modules/playwright-core/NOTICE +0 -5
- data/node/node_modules/playwright-core/README.md +0 -3
- data/node/node_modules/playwright-core/ThirdPartyNotices.txt +0 -4076
- data/node/node_modules/playwright-core/bin/install_media_pack.ps1 +0 -5
- data/node/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +0 -33
- data/node/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -42
- data/node/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -13
- data/node/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +0 -24
- data/node/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -42
- data/node/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -12
- data/node/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +0 -24
- data/node/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -48
- data/node/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -11
- data/node/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +0 -23
- data/node/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -48
- data/node/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -11
- data/node/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +0 -23
- data/node/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -48
- data/node/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -11
- data/node/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +0 -24
- data/node/node_modules/playwright-core/browsers.json +0 -79
- data/node/node_modules/playwright-core/cli.js +0 -18
- data/node/node_modules/playwright-core/index.d.ts +0 -17
- data/node/node_modules/playwright-core/index.js +0 -32
- data/node/node_modules/playwright-core/index.mjs +0 -28
- data/node/node_modules/playwright-core/lib/androidServerImpl.js +0 -65
- data/node/node_modules/playwright-core/lib/browserServerImpl.js +0 -120
- data/node/node_modules/playwright-core/lib/cli/driver.js +0 -97
- data/node/node_modules/playwright-core/lib/cli/program.js +0 -589
- data/node/node_modules/playwright-core/lib/cli/programWithTestStub.js +0 -74
- data/node/node_modules/playwright-core/lib/client/android.js +0 -361
- data/node/node_modules/playwright-core/lib/client/api.js +0 -137
- data/node/node_modules/playwright-core/lib/client/artifact.js +0 -79
- data/node/node_modules/playwright-core/lib/client/browser.js +0 -161
- data/node/node_modules/playwright-core/lib/client/browserContext.js +0 -582
- data/node/node_modules/playwright-core/lib/client/browserType.js +0 -185
- data/node/node_modules/playwright-core/lib/client/cdpSession.js +0 -51
- data/node/node_modules/playwright-core/lib/client/channelOwner.js +0 -194
- data/node/node_modules/playwright-core/lib/client/clientHelper.js +0 -64
- data/node/node_modules/playwright-core/lib/client/clientInstrumentation.js +0 -55
- data/node/node_modules/playwright-core/lib/client/clientStackTrace.js +0 -69
- data/node/node_modules/playwright-core/lib/client/clock.js +0 -68
- data/node/node_modules/playwright-core/lib/client/connection.js +0 -318
- data/node/node_modules/playwright-core/lib/client/consoleMessage.js +0 -58
- data/node/node_modules/playwright-core/lib/client/coverage.js +0 -44
- data/node/node_modules/playwright-core/lib/client/dialog.js +0 -56
- data/node/node_modules/playwright-core/lib/client/download.js +0 -62
- data/node/node_modules/playwright-core/lib/client/electron.js +0 -138
- data/node/node_modules/playwright-core/lib/client/elementHandle.js +0 -284
- data/node/node_modules/playwright-core/lib/client/errors.js +0 -77
- data/node/node_modules/playwright-core/lib/client/eventEmitter.js +0 -314
- data/node/node_modules/playwright-core/lib/client/events.js +0 -103
- data/node/node_modules/playwright-core/lib/client/fetch.js +0 -368
- data/node/node_modules/playwright-core/lib/client/fileChooser.js +0 -46
- data/node/node_modules/playwright-core/lib/client/fileUtils.js +0 -34
- data/node/node_modules/playwright-core/lib/client/frame.js +0 -409
- data/node/node_modules/playwright-core/lib/client/harRouter.js +0 -87
- data/node/node_modules/playwright-core/lib/client/input.js +0 -84
- data/node/node_modules/playwright-core/lib/client/jsHandle.js +0 -109
- data/node/node_modules/playwright-core/lib/client/jsonPipe.js +0 -39
- data/node/node_modules/playwright-core/lib/client/localUtils.js +0 -60
- data/node/node_modules/playwright-core/lib/client/locator.js +0 -369
- data/node/node_modules/playwright-core/lib/client/network.js +0 -747
- data/node/node_modules/playwright-core/lib/client/page.js +0 -745
- data/node/node_modules/playwright-core/lib/client/pageAgent.js +0 -64
- data/node/node_modules/playwright-core/lib/client/platform.js +0 -77
- data/node/node_modules/playwright-core/lib/client/playwright.js +0 -71
- data/node/node_modules/playwright-core/lib/client/selectors.js +0 -55
- data/node/node_modules/playwright-core/lib/client/stream.js +0 -39
- data/node/node_modules/playwright-core/lib/client/timeoutSettings.js +0 -79
- data/node/node_modules/playwright-core/lib/client/tracing.js +0 -119
- data/node/node_modules/playwright-core/lib/client/types.js +0 -28
- data/node/node_modules/playwright-core/lib/client/video.js +0 -59
- data/node/node_modules/playwright-core/lib/client/waiter.js +0 -142
- data/node/node_modules/playwright-core/lib/client/webError.js +0 -39
- data/node/node_modules/playwright-core/lib/client/webSocket.js +0 -93
- data/node/node_modules/playwright-core/lib/client/worker.js +0 -85
- data/node/node_modules/playwright-core/lib/client/writableStream.js +0 -39
- data/node/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +0 -28
- data/node/node_modules/playwright-core/lib/generated/clockSource.js +0 -28
- data/node/node_modules/playwright-core/lib/generated/injectedScriptSource.js +0 -28
- data/node/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +0 -28
- data/node/node_modules/playwright-core/lib/generated/storageScriptSource.js +0 -28
- data/node/node_modules/playwright-core/lib/generated/utilityScriptSource.js +0 -28
- data/node/node_modules/playwright-core/lib/generated/webSocketMockSource.js +0 -336
- data/node/node_modules/playwright-core/lib/inProcessFactory.js +0 -60
- data/node/node_modules/playwright-core/lib/inprocess.js +0 -3
- data/node/node_modules/playwright-core/lib/mcpBundle.js +0 -84
- data/node/node_modules/playwright-core/lib/mcpBundleImpl/index.js +0 -147
- data/node/node_modules/playwright-core/lib/outofprocess.js +0 -76
- data/node/node_modules/playwright-core/lib/protocol/serializers.js +0 -197
- data/node/node_modules/playwright-core/lib/protocol/validator.js +0 -2969
- data/node/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +0 -193
- data/node/node_modules/playwright-core/lib/remote/playwrightConnection.js +0 -129
- data/node/node_modules/playwright-core/lib/remote/playwrightServer.js +0 -334
- data/node/node_modules/playwright-core/lib/server/agent/actionRunner.js +0 -335
- data/node/node_modules/playwright-core/lib/server/agent/actions.js +0 -128
- data/node/node_modules/playwright-core/lib/server/agent/codegen.js +0 -111
- data/node/node_modules/playwright-core/lib/server/agent/context.js +0 -150
- data/node/node_modules/playwright-core/lib/server/agent/expectTools.js +0 -156
- data/node/node_modules/playwright-core/lib/server/agent/pageAgent.js +0 -204
- data/node/node_modules/playwright-core/lib/server/agent/performTools.js +0 -262
- data/node/node_modules/playwright-core/lib/server/agent/tool.js +0 -109
- data/node/node_modules/playwright-core/lib/server/android/android.js +0 -465
- data/node/node_modules/playwright-core/lib/server/android/backendAdb.js +0 -177
- data/node/node_modules/playwright-core/lib/server/artifact.js +0 -127
- data/node/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +0 -549
- data/node/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +0 -148
- data/node/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +0 -213
- data/node/node_modules/playwright-core/lib/server/bidi/bidiDeserializer.js +0 -116
- data/node/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +0 -267
- data/node/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +0 -128
- data/node/node_modules/playwright-core/lib/server/bidi/bidiInput.js +0 -146
- data/node/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +0 -383
- data/node/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +0 -102
- data/node/node_modules/playwright-core/lib/server/bidi/bidiPage.js +0 -583
- data/node/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +0 -106
- data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +0 -22
- data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +0 -256
- data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +0 -24
- data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +0 -180
- data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +0 -42
- data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +0 -148
- data/node/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +0 -259
- data/node/node_modules/playwright-core/lib/server/browser.js +0 -149
- data/node/node_modules/playwright-core/lib/server/browserContext.js +0 -702
- data/node/node_modules/playwright-core/lib/server/browserType.js +0 -336
- data/node/node_modules/playwright-core/lib/server/callLog.js +0 -82
- data/node/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- data/node/node_modules/playwright-core/lib/server/chromium/chromium.js +0 -395
- data/node/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +0 -104
- data/node/node_modules/playwright-core/lib/server/chromium/crBrowser.js +0 -511
- data/node/node_modules/playwright-core/lib/server/chromium/crConnection.js +0 -197
- data/node/node_modules/playwright-core/lib/server/chromium/crCoverage.js +0 -235
- data/node/node_modules/playwright-core/lib/server/chromium/crDevTools.js +0 -111
- data/node/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +0 -131
- data/node/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +0 -146
- data/node/node_modules/playwright-core/lib/server/chromium/crInput.js +0 -187
- data/node/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +0 -707
- data/node/node_modules/playwright-core/lib/server/chromium/crPage.js +0 -1001
- data/node/node_modules/playwright-core/lib/server/chromium/crPdf.js +0 -121
- data/node/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +0 -145
- data/node/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +0 -136
- data/node/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +0 -162
- data/node/node_modules/playwright-core/lib/server/chromium/protocol.d.js +0 -16
- data/node/node_modules/playwright-core/lib/server/clock.js +0 -149
- data/node/node_modules/playwright-core/lib/server/codegen/csharp.js +0 -327
- data/node/node_modules/playwright-core/lib/server/codegen/java.js +0 -274
- data/node/node_modules/playwright-core/lib/server/codegen/javascript.js +0 -247
- data/node/node_modules/playwright-core/lib/server/codegen/jsonl.js +0 -52
- data/node/node_modules/playwright-core/lib/server/codegen/language.js +0 -132
- data/node/node_modules/playwright-core/lib/server/codegen/languages.js +0 -68
- data/node/node_modules/playwright-core/lib/server/codegen/python.js +0 -279
- data/node/node_modules/playwright-core/lib/server/codegen/types.js +0 -16
- data/node/node_modules/playwright-core/lib/server/console.js +0 -57
- data/node/node_modules/playwright-core/lib/server/cookieStore.js +0 -206
- data/node/node_modules/playwright-core/lib/server/debugController.js +0 -191
- data/node/node_modules/playwright-core/lib/server/debugger.js +0 -119
- data/node/node_modules/playwright-core/lib/server/deviceDescriptors.js +0 -39
- data/node/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +0 -1779
- data/node/node_modules/playwright-core/lib/server/dialog.js +0 -116
- data/node/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +0 -325
- data/node/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +0 -118
- data/node/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +0 -384
- data/node/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +0 -118
- data/node/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +0 -64
- data/node/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +0 -44
- data/node/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +0 -78
- data/node/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +0 -47
- data/node/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +0 -364
- data/node/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +0 -89
- data/node/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +0 -181
- data/node/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +0 -227
- data/node/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +0 -85
- data/node/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +0 -58
- data/node/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +0 -149
- data/node/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +0 -213
- data/node/node_modules/playwright-core/lib/server/dispatchers/pageAgentDispatcher.js +0 -96
- data/node/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +0 -393
- data/node/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +0 -108
- data/node/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +0 -67
- data/node/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +0 -68
- data/node/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -165
- data/node/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +0 -79
- data/node/node_modules/playwright-core/lib/server/dom.js +0 -815
- data/node/node_modules/playwright-core/lib/server/download.js +0 -70
- data/node/node_modules/playwright-core/lib/server/electron/electron.js +0 -273
- data/node/node_modules/playwright-core/lib/server/electron/loader.js +0 -29
- data/node/node_modules/playwright-core/lib/server/errors.js +0 -69
- data/node/node_modules/playwright-core/lib/server/fetch.js +0 -621
- data/node/node_modules/playwright-core/lib/server/fileChooser.js +0 -43
- data/node/node_modules/playwright-core/lib/server/fileUploadUtils.js +0 -84
- data/node/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +0 -418
- data/node/node_modules/playwright-core/lib/server/firefox/ffConnection.js +0 -142
- data/node/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +0 -150
- data/node/node_modules/playwright-core/lib/server/firefox/ffInput.js +0 -159
- data/node/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +0 -256
- data/node/node_modules/playwright-core/lib/server/firefox/ffPage.js +0 -497
- data/node/node_modules/playwright-core/lib/server/firefox/firefox.js +0 -114
- data/node/node_modules/playwright-core/lib/server/firefox/protocol.d.js +0 -16
- data/node/node_modules/playwright-core/lib/server/formData.js +0 -147
- data/node/node_modules/playwright-core/lib/server/frameSelectors.js +0 -160
- data/node/node_modules/playwright-core/lib/server/frames.js +0 -1471
- data/node/node_modules/playwright-core/lib/server/har/harRecorder.js +0 -147
- data/node/node_modules/playwright-core/lib/server/har/harTracer.js +0 -607
- data/node/node_modules/playwright-core/lib/server/harBackend.js +0 -157
- data/node/node_modules/playwright-core/lib/server/helper.js +0 -96
- data/node/node_modules/playwright-core/lib/server/index.js +0 -58
- data/node/node_modules/playwright-core/lib/server/input.js +0 -277
- data/node/node_modules/playwright-core/lib/server/instrumentation.js +0 -72
- data/node/node_modules/playwright-core/lib/server/javascript.js +0 -291
- data/node/node_modules/playwright-core/lib/server/launchApp.js +0 -128
- data/node/node_modules/playwright-core/lib/server/localUtils.js +0 -214
- data/node/node_modules/playwright-core/lib/server/macEditingCommands.js +0 -143
- data/node/node_modules/playwright-core/lib/server/network.js +0 -667
- data/node/node_modules/playwright-core/lib/server/page.js +0 -830
- data/node/node_modules/playwright-core/lib/server/pipeTransport.js +0 -89
- data/node/node_modules/playwright-core/lib/server/playwright.js +0 -69
- data/node/node_modules/playwright-core/lib/server/progress.js +0 -132
- data/node/node_modules/playwright-core/lib/server/protocolError.js +0 -52
- data/node/node_modules/playwright-core/lib/server/recorder/chat.js +0 -161
- data/node/node_modules/playwright-core/lib/server/recorder/recorderApp.js +0 -366
- data/node/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +0 -138
- data/node/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +0 -83
- data/node/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +0 -157
- data/node/node_modules/playwright-core/lib/server/recorder/throttledFile.js +0 -57
- data/node/node_modules/playwright-core/lib/server/recorder.js +0 -499
- data/node/node_modules/playwright-core/lib/server/registry/browserFetcher.js +0 -177
- data/node/node_modules/playwright-core/lib/server/registry/dependencies.js +0 -371
- data/node/node_modules/playwright-core/lib/server/registry/index.js +0 -1422
- data/node/node_modules/playwright-core/lib/server/registry/nativeDeps.js +0 -1280
- data/node/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +0 -127
- data/node/node_modules/playwright-core/lib/server/screencast.js +0 -190
- data/node/node_modules/playwright-core/lib/server/screenshotter.js +0 -333
- data/node/node_modules/playwright-core/lib/server/selectors.js +0 -112
- data/node/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +0 -383
- data/node/node_modules/playwright-core/lib/server/socksInterceptor.js +0 -95
- data/node/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +0 -147
- data/node/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +0 -561
- data/node/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +0 -604
- data/node/node_modules/playwright-core/lib/server/trace/viewer/traceParser.js +0 -72
- data/node/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +0 -245
- data/node/node_modules/playwright-core/lib/server/transport.js +0 -181
- data/node/node_modules/playwright-core/lib/server/types.js +0 -28
- data/node/node_modules/playwright-core/lib/server/usKeyboardLayout.js +0 -145
- data/node/node_modules/playwright-core/lib/server/utils/ascii.js +0 -44
- data/node/node_modules/playwright-core/lib/server/utils/comparators.js +0 -139
- data/node/node_modules/playwright-core/lib/server/utils/crypto.js +0 -216
- data/node/node_modules/playwright-core/lib/server/utils/debug.js +0 -42
- data/node/node_modules/playwright-core/lib/server/utils/debugLogger.js +0 -122
- data/node/node_modules/playwright-core/lib/server/utils/env.js +0 -73
- data/node/node_modules/playwright-core/lib/server/utils/eventsHelper.js +0 -39
- data/node/node_modules/playwright-core/lib/server/utils/expectUtils.js +0 -123
- data/node/node_modules/playwright-core/lib/server/utils/fileUtils.js +0 -191
- data/node/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +0 -207
- data/node/node_modules/playwright-core/lib/server/utils/hostPlatform.js +0 -123
- data/node/node_modules/playwright-core/lib/server/utils/httpServer.js +0 -203
- data/node/node_modules/playwright-core/lib/server/utils/imageUtils.js +0 -141
- data/node/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +0 -89
- data/node/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +0 -109
- data/node/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +0 -78
- data/node/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +0 -102
- data/node/node_modules/playwright-core/lib/server/utils/linuxUtils.js +0 -71
- data/node/node_modules/playwright-core/lib/server/utils/network.js +0 -242
- data/node/node_modules/playwright-core/lib/server/utils/nodePlatform.js +0 -154
- data/node/node_modules/playwright-core/lib/server/utils/pipeTransport.js +0 -84
- data/node/node_modules/playwright-core/lib/server/utils/processLauncher.js +0 -241
- data/node/node_modules/playwright-core/lib/server/utils/profiler.js +0 -65
- data/node/node_modules/playwright-core/lib/server/utils/socksProxy.js +0 -511
- data/node/node_modules/playwright-core/lib/server/utils/spawnAsync.js +0 -41
- data/node/node_modules/playwright-core/lib/server/utils/task.js +0 -51
- data/node/node_modules/playwright-core/lib/server/utils/userAgent.js +0 -98
- data/node/node_modules/playwright-core/lib/server/utils/wsServer.js +0 -121
- data/node/node_modules/playwright-core/lib/server/utils/zipFile.js +0 -74
- data/node/node_modules/playwright-core/lib/server/utils/zones.js +0 -57
- data/node/node_modules/playwright-core/lib/server/videoRecorder.js +0 -124
- data/node/node_modules/playwright-core/lib/server/webkit/protocol.d.js +0 -16
- data/node/node_modules/playwright-core/lib/server/webkit/webkit.js +0 -108
- data/node/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +0 -335
- data/node/node_modules/playwright-core/lib/server/webkit/wkConnection.js +0 -144
- data/node/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +0 -154
- data/node/node_modules/playwright-core/lib/server/webkit/wkInput.js +0 -181
- data/node/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +0 -197
- data/node/node_modules/playwright-core/lib/server/webkit/wkPage.js +0 -1158
- data/node/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +0 -83
- data/node/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +0 -105
- data/node/node_modules/playwright-core/lib/third_party/pixelmatch.js +0 -255
- data/node/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +0 -455
- data/node/node_modules/playwright-core/lib/utils/isomorphic/assert.js +0 -31
- data/node/node_modules/playwright-core/lib/utils/isomorphic/colors.js +0 -72
- data/node/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +0 -245
- data/node/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +0 -1051
- data/node/node_modules/playwright-core/lib/utils/isomorphic/headers.js +0 -53
- data/node/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +0 -689
- data/node/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +0 -176
- data/node/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +0 -81
- data/node/node_modules/playwright-core/lib/utils/isomorphic/lruCache.js +0 -51
- data/node/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +0 -114
- data/node/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +0 -459
- data/node/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +0 -80
- data/node/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +0 -81
- data/node/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +0 -330
- data/node/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +0 -43
- data/node/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +0 -386
- data/node/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +0 -54
- data/node/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +0 -158
- data/node/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +0 -204
- data/node/node_modules/playwright-core/lib/utils/isomorphic/time.js +0 -49
- data/node/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +0 -66
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/entries.js +0 -16
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotRenderer.js +0 -499
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotServer.js +0 -120
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +0 -89
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +0 -131
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js +0 -365
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +0 -400
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +0 -16
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +0 -16
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +0 -16
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +0 -16
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +0 -16
- data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +0 -16
- data/node/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +0 -58
- data/node/node_modules/playwright-core/lib/utils/isomorphic/types.js +0 -16
- data/node/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +0 -190
- data/node/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +0 -251
- data/node/node_modules/playwright-core/lib/utils/isomorphic/yaml.js +0 -84
- data/node/node_modules/playwright-core/lib/utils.js +0 -111
- data/node/node_modules/playwright-core/lib/utilsBundle.js +0 -109
- data/node/node_modules/playwright-core/lib/utilsBundleImpl/index.js +0 -218
- data/node/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +0 -1066
- data/node/node_modules/playwright-core/lib/vite/htmlReport/index.html +0 -84
- data/node/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +0 -1
- data/node/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DadYNm1I.js +0 -32
- data/node/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- data/node/node_modules/playwright-core/lib/vite/recorder/assets/index-BSjZa4pk.css +0 -1
- data/node/node_modules/playwright-core/lib/vite/recorder/assets/index-BhTWtUlo.js +0 -193
- data/node/node_modules/playwright-core/lib/vite/recorder/index.html +0 -29
- data/node/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +0 -9
- data/node/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-a5XoALAZ.js +0 -32
- data/node/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CJSZINFr.js +0 -266
- data/node/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +0 -9
- data/node/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +0 -1
- data/node/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- data/node/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.7ch9cixO.css +0 -1
- data/node/node_modules/playwright-core/lib/vite/traceViewer/index.BVu7tZDe.css +0 -1
- data/node/node_modules/playwright-core/lib/vite/traceViewer/index.Bk2uYQRV.js +0 -2
- data/node/node_modules/playwright-core/lib/vite/traceViewer/index.html +0 -43
- data/node/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +0 -16
- data/node/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +0 -9
- data/node/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +0 -21
- data/node/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +0 -5
- data/node/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +0 -1
- data/node/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CQJ9SCIQ.js +0 -5
- data/node/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +0 -17
- data/node/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +0 -32
- data/node/node_modules/playwright-core/lib/zipBundle.js +0 -34
- data/node/node_modules/playwright-core/lib/zipBundleImpl.js +0 -5
- data/node/node_modules/playwright-core/package.json +0 -43
- data/node/node_modules/playwright-core/types/protocol.d.ts +0 -23824
- data/node/node_modules/playwright-core/types/structs.d.ts +0 -45
- data/node/node_modules/playwright-core/types/types.d.ts +0 -22843
- data/node/package-lock.json +0 -72
- data/node/package.json +0 -14
- data/node/src/index.js +0 -215
- data/spec/rubycrawl_spec.rb +0 -51
- data/spec/spec_helper.rb +0 -11
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var transform_exports = {};
|
|
30
|
-
__export(transform_exports, {
|
|
31
|
-
requireOrImport: () => requireOrImport,
|
|
32
|
-
resolveHook: () => resolveHook,
|
|
33
|
-
setSingleTSConfig: () => setSingleTSConfig,
|
|
34
|
-
setTransformConfig: () => setTransformConfig,
|
|
35
|
-
setTransformData: () => setTransformData,
|
|
36
|
-
shouldTransform: () => shouldTransform,
|
|
37
|
-
singleTSConfig: () => singleTSConfig,
|
|
38
|
-
transformConfig: () => transformConfig,
|
|
39
|
-
transformHook: () => transformHook,
|
|
40
|
-
wrapFunctionWithLocation: () => wrapFunctionWithLocation
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(transform_exports);
|
|
43
|
-
var import_fs = __toESM(require("fs"));
|
|
44
|
-
var import_module = __toESM(require("module"));
|
|
45
|
-
var import_path = __toESM(require("path"));
|
|
46
|
-
var import_url = __toESM(require("url"));
|
|
47
|
-
var import_crypto = __toESM(require("crypto"));
|
|
48
|
-
var import_tsconfig_loader = require("../third_party/tsconfig-loader");
|
|
49
|
-
var import_util = require("../util");
|
|
50
|
-
var import_utilsBundle = require("../utilsBundle");
|
|
51
|
-
var import_compilationCache = require("./compilationCache");
|
|
52
|
-
var import_pirates = require("../third_party/pirates");
|
|
53
|
-
var import_md = require("./md");
|
|
54
|
-
const version = require("../../package.json").version;
|
|
55
|
-
const cachedTSConfigs = /* @__PURE__ */ new Map();
|
|
56
|
-
let _transformConfig = {
|
|
57
|
-
babelPlugins: [],
|
|
58
|
-
external: []
|
|
59
|
-
};
|
|
60
|
-
let _externalMatcher = () => false;
|
|
61
|
-
function setTransformConfig(config) {
|
|
62
|
-
_transformConfig = config;
|
|
63
|
-
_externalMatcher = (0, import_util.createFileMatcher)(_transformConfig.external);
|
|
64
|
-
}
|
|
65
|
-
function transformConfig() {
|
|
66
|
-
return _transformConfig;
|
|
67
|
-
}
|
|
68
|
-
let _singleTSConfigPath;
|
|
69
|
-
let _singleTSConfig;
|
|
70
|
-
function setSingleTSConfig(value) {
|
|
71
|
-
_singleTSConfigPath = value;
|
|
72
|
-
}
|
|
73
|
-
function singleTSConfig() {
|
|
74
|
-
return _singleTSConfigPath;
|
|
75
|
-
}
|
|
76
|
-
function validateTsConfig(tsconfig) {
|
|
77
|
-
const pathsBase = tsconfig.absoluteBaseUrl ?? tsconfig.paths?.pathsBasePath;
|
|
78
|
-
const pathsFallback = tsconfig.absoluteBaseUrl ? [{ key: "*", values: ["*"] }] : [];
|
|
79
|
-
return {
|
|
80
|
-
allowJs: !!tsconfig.allowJs,
|
|
81
|
-
pathsBase,
|
|
82
|
-
paths: Object.entries(tsconfig.paths?.mapping || {}).map(([key, values]) => ({ key, values })).concat(pathsFallback)
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function loadAndValidateTsconfigsForFile(file2) {
|
|
86
|
-
if (_singleTSConfigPath && !_singleTSConfig)
|
|
87
|
-
_singleTSConfig = (0, import_tsconfig_loader.loadTsConfig)(_singleTSConfigPath).map(validateTsConfig);
|
|
88
|
-
if (_singleTSConfig)
|
|
89
|
-
return _singleTSConfig;
|
|
90
|
-
return loadAndValidateTsconfigsForFolder(import_path.default.dirname(file2));
|
|
91
|
-
}
|
|
92
|
-
function loadAndValidateTsconfigsForFolder(folder) {
|
|
93
|
-
const foldersWithConfig = [];
|
|
94
|
-
let currentFolder = import_path.default.resolve(folder);
|
|
95
|
-
let result2;
|
|
96
|
-
while (true) {
|
|
97
|
-
const cached = cachedTSConfigs.get(currentFolder);
|
|
98
|
-
if (cached) {
|
|
99
|
-
result2 = cached;
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
foldersWithConfig.push(currentFolder);
|
|
103
|
-
for (const name of ["tsconfig.json", "jsconfig.json"]) {
|
|
104
|
-
const configPath = import_path.default.join(currentFolder, name);
|
|
105
|
-
if (import_fs.default.existsSync(configPath)) {
|
|
106
|
-
const loaded = (0, import_tsconfig_loader.loadTsConfig)(configPath);
|
|
107
|
-
result2 = loaded.map(validateTsConfig);
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if (result2)
|
|
112
|
-
break;
|
|
113
|
-
const parentFolder = import_path.default.resolve(currentFolder, "../");
|
|
114
|
-
if (currentFolder === parentFolder)
|
|
115
|
-
break;
|
|
116
|
-
currentFolder = parentFolder;
|
|
117
|
-
}
|
|
118
|
-
result2 = result2 || [];
|
|
119
|
-
for (const folder2 of foldersWithConfig)
|
|
120
|
-
cachedTSConfigs.set(folder2, result2);
|
|
121
|
-
return result2;
|
|
122
|
-
}
|
|
123
|
-
const pathSeparator = process.platform === "win32" ? ";" : ":";
|
|
124
|
-
const builtins = new Set(import_module.default.builtinModules);
|
|
125
|
-
function resolveHook(filename, specifier) {
|
|
126
|
-
if (specifier.startsWith("node:") || builtins.has(specifier))
|
|
127
|
-
return;
|
|
128
|
-
if (!shouldTransform(filename))
|
|
129
|
-
return;
|
|
130
|
-
if (isRelativeSpecifier(specifier))
|
|
131
|
-
return (0, import_util.resolveImportSpecifierAfterMapping)(import_path.default.resolve(import_path.default.dirname(filename), specifier), false);
|
|
132
|
-
const isTypeScript = filename.endsWith(".ts") || filename.endsWith(".tsx");
|
|
133
|
-
const tsconfigs = loadAndValidateTsconfigsForFile(filename);
|
|
134
|
-
for (const tsconfig of tsconfigs) {
|
|
135
|
-
if (!isTypeScript && !tsconfig.allowJs)
|
|
136
|
-
continue;
|
|
137
|
-
let longestPrefixLength = -1;
|
|
138
|
-
let pathMatchedByLongestPrefix;
|
|
139
|
-
for (const { key, values } of tsconfig.paths) {
|
|
140
|
-
let matchedPartOfSpecifier = specifier;
|
|
141
|
-
const [keyPrefix, keySuffix] = key.split("*");
|
|
142
|
-
if (key.includes("*")) {
|
|
143
|
-
if (keyPrefix) {
|
|
144
|
-
if (!specifier.startsWith(keyPrefix))
|
|
145
|
-
continue;
|
|
146
|
-
matchedPartOfSpecifier = matchedPartOfSpecifier.substring(keyPrefix.length, matchedPartOfSpecifier.length);
|
|
147
|
-
}
|
|
148
|
-
if (keySuffix) {
|
|
149
|
-
if (!specifier.endsWith(keySuffix))
|
|
150
|
-
continue;
|
|
151
|
-
matchedPartOfSpecifier = matchedPartOfSpecifier.substring(0, matchedPartOfSpecifier.length - keySuffix.length);
|
|
152
|
-
}
|
|
153
|
-
} else {
|
|
154
|
-
if (specifier !== key)
|
|
155
|
-
continue;
|
|
156
|
-
matchedPartOfSpecifier = specifier;
|
|
157
|
-
}
|
|
158
|
-
if (keyPrefix.length <= longestPrefixLength)
|
|
159
|
-
continue;
|
|
160
|
-
for (const value of values) {
|
|
161
|
-
let candidate = value;
|
|
162
|
-
if (value.includes("*"))
|
|
163
|
-
candidate = candidate.replace("*", matchedPartOfSpecifier);
|
|
164
|
-
candidate = import_path.default.resolve(tsconfig.pathsBase, candidate);
|
|
165
|
-
const existing = (0, import_util.resolveImportSpecifierAfterMapping)(candidate, true);
|
|
166
|
-
if (existing) {
|
|
167
|
-
longestPrefixLength = keyPrefix.length;
|
|
168
|
-
pathMatchedByLongestPrefix = existing;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
if (pathMatchedByLongestPrefix)
|
|
173
|
-
return pathMatchedByLongestPrefix;
|
|
174
|
-
}
|
|
175
|
-
if (import_path.default.isAbsolute(specifier)) {
|
|
176
|
-
return (0, import_util.resolveImportSpecifierAfterMapping)(specifier, false);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
function shouldTransform(filename) {
|
|
180
|
-
if (_externalMatcher(filename))
|
|
181
|
-
return false;
|
|
182
|
-
return !(0, import_compilationCache.belongsToNodeModules)(filename);
|
|
183
|
-
}
|
|
184
|
-
let transformData;
|
|
185
|
-
function setTransformData(pluginName, value) {
|
|
186
|
-
transformData.set(pluginName, value);
|
|
187
|
-
}
|
|
188
|
-
function transformHook(originalCode, filename, moduleUrl) {
|
|
189
|
-
let inputSourceMap;
|
|
190
|
-
if (filename.endsWith(".md") && false) {
|
|
191
|
-
const transformed = transformMDToTS(originalCode, filename);
|
|
192
|
-
originalCode = transformed.code;
|
|
193
|
-
inputSourceMap = transformed.map;
|
|
194
|
-
}
|
|
195
|
-
const hasPreprocessor = process.env.PW_TEST_SOURCE_TRANSFORM && process.env.PW_TEST_SOURCE_TRANSFORM_SCOPE && process.env.PW_TEST_SOURCE_TRANSFORM_SCOPE.split(pathSeparator).some((f) => filename.startsWith(f));
|
|
196
|
-
const pluginsPrologue = _transformConfig.babelPlugins;
|
|
197
|
-
const pluginsEpilogue = hasPreprocessor ? [[process.env.PW_TEST_SOURCE_TRANSFORM]] : [];
|
|
198
|
-
const hash = calculateHash(originalCode, filename, !!moduleUrl, pluginsPrologue, pluginsEpilogue);
|
|
199
|
-
const { cachedCode, addToCache, serializedCache } = (0, import_compilationCache.getFromCompilationCache)(filename, hash, moduleUrl);
|
|
200
|
-
if (cachedCode !== void 0)
|
|
201
|
-
return { code: cachedCode, serializedCache };
|
|
202
|
-
process.env.BROWSERSLIST_IGNORE_OLD_DATA = "true";
|
|
203
|
-
const { babelTransform } = require("./babelBundle");
|
|
204
|
-
transformData = /* @__PURE__ */ new Map();
|
|
205
|
-
const babelResult = babelTransform(originalCode, filename, !!moduleUrl, pluginsPrologue, pluginsEpilogue, inputSourceMap);
|
|
206
|
-
if (!babelResult?.code)
|
|
207
|
-
return { code: originalCode, serializedCache };
|
|
208
|
-
const { code, map } = babelResult;
|
|
209
|
-
const added = addToCache(code, map, transformData);
|
|
210
|
-
return { code, serializedCache: added.serializedCache };
|
|
211
|
-
}
|
|
212
|
-
function calculateHash(content, filePath, isModule2, pluginsPrologue, pluginsEpilogue) {
|
|
213
|
-
const hash = import_crypto.default.createHash("sha1").update(isModule2 ? "esm" : "no_esm").update(content).update(filePath).update(version).update(pluginsPrologue.map((p) => p[0]).join(",")).update(pluginsEpilogue.map((p) => p[0]).join(",")).digest("hex");
|
|
214
|
-
return hash;
|
|
215
|
-
}
|
|
216
|
-
async function requireOrImport(file) {
|
|
217
|
-
installTransformIfNeeded();
|
|
218
|
-
const isModule = (0, import_util.fileIsModule)(file);
|
|
219
|
-
if (isModule) {
|
|
220
|
-
const fileName = import_url.default.pathToFileURL(file);
|
|
221
|
-
const esmImport = () => eval(`import(${JSON.stringify(fileName)})`);
|
|
222
|
-
await eval(`import(${JSON.stringify(fileName + ".esm.preflight")})`).finally(nextTask);
|
|
223
|
-
return await esmImport().finally(nextTask);
|
|
224
|
-
}
|
|
225
|
-
const result = require(file);
|
|
226
|
-
const depsCollector = (0, import_compilationCache.currentFileDepsCollector)();
|
|
227
|
-
if (depsCollector) {
|
|
228
|
-
const module2 = require.cache[file];
|
|
229
|
-
if (module2)
|
|
230
|
-
collectCJSDependencies(module2, depsCollector);
|
|
231
|
-
}
|
|
232
|
-
return result;
|
|
233
|
-
}
|
|
234
|
-
let transformInstalled = false;
|
|
235
|
-
function installTransformIfNeeded() {
|
|
236
|
-
if (transformInstalled)
|
|
237
|
-
return;
|
|
238
|
-
transformInstalled = true;
|
|
239
|
-
(0, import_compilationCache.installSourceMapSupport)();
|
|
240
|
-
const originalResolveFilename = import_module.default._resolveFilename;
|
|
241
|
-
function resolveFilename(specifier, parent, ...rest) {
|
|
242
|
-
if (parent) {
|
|
243
|
-
const resolved = resolveHook(parent.filename, specifier);
|
|
244
|
-
if (resolved !== void 0)
|
|
245
|
-
specifier = resolved;
|
|
246
|
-
}
|
|
247
|
-
return originalResolveFilename.call(this, specifier, parent, ...rest);
|
|
248
|
-
}
|
|
249
|
-
import_module.default._resolveFilename = resolveFilename;
|
|
250
|
-
(0, import_pirates.addHook)((code, filename) => {
|
|
251
|
-
return transformHook(code, filename).code;
|
|
252
|
-
}, shouldTransform, [".ts", ".tsx", ".js", ".jsx", ".mjs", ".mts", ".cjs", ".cts", ".md"]);
|
|
253
|
-
}
|
|
254
|
-
const collectCJSDependencies = (module2, dependencies) => {
|
|
255
|
-
module2.children.forEach((child) => {
|
|
256
|
-
if (!(0, import_compilationCache.belongsToNodeModules)(child.filename) && !dependencies.has(child.filename)) {
|
|
257
|
-
dependencies.add(child.filename);
|
|
258
|
-
collectCJSDependencies(child, dependencies);
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
};
|
|
262
|
-
function wrapFunctionWithLocation(func) {
|
|
263
|
-
return (...args) => {
|
|
264
|
-
const oldPrepareStackTrace = Error.prepareStackTrace;
|
|
265
|
-
Error.prepareStackTrace = (error, stackFrames) => {
|
|
266
|
-
const frame = import_utilsBundle.sourceMapSupport.wrapCallSite(stackFrames[1]);
|
|
267
|
-
const fileName2 = frame.getFileName();
|
|
268
|
-
const file2 = fileName2 && fileName2.startsWith("file://") ? import_url.default.fileURLToPath(fileName2) : fileName2;
|
|
269
|
-
return {
|
|
270
|
-
file: file2,
|
|
271
|
-
line: frame.getLineNumber(),
|
|
272
|
-
column: frame.getColumnNumber()
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
const oldStackTraceLimit = Error.stackTraceLimit;
|
|
276
|
-
Error.stackTraceLimit = 2;
|
|
277
|
-
const obj = {};
|
|
278
|
-
Error.captureStackTrace(obj);
|
|
279
|
-
const location = obj.stack;
|
|
280
|
-
Error.stackTraceLimit = oldStackTraceLimit;
|
|
281
|
-
Error.prepareStackTrace = oldPrepareStackTrace;
|
|
282
|
-
return func(location, ...args);
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
function isRelativeSpecifier(specifier) {
|
|
286
|
-
return specifier === "." || specifier === ".." || specifier.startsWith("./") || specifier.startsWith("../");
|
|
287
|
-
}
|
|
288
|
-
async function nextTask() {
|
|
289
|
-
return new Promise((resolve) => setTimeout(resolve, 0));
|
|
290
|
-
}
|
|
291
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
292
|
-
0 && (module.exports = {
|
|
293
|
-
requireOrImport,
|
|
294
|
-
resolveHook,
|
|
295
|
-
setSingleTSConfig,
|
|
296
|
-
setTransformConfig,
|
|
297
|
-
setTransformData,
|
|
298
|
-
shouldTransform,
|
|
299
|
-
singleTSConfig,
|
|
300
|
-
transformConfig,
|
|
301
|
-
transformHook,
|
|
302
|
-
wrapFunctionWithLocation
|
|
303
|
-
});
|
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var util_exports = {};
|
|
30
|
-
__export(util_exports, {
|
|
31
|
-
addSuffixToFilePath: () => addSuffixToFilePath,
|
|
32
|
-
ansiRegex: () => import_utils2.ansiRegex,
|
|
33
|
-
createFileFiltersFromArguments: () => createFileFiltersFromArguments,
|
|
34
|
-
createFileMatcher: () => createFileMatcher,
|
|
35
|
-
createFileMatcherFromArguments: () => createFileMatcherFromArguments,
|
|
36
|
-
createTitleMatcher: () => createTitleMatcher,
|
|
37
|
-
debugTest: () => debugTest,
|
|
38
|
-
errorWithFile: () => errorWithFile,
|
|
39
|
-
expectTypes: () => expectTypes,
|
|
40
|
-
fileExistsAsync: () => fileExistsAsync,
|
|
41
|
-
fileIsModule: () => fileIsModule,
|
|
42
|
-
filterStackFile: () => filterStackFile,
|
|
43
|
-
filterStackTrace: () => filterStackTrace,
|
|
44
|
-
filteredStackTrace: () => filteredStackTrace,
|
|
45
|
-
forceRegExp: () => forceRegExp,
|
|
46
|
-
formatLocation: () => formatLocation,
|
|
47
|
-
getContainedPath: () => getContainedPath,
|
|
48
|
-
getPackageJsonPath: () => getPackageJsonPath,
|
|
49
|
-
mergeObjects: () => mergeObjects,
|
|
50
|
-
normalizeAndSaveAttachment: () => normalizeAndSaveAttachment,
|
|
51
|
-
parseLocationArg: () => parseLocationArg,
|
|
52
|
-
relativeFilePath: () => relativeFilePath,
|
|
53
|
-
removeDirAndLogToConsole: () => removeDirAndLogToConsole,
|
|
54
|
-
resolveImportSpecifierAfterMapping: () => resolveImportSpecifierAfterMapping,
|
|
55
|
-
resolveReporterOutputPath: () => resolveReporterOutputPath,
|
|
56
|
-
sanitizeFilePathBeforeExtension: () => sanitizeFilePathBeforeExtension,
|
|
57
|
-
serializeError: () => serializeError,
|
|
58
|
-
stripAnsiEscapes: () => import_utils2.stripAnsiEscapes,
|
|
59
|
-
trimLongString: () => trimLongString,
|
|
60
|
-
windowsFilesystemFriendlyLength: () => windowsFilesystemFriendlyLength
|
|
61
|
-
});
|
|
62
|
-
module.exports = __toCommonJS(util_exports);
|
|
63
|
-
var import_fs = __toESM(require("fs"));
|
|
64
|
-
var import_path = __toESM(require("path"));
|
|
65
|
-
var import_url = __toESM(require("url"));
|
|
66
|
-
var import_util = __toESM(require("util"));
|
|
67
|
-
var import_utils = require("playwright-core/lib/utils");
|
|
68
|
-
var import_utilsBundle = require("playwright-core/lib/utilsBundle");
|
|
69
|
-
var import_utils2 = require("playwright-core/lib/utils");
|
|
70
|
-
const PLAYWRIGHT_TEST_PATH = import_path.default.join(__dirname, "..");
|
|
71
|
-
const PLAYWRIGHT_CORE_PATH = import_path.default.dirname(require.resolve("playwright-core/package.json"));
|
|
72
|
-
function filterStackTrace(e) {
|
|
73
|
-
const name = e.name ? e.name + ": " : "";
|
|
74
|
-
const cause = e.cause instanceof Error ? filterStackTrace(e.cause) : void 0;
|
|
75
|
-
if (process.env.PWDEBUGIMPL)
|
|
76
|
-
return { message: name + e.message, stack: e.stack || "", cause };
|
|
77
|
-
const stackLines = (0, import_utils.stringifyStackFrames)(filteredStackTrace(e.stack?.split("\n") || []));
|
|
78
|
-
return {
|
|
79
|
-
message: name + e.message,
|
|
80
|
-
stack: `${name}${e.message}${stackLines.map((line) => "\n" + line).join("")}`,
|
|
81
|
-
cause
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function filterStackFile(file) {
|
|
85
|
-
if (!process.env.PWDEBUGIMPL && file.startsWith(PLAYWRIGHT_TEST_PATH))
|
|
86
|
-
return false;
|
|
87
|
-
if (!process.env.PWDEBUGIMPL && file.startsWith(PLAYWRIGHT_CORE_PATH))
|
|
88
|
-
return false;
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
function filteredStackTrace(rawStack) {
|
|
92
|
-
const frames = [];
|
|
93
|
-
for (const line of rawStack) {
|
|
94
|
-
const frame = (0, import_utils.parseStackFrame)(line, import_path.default.sep, !!process.env.PWDEBUGIMPL);
|
|
95
|
-
if (!frame || !frame.file)
|
|
96
|
-
continue;
|
|
97
|
-
if (!filterStackFile(frame.file))
|
|
98
|
-
continue;
|
|
99
|
-
frames.push(frame);
|
|
100
|
-
}
|
|
101
|
-
return frames;
|
|
102
|
-
}
|
|
103
|
-
function serializeError(error) {
|
|
104
|
-
if (error instanceof Error)
|
|
105
|
-
return filterStackTrace(error);
|
|
106
|
-
return {
|
|
107
|
-
value: import_util.default.inspect(error)
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function parseLocationArg(arg) {
|
|
111
|
-
const match = /^(.*?):(\d+):?(\d+)?$/.exec(arg);
|
|
112
|
-
return {
|
|
113
|
-
file: match ? match[1] : arg,
|
|
114
|
-
line: match ? parseInt(match[2], 10) : null,
|
|
115
|
-
column: match?.[3] ? parseInt(match[3], 10) : null
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
function createFileFiltersFromArguments(args) {
|
|
119
|
-
return args.map((arg) => {
|
|
120
|
-
const parsed = parseLocationArg(arg);
|
|
121
|
-
return { re: forceRegExp(parsed.file), line: parsed.line, column: parsed.column };
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function createFileMatcherFromArguments(args) {
|
|
125
|
-
const filters = createFileFiltersFromArguments(args);
|
|
126
|
-
return createFileMatcher(filters.map((filter) => filter.re || filter.exact || ""));
|
|
127
|
-
}
|
|
128
|
-
function createFileMatcher(patterns) {
|
|
129
|
-
const reList = [];
|
|
130
|
-
const filePatterns = [];
|
|
131
|
-
for (const pattern of Array.isArray(patterns) ? patterns : [patterns]) {
|
|
132
|
-
if ((0, import_utils.isRegExp)(pattern)) {
|
|
133
|
-
reList.push(pattern);
|
|
134
|
-
} else {
|
|
135
|
-
if (!pattern.startsWith("**/"))
|
|
136
|
-
filePatterns.push("**/" + pattern);
|
|
137
|
-
else
|
|
138
|
-
filePatterns.push(pattern);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return (filePath) => {
|
|
142
|
-
for (const re of reList) {
|
|
143
|
-
re.lastIndex = 0;
|
|
144
|
-
if (re.test(filePath))
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
if (import_path.default.sep === "\\") {
|
|
148
|
-
const fileURL = import_url.default.pathToFileURL(filePath).href;
|
|
149
|
-
for (const re of reList) {
|
|
150
|
-
re.lastIndex = 0;
|
|
151
|
-
if (re.test(fileURL))
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
for (const pattern of filePatterns) {
|
|
156
|
-
if ((0, import_utilsBundle.minimatch)(filePath, pattern, { nocase: true, dot: true }))
|
|
157
|
-
return true;
|
|
158
|
-
}
|
|
159
|
-
return false;
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
function createTitleMatcher(patterns) {
|
|
163
|
-
const reList = Array.isArray(patterns) ? patterns : [patterns];
|
|
164
|
-
return (value) => {
|
|
165
|
-
for (const re of reList) {
|
|
166
|
-
re.lastIndex = 0;
|
|
167
|
-
if (re.test(value))
|
|
168
|
-
return true;
|
|
169
|
-
}
|
|
170
|
-
return false;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function mergeObjects(a, b, c) {
|
|
174
|
-
const result = { ...a };
|
|
175
|
-
for (const x of [b, c].filter(Boolean)) {
|
|
176
|
-
for (const [name, value] of Object.entries(x)) {
|
|
177
|
-
if (!Object.is(value, void 0))
|
|
178
|
-
result[name] = value;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return result;
|
|
182
|
-
}
|
|
183
|
-
function forceRegExp(pattern) {
|
|
184
|
-
const match = pattern.match(/^\/(.*)\/([gi]*)$/);
|
|
185
|
-
if (match)
|
|
186
|
-
return new RegExp(match[1], match[2]);
|
|
187
|
-
return new RegExp(pattern, "gi");
|
|
188
|
-
}
|
|
189
|
-
function relativeFilePath(file) {
|
|
190
|
-
if (!import_path.default.isAbsolute(file))
|
|
191
|
-
return file;
|
|
192
|
-
return import_path.default.relative(process.cwd(), file);
|
|
193
|
-
}
|
|
194
|
-
function formatLocation(location) {
|
|
195
|
-
return relativeFilePath(location.file) + ":" + location.line + ":" + location.column;
|
|
196
|
-
}
|
|
197
|
-
function errorWithFile(file, message) {
|
|
198
|
-
return new Error(`${relativeFilePath(file)}: ${message}`);
|
|
199
|
-
}
|
|
200
|
-
function expectTypes(receiver, types, matcherName) {
|
|
201
|
-
if (typeof receiver !== "object" || !types.includes(receiver.constructor.name)) {
|
|
202
|
-
const commaSeparated = types.slice();
|
|
203
|
-
const lastType = commaSeparated.pop();
|
|
204
|
-
const typesString = commaSeparated.length ? commaSeparated.join(", ") + " or " + lastType : lastType;
|
|
205
|
-
throw new Error(`${matcherName} can be only used with ${typesString} object${types.length > 1 ? "s" : ""}`);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
const windowsFilesystemFriendlyLength = 60;
|
|
209
|
-
function trimLongString(s, length = 100) {
|
|
210
|
-
if (s.length <= length)
|
|
211
|
-
return s;
|
|
212
|
-
const hash = (0, import_utils.calculateSha1)(s);
|
|
213
|
-
const middle = `-${hash.substring(0, 5)}-`;
|
|
214
|
-
const start = Math.floor((length - middle.length) / 2);
|
|
215
|
-
const end = length - middle.length - start;
|
|
216
|
-
return s.substring(0, start) + middle + s.slice(-end);
|
|
217
|
-
}
|
|
218
|
-
function addSuffixToFilePath(filePath, suffix) {
|
|
219
|
-
const ext = import_path.default.extname(filePath);
|
|
220
|
-
const base = filePath.substring(0, filePath.length - ext.length);
|
|
221
|
-
return base + suffix + ext;
|
|
222
|
-
}
|
|
223
|
-
function sanitizeFilePathBeforeExtension(filePath, ext) {
|
|
224
|
-
ext ??= import_path.default.extname(filePath);
|
|
225
|
-
const base = filePath.substring(0, filePath.length - ext.length);
|
|
226
|
-
return (0, import_utils.sanitizeForFilePath)(base) + ext;
|
|
227
|
-
}
|
|
228
|
-
function getContainedPath(parentPath, subPath = "") {
|
|
229
|
-
const resolvedPath = import_path.default.resolve(parentPath, subPath);
|
|
230
|
-
if (resolvedPath === parentPath || resolvedPath.startsWith(parentPath + import_path.default.sep))
|
|
231
|
-
return resolvedPath;
|
|
232
|
-
return null;
|
|
233
|
-
}
|
|
234
|
-
const debugTest = (0, import_utilsBundle.debug)("pw:test");
|
|
235
|
-
const folderToPackageJsonPath = /* @__PURE__ */ new Map();
|
|
236
|
-
function getPackageJsonPath(folderPath) {
|
|
237
|
-
const cached = folderToPackageJsonPath.get(folderPath);
|
|
238
|
-
if (cached !== void 0)
|
|
239
|
-
return cached;
|
|
240
|
-
const packageJsonPath = import_path.default.join(folderPath, "package.json");
|
|
241
|
-
if (import_fs.default.existsSync(packageJsonPath)) {
|
|
242
|
-
folderToPackageJsonPath.set(folderPath, packageJsonPath);
|
|
243
|
-
return packageJsonPath;
|
|
244
|
-
}
|
|
245
|
-
const parentFolder = import_path.default.dirname(folderPath);
|
|
246
|
-
if (folderPath === parentFolder) {
|
|
247
|
-
folderToPackageJsonPath.set(folderPath, "");
|
|
248
|
-
return "";
|
|
249
|
-
}
|
|
250
|
-
const result = getPackageJsonPath(parentFolder);
|
|
251
|
-
folderToPackageJsonPath.set(folderPath, result);
|
|
252
|
-
return result;
|
|
253
|
-
}
|
|
254
|
-
function resolveReporterOutputPath(defaultValue, configDir, configValue) {
|
|
255
|
-
if (configValue)
|
|
256
|
-
return import_path.default.resolve(configDir, configValue);
|
|
257
|
-
let basePath = getPackageJsonPath(configDir);
|
|
258
|
-
basePath = basePath ? import_path.default.dirname(basePath) : process.cwd();
|
|
259
|
-
return import_path.default.resolve(basePath, defaultValue);
|
|
260
|
-
}
|
|
261
|
-
async function normalizeAndSaveAttachment(outputPath, name, options = {}) {
|
|
262
|
-
if (options.path === void 0 && options.body === void 0)
|
|
263
|
-
return { name, contentType: "text/plain" };
|
|
264
|
-
if ((options.path !== void 0 ? 1 : 0) + (options.body !== void 0 ? 1 : 0) !== 1)
|
|
265
|
-
throw new Error(`Exactly one of "path" and "body" must be specified`);
|
|
266
|
-
if (options.path !== void 0) {
|
|
267
|
-
const hash = (0, import_utils.calculateSha1)(options.path);
|
|
268
|
-
if (!(0, import_utils.isString)(name))
|
|
269
|
-
throw new Error('"name" should be string.');
|
|
270
|
-
const sanitizedNamePrefix = (0, import_utils.sanitizeForFilePath)(name) + "-";
|
|
271
|
-
const dest = import_path.default.join(outputPath, "attachments", sanitizedNamePrefix + hash + import_path.default.extname(options.path));
|
|
272
|
-
await import_fs.default.promises.mkdir(import_path.default.dirname(dest), { recursive: true });
|
|
273
|
-
await import_fs.default.promises.copyFile(options.path, dest);
|
|
274
|
-
const contentType = options.contentType ?? (import_utilsBundle.mime.getType(import_path.default.basename(options.path)) || "application/octet-stream");
|
|
275
|
-
return { name, contentType, path: dest };
|
|
276
|
-
} else {
|
|
277
|
-
const contentType = options.contentType ?? (typeof options.body === "string" ? "text/plain" : "application/octet-stream");
|
|
278
|
-
return { name, contentType, body: typeof options.body === "string" ? Buffer.from(options.body) : options.body };
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
function fileIsModule(file) {
|
|
282
|
-
if (file.endsWith(".mjs") || file.endsWith(".mts"))
|
|
283
|
-
return true;
|
|
284
|
-
if (file.endsWith(".cjs") || file.endsWith(".cts"))
|
|
285
|
-
return false;
|
|
286
|
-
const folder = import_path.default.dirname(file);
|
|
287
|
-
return folderIsModule(folder);
|
|
288
|
-
}
|
|
289
|
-
function folderIsModule(folder) {
|
|
290
|
-
const packageJsonPath = getPackageJsonPath(folder);
|
|
291
|
-
if (!packageJsonPath)
|
|
292
|
-
return false;
|
|
293
|
-
return require(packageJsonPath).type === "module";
|
|
294
|
-
}
|
|
295
|
-
const packageJsonMainFieldCache = /* @__PURE__ */ new Map();
|
|
296
|
-
function getMainFieldFromPackageJson(packageJsonPath) {
|
|
297
|
-
if (!packageJsonMainFieldCache.has(packageJsonPath)) {
|
|
298
|
-
let mainField;
|
|
299
|
-
try {
|
|
300
|
-
mainField = JSON.parse(import_fs.default.readFileSync(packageJsonPath, "utf8")).main;
|
|
301
|
-
} catch {
|
|
302
|
-
}
|
|
303
|
-
packageJsonMainFieldCache.set(packageJsonPath, mainField);
|
|
304
|
-
}
|
|
305
|
-
return packageJsonMainFieldCache.get(packageJsonPath);
|
|
306
|
-
}
|
|
307
|
-
const kExtLookups = /* @__PURE__ */ new Map([
|
|
308
|
-
[".js", [".jsx", ".ts", ".tsx"]],
|
|
309
|
-
[".jsx", [".tsx"]],
|
|
310
|
-
[".cjs", [".cts"]],
|
|
311
|
-
[".mjs", [".mts"]],
|
|
312
|
-
["", [".js", ".ts", ".jsx", ".tsx", ".cjs", ".mjs", ".cts", ".mts"]]
|
|
313
|
-
]);
|
|
314
|
-
function resolveImportSpecifierExtension(resolved) {
|
|
315
|
-
if (fileExists(resolved))
|
|
316
|
-
return resolved;
|
|
317
|
-
for (const [ext, others] of kExtLookups) {
|
|
318
|
-
if (!resolved.endsWith(ext))
|
|
319
|
-
continue;
|
|
320
|
-
for (const other of others) {
|
|
321
|
-
const modified = resolved.substring(0, resolved.length - ext.length) + other;
|
|
322
|
-
if (fileExists(modified))
|
|
323
|
-
return modified;
|
|
324
|
-
}
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
function resolveImportSpecifierAfterMapping(resolved, afterPathMapping) {
|
|
329
|
-
const resolvedFile = resolveImportSpecifierExtension(resolved);
|
|
330
|
-
if (resolvedFile)
|
|
331
|
-
return resolvedFile;
|
|
332
|
-
if (dirExists(resolved)) {
|
|
333
|
-
const packageJsonPath = import_path.default.join(resolved, "package.json");
|
|
334
|
-
if (afterPathMapping) {
|
|
335
|
-
const mainField = getMainFieldFromPackageJson(packageJsonPath);
|
|
336
|
-
const mainFieldResolved = mainField ? resolveImportSpecifierExtension(import_path.default.resolve(resolved, mainField)) : void 0;
|
|
337
|
-
return mainFieldResolved || resolveImportSpecifierExtension(import_path.default.join(resolved, "index"));
|
|
338
|
-
}
|
|
339
|
-
if (fileExists(packageJsonPath))
|
|
340
|
-
return resolved;
|
|
341
|
-
const dirImport = import_path.default.join(resolved, "index");
|
|
342
|
-
return resolveImportSpecifierExtension(dirImport);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
function fileExists(resolved) {
|
|
346
|
-
return import_fs.default.statSync(resolved, { throwIfNoEntry: false })?.isFile();
|
|
347
|
-
}
|
|
348
|
-
async function fileExistsAsync(resolved) {
|
|
349
|
-
try {
|
|
350
|
-
const stat = await import_fs.default.promises.stat(resolved);
|
|
351
|
-
return stat.isFile();
|
|
352
|
-
} catch {
|
|
353
|
-
return false;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
function dirExists(resolved) {
|
|
357
|
-
return import_fs.default.statSync(resolved, { throwIfNoEntry: false })?.isDirectory();
|
|
358
|
-
}
|
|
359
|
-
async function removeDirAndLogToConsole(dir) {
|
|
360
|
-
try {
|
|
361
|
-
if (!import_fs.default.existsSync(dir))
|
|
362
|
-
return;
|
|
363
|
-
console.log(`Removing ${await import_fs.default.promises.realpath(dir)}`);
|
|
364
|
-
await import_fs.default.promises.rm(dir, { recursive: true, force: true });
|
|
365
|
-
} catch {
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
369
|
-
0 && (module.exports = {
|
|
370
|
-
addSuffixToFilePath,
|
|
371
|
-
ansiRegex,
|
|
372
|
-
createFileFiltersFromArguments,
|
|
373
|
-
createFileMatcher,
|
|
374
|
-
createFileMatcherFromArguments,
|
|
375
|
-
createTitleMatcher,
|
|
376
|
-
debugTest,
|
|
377
|
-
errorWithFile,
|
|
378
|
-
expectTypes,
|
|
379
|
-
fileExistsAsync,
|
|
380
|
-
fileIsModule,
|
|
381
|
-
filterStackFile,
|
|
382
|
-
filterStackTrace,
|
|
383
|
-
filteredStackTrace,
|
|
384
|
-
forceRegExp,
|
|
385
|
-
formatLocation,
|
|
386
|
-
getContainedPath,
|
|
387
|
-
getPackageJsonPath,
|
|
388
|
-
mergeObjects,
|
|
389
|
-
normalizeAndSaveAttachment,
|
|
390
|
-
parseLocationArg,
|
|
391
|
-
relativeFilePath,
|
|
392
|
-
removeDirAndLogToConsole,
|
|
393
|
-
resolveImportSpecifierAfterMapping,
|
|
394
|
-
resolveReporterOutputPath,
|
|
395
|
-
sanitizeFilePathBeforeExtension,
|
|
396
|
-
serializeError,
|
|
397
|
-
stripAnsiEscapes,
|
|
398
|
-
trimLongString,
|
|
399
|
-
windowsFilesystemFriendlyLength
|
|
400
|
-
});
|