@cloud411716/fancy-webnovel 0.1.79 → 0.1.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/package.json +4 -1
  2. package/plugins/fancy-scan/scripts/scrapers/node_modules/.package-lock.json +0 -20
  3. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/LICENSE +0 -202
  4. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/NOTICE +0 -5
  5. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/README.md +0 -3
  6. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/ThirdPartyNotices.txt +0 -13
  7. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/install_media_pack.ps1 +0 -5
  8. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +0 -33
  9. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -42
  10. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -13
  11. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +0 -24
  12. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -42
  13. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -12
  14. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +0 -24
  15. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -48
  16. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -11
  17. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +0 -23
  18. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -48
  19. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -11
  20. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +0 -23
  21. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -48
  22. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -11
  23. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +0 -24
  24. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/browsers.json +0 -75
  25. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/cli.js +0 -21
  26. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/index.d.ts +0 -17
  27. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/index.js +0 -17
  28. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/index.mjs +0 -28
  29. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/bootstrap.js +0 -88
  30. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/coreBundle.js +0 -74830
  31. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/entry/cliDaemon.js +0 -5
  32. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/entry/dashboardApp.js +0 -3
  33. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/entry/mcp.js +0 -10
  34. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/entry/oopBrowserDownload.js +0 -3
  35. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/package.js +0 -50
  36. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
  37. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/server/electron/loader.js +0 -118
  38. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/serverRegistry.js +0 -7347
  39. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/serverRegistry.js.LICENSE +0 -354
  40. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/cli-client/channelSessions.js +0 -141
  41. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/cli-client/cli.js +0 -6
  42. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/cli-client/help.json +0 -708
  43. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/cli-client/minimist.js +0 -128
  44. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/cli-client/output.js +0 -343
  45. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/cli-client/program.js +0 -404
  46. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/cli-client/registry.js +0 -176
  47. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/cli-client/session.js +0 -258
  48. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/dashboard/appIcon.png +0 -0
  49. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/SKILL.md +0 -420
  50. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +0 -23
  51. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +0 -39
  52. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +0 -87
  53. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/running-code.md +0 -241
  54. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/session-management.md +0 -225
  55. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/storage-state.md +0 -275
  56. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/test-generation.md +0 -433
  57. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/tracing.md +0 -139
  58. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/video-recording.md +0 -143
  59. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/SKILL.md +0 -143
  60. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +0 -144
  61. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/migration.md +0 -85
  62. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/react.md +0 -67
  63. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/vue.md +0 -75
  64. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/skills/playwright-trace/SKILL.md +0 -171
  65. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/utils/extension.js +0 -101
  66. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/tools/utils/socketConnection.js +0 -108
  67. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/utilsBundle.js +0 -90764
  68. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +0 -2179
  69. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
  70. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +0 -1
  71. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +0 -1
  72. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +0 -1
  73. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/assets/index-CyWAfh-p.js +0 -11
  74. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/assets/index-DhC616m4.css +0 -1
  75. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +0 -1
  76. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/index.html +0 -29
  77. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/dashboard/playwright-logo.svg +0 -24
  78. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/htmlReport/index.html +0 -16
  79. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/htmlReport/report.css +0 -2
  80. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/htmlReport/report.js +0 -32
  81. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +0 -1
  82. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-CwYYHbcZ.js +0 -32
  83. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  84. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/recorder/assets/index-DYjdXIbE.js +0 -129
  85. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/recorder/assets/index-l_lX622x.css +0 -1
  86. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/recorder/index.html +0 -29
  87. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +0 -9
  88. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-rXmQmLUY.js +0 -32
  89. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-B-dXF5JN.js +0 -181
  90. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +0 -1
  91. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-BuZfJS5v.js +0 -7
  92. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +0 -1
  93. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  94. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.BLFoOugd.css +0 -1
  95. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +0 -1
  96. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/index.KZ4wOW1K.js +0 -1
  97. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/index.html +0 -44
  98. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +0 -16
  99. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +0 -9
  100. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +0 -1
  101. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +0 -10
  102. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +0 -4
  103. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/uiMode.C7UW1sC9.css +0 -1
  104. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Dzuouizj.js +0 -5
  105. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +0 -18
  106. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +0 -1
  107. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/webp_codec.LICENSE +0 -173
  108. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
  109. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/lib/xdg-open +0 -1267
  110. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/package.json +0 -34
  111. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/types/protocol.d.ts +0 -24842
  112. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/types/structs.d.ts +0 -52
  113. package/plugins/fancy-scan/scripts/scrapers/node_modules/playwright-core/types/types.d.ts +0 -26188
  114. package/plugins/fancy-scan/scripts/scrapers/package.json +0 -9
@@ -1,48 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -e
4
- set -x
5
-
6
- if [[ $(arch) == "aarch64" ]]; then
7
- echo "ERROR: not supported on Linux Arm64"
8
- exit 1
9
- fi
10
-
11
- if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
12
- if [[ ! -f "/etc/os-release" ]]; then
13
- echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
14
- exit 1
15
- fi
16
-
17
- ID=$(bash -c 'source /etc/os-release && echo $ID')
18
- if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
19
- echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
20
- exit 1
21
- fi
22
- fi
23
-
24
- # 1. make sure to remove old stable if any.
25
- if dpkg --get-selections | grep -q "^microsoft-edge-stable[[:space:]]*install$" >/dev/null; then
26
- apt-get remove -y microsoft-edge-stable
27
- fi
28
-
29
- # 2. Install curl to download Microsoft gpg key
30
- if ! command -v curl >/dev/null; then
31
- apt-get update
32
- apt-get install -y curl
33
- fi
34
-
35
- # GnuPG is not preinstalled in slim images
36
- if ! command -v gpg >/dev/null; then
37
- apt-get update
38
- apt-get install -y gpg
39
- fi
40
-
41
- # 3. Add the GPG key, the apt repo, update the apt cache, and install the package
42
- curl -L https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg
43
- install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/
44
- sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-stable.list'
45
- rm /tmp/microsoft.gpg
46
- apt-get update && apt-get install -y microsoft-edge-stable
47
-
48
- microsoft-edge-stable --version
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
- set -x
4
-
5
- cd /tmp
6
- curl -L --retry 3 -o ./msedge_stable.pkg "$1"
7
- # Note: there's no way to uninstall previously installed MSEdge.
8
- # However, running PKG again seems to update installation.
9
- sudo installer -pkg /tmp/msedge_stable.pkg -target /
10
- rm -rf /tmp/msedge_stable.pkg
11
- /Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --version
@@ -1,24 +0,0 @@
1
- $ErrorActionPreference = 'Stop'
2
-
3
- $url = $args[0]
4
-
5
- Write-Host "Downloading Microsoft Edge"
6
- $wc = New-Object net.webclient
7
- $msiInstaller = "$env:temp\microsoft-edge-stable.msi"
8
- $wc.Downloadfile($url, $msiInstaller)
9
-
10
- Write-Host "Installing Microsoft Edge"
11
- $arguments = "/i `"$msiInstaller`" /quiet"
12
- Start-Process msiexec.exe -ArgumentList $arguments -Wait
13
- Remove-Item $msiInstaller
14
-
15
- $suffix = "\\Microsoft\\Edge\\Application\\msedge.exe"
16
- if (Test-Path "${env:ProgramFiles(x86)}$suffix") {
17
- (Get-Item "${env:ProgramFiles(x86)}$suffix").VersionInfo
18
- } elseif (Test-Path "${env:ProgramFiles}$suffix") {
19
- (Get-Item "${env:ProgramFiles}$suffix").VersionInfo
20
- } else {
21
- Write-Host "ERROR: Failed to install Microsoft Edge."
22
- Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."
23
- exit 1
24
- }
@@ -1,75 +0,0 @@
1
- {
2
- "comment": "Do not edit this file, use utils/roll_browser.js",
3
- "browsers": [
4
- {
5
- "name": "chromium",
6
- "revision": "1234",
7
- "installByDefault": true,
8
- "browserVersion": "151.0.7922.34",
9
- "title": "Chrome for Testing"
10
- },
11
- {
12
- "name": "chromium-headless-shell",
13
- "revision": "1234",
14
- "installByDefault": true,
15
- "browserVersion": "151.0.7922.34",
16
- "title": "Chrome Headless Shell"
17
- },
18
- {
19
- "name": "chromium-tip-of-tree",
20
- "revision": "1433",
21
- "installByDefault": false,
22
- "browserVersion": "151.0.7893.0",
23
- "title": "Chrome Canary for Testing"
24
- },
25
- {
26
- "name": "chromium-tip-of-tree-headless-shell",
27
- "revision": "1433",
28
- "installByDefault": false,
29
- "browserVersion": "151.0.7893.0",
30
- "title": "Chrome Canary Headless Shell"
31
- },
32
- {
33
- "name": "firefox",
34
- "revision": "1538",
35
- "installByDefault": true,
36
- "browserVersion": "153.0",
37
- "title": "Firefox"
38
- },
39
- {
40
- "name": "firefox-beta",
41
- "revision": "1526",
42
- "installByDefault": false,
43
- "browserVersion": "152.0b1",
44
- "title": "Firefox Beta"
45
- },
46
- {
47
- "name": "webkit",
48
- "revision": "2336",
49
- "installByDefault": true,
50
- "revisionOverrides": {
51
- "mac14": "2251",
52
- "mac14-arm64": "2251",
53
- "ubuntu20.04-x64": "2092",
54
- "ubuntu20.04-arm64": "2092"
55
- },
56
- "browserVersion": "26.5",
57
- "title": "WebKit"
58
- },
59
- {
60
- "name": "ffmpeg",
61
- "revision": "1011",
62
- "installByDefault": true
63
- },
64
- {
65
- "name": "winldd",
66
- "revision": "1007",
67
- "installByDefault": false
68
- },
69
- {
70
- "name": "android",
71
- "revision": "1001",
72
- "installByDefault": false
73
- }
74
- ]
75
- }
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Copyright (c) Microsoft Corporation.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- const { libCli, libCliTestStub } = require('./lib/coreBundle');
18
- const { program } = require('./lib/utilsBundle');
19
- libCli.decorateProgram(program);
20
- libCliTestStub.decorateProgram(program);
21
- program.parse(process.argv);
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- export * from './types/types';
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- require('./lib/bootstrap');
17
- module.exports = require('./lib/coreBundle').inprocess.playwright;
@@ -1,28 +0,0 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import playwright from './index.js';
18
-
19
- export const chromium = playwright.chromium;
20
- export const firefox = playwright.firefox;
21
- export const webkit = playwright.webkit;
22
- export const selectors = playwright.selectors;
23
- export const devices = playwright.devices;
24
- export const errors = playwright.errors;
25
- export const request = playwright.request;
26
- export const _electron = playwright._electron;
27
- export const _android = playwright._android;
28
- export default playwright;
@@ -1,88 +0,0 @@
1
- "use strict";
2
- const minimumMajorNodeVersion = 20;
3
- const currentNodeVersion = process.versions.node;
4
- const major = +currentNodeVersion.split(".")[0];
5
- if (major < minimumMajorNodeVersion) {
6
- console.error(
7
- "You are running Node.js " + currentNodeVersion + `.
8
- Playwright requires Node.js ${minimumMajorNodeVersion} or higher.
9
- Please update your version of Node.js.`
10
- );
11
- process.exit(1);
12
- }
13
- if (process.env.PW_INSTRUMENT_MODULES) {
14
- const Module = require("module");
15
- const originalLoad = Module._load;
16
- const root = { name: "<root>", selfMs: 0, totalMs: 0, childrenMs: 0, children: [] };
17
- let current = root;
18
- const stack = [];
19
- Module._load = function(request, _parent, _isMain) {
20
- const node = { name: request, selfMs: 0, totalMs: 0, childrenMs: 0, children: [] };
21
- current.children.push(node);
22
- stack.push(current);
23
- current = node;
24
- const start = performance.now();
25
- let result;
26
- try {
27
- result = originalLoad.apply(this, arguments);
28
- } catch (e) {
29
- current = stack.pop();
30
- current.children.pop();
31
- throw e;
32
- }
33
- const duration = performance.now() - start;
34
- node.totalMs = duration;
35
- node.selfMs = Math.max(0, duration - node.childrenMs);
36
- current = stack.pop();
37
- current.childrenMs += duration;
38
- return result;
39
- };
40
- process.on("exit", () => {
41
- function printTree(node, prefix, isLast, lines2, depth) {
42
- if (node.totalMs < 1 && depth > 0)
43
- return;
44
- const connector = depth === 0 ? "" : isLast ? "\u2514\u2500\u2500 " : "\u251C\u2500\u2500 ";
45
- const time = `${node.totalMs.toFixed(1).padStart(8)}ms`;
46
- const self = node.children.length ? ` (self: ${node.selfMs.toFixed(1)}ms)` : "";
47
- lines2.push(`${time} ${prefix}${connector}${node.name}${self}`);
48
- const childPrefix = prefix + (depth === 0 ? "" : isLast ? " " : "\u2502 ");
49
- const sorted2 = node.children.slice().sort((a, b) => b.totalMs - a.totalMs);
50
- for (let i = 0; i < sorted2.length; i++)
51
- printTree(sorted2[i], childPrefix, i === sorted2.length - 1, lines2, depth + 1);
52
- }
53
- let totalModules = 0;
54
- function count(n) {
55
- totalModules++;
56
- n.children.forEach(count);
57
- }
58
- root.children.forEach(count);
59
- const lines = [];
60
- const sorted = root.children.slice().sort((a, b) => b.totalMs - a.totalMs);
61
- for (let i = 0; i < sorted.length; i++)
62
- printTree(sorted[i], "", i === sorted.length - 1, lines, 0);
63
- const totalMs = root.children.reduce((s, c) => s + c.totalMs, 0);
64
- process.stderr.write(`
65
- --- Module load tree: ${totalModules} modules, ${totalMs.toFixed(0)}ms total ---
66
- ` + lines.join("\n") + "\n");
67
- const flat = /* @__PURE__ */ new Map();
68
- function gather(n) {
69
- const existing = flat.get(n.name);
70
- if (existing) {
71
- existing.selfMs += n.selfMs;
72
- existing.totalMs += n.totalMs;
73
- existing.count++;
74
- } else {
75
- flat.set(n.name, { selfMs: n.selfMs, totalMs: n.totalMs, count: 1 });
76
- }
77
- n.children.forEach(gather);
78
- }
79
- root.children.forEach(gather);
80
- const top50 = [...flat.entries()].sort((a, b) => b[1].selfMs - a[1].selfMs).slice(0, 50);
81
- const flatLines = top50.map(
82
- ([mod, { selfMs, totalMs: totalMs2, count: count2 }]) => `${selfMs.toFixed(1).padStart(8)}ms self ${totalMs2.toFixed(1).padStart(8)}ms total (x${String(count2).padStart(3)}) ${mod}`
83
- );
84
- process.stderr.write(`
85
- --- Top 50 modules by self time ---
86
- ` + flatLines.join("\n") + "\n");
87
- });
88
- }