@pedropaulovc/playwright-core 1.59.0-next.8 → 1.59.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ThirdPartyNotices.txt +92 -73
- package/browsers.json +9 -9
- package/lib/cli/program.js +1 -1
- package/lib/client/browserContext.js +3 -0
- package/lib/client/browserType.js +10 -0
- package/lib/client/consoleMessage.js +3 -0
- package/lib/client/elementHandle.js +1 -1
- package/lib/client/harRouter.js +13 -1
- package/lib/client/locator.js +4 -0
- package/lib/client/network.js +11 -11
- package/lib/client/page.js +11 -11
- package/lib/client/tracing.js +7 -2
- package/lib/client/video.js +13 -22
- package/lib/generated/clockSource.js +1 -1
- package/lib/generated/injectedScriptSource.js +1 -1
- package/lib/generated/pollingRecorderSource.js +1 -1
- package/lib/generated/utilityScriptSource.js +1 -1
- package/lib/mcpBundleImpl/index.js +27 -27
- package/lib/protocol/validator.js +51 -19
- package/lib/protocol/validatorPrimitives.js +1 -1
- package/lib/server/agent/actionRunner.js +18 -12
- package/lib/server/agent/context.js +28 -17
- package/lib/server/agent/pageAgent.js +4 -4
- package/lib/server/bidi/bidiBrowser.js +2 -2
- package/lib/server/bidi/bidiChromium.js +15 -0
- package/lib/server/bidi/bidiNetworkManager.js +34 -6
- package/lib/server/bidi/bidiPage.js +26 -11
- package/lib/server/bidi/third_party/firefoxPrefs.js +3 -1
- package/lib/server/browser.js +5 -11
- package/lib/server/browserContext.js +10 -2
- package/lib/server/browserType.js +4 -8
- package/lib/server/chromium/chromium.js +12 -6
- package/lib/server/chromium/chromiumSwitches.js +2 -0
- package/lib/server/chromium/crBrowser.js +20 -8
- package/lib/server/chromium/crPage.js +9 -6
- package/lib/server/chromium/crServiceWorker.js +1 -1
- package/lib/server/clock.js +1 -1
- package/lib/server/console.js +5 -1
- package/lib/server/deviceDescriptorsSource.json +54 -54
- package/lib/server/devtoolsController.js +365 -0
- package/lib/server/dispatchers/browserContextDispatcher.js +7 -11
- package/lib/server/dispatchers/browserTypeDispatcher.js +7 -0
- package/lib/server/dispatchers/electronDispatcher.js +2 -1
- package/lib/server/dispatchers/networkDispatchers.js +3 -5
- package/lib/server/dispatchers/pageAgentDispatcher.js +10 -0
- package/lib/server/dispatchers/pageDispatcher.js +18 -7
- package/lib/server/dispatchers/webSocketRouteDispatcher.js +1 -2
- package/lib/server/electron/electron.js +2 -2
- package/lib/server/electron/loader.js +2 -1
- package/lib/server/firefox/ffBrowser.js +3 -6
- package/lib/server/firefox/ffPage.js +13 -15
- package/lib/server/frames.js +9 -4
- package/lib/server/localUtils.js +2 -2
- package/lib/server/page.js +13 -4
- package/lib/server/progress.js +4 -0
- package/lib/server/recorder.js +1 -1
- package/lib/server/registry/index.js +38 -69
- package/lib/server/registry/nativeDeps.js +1 -0
- package/lib/server/screencast.js +14 -12
- package/lib/server/trace/viewer/traceViewer.js +8 -9
- package/lib/server/utils/httpServer.js +6 -4
- package/lib/server/utils/network.js +2 -0
- package/lib/server/utils/processLauncher.js +2 -1
- package/lib/server/videoRecorder.js +16 -7
- package/lib/server/webkit/wkBrowser.js +0 -4
- package/lib/server/webkit/wkPage.js +9 -5
- package/lib/server/webkit/wkWorkers.js +2 -1
- package/lib/utils/isomorphic/protocolMetainfo.js +5 -0
- package/lib/utils/isomorphic/stringUtils.js +2 -2
- package/lib/utils/isomorphic/timeoutRunner.js +3 -3
- package/lib/utils/isomorphic/trace/snapshotRenderer.js +4 -1
- package/lib/utils/isomorphic/trace/traceModel.js +1 -1
- package/lib/utils/isomorphic/urlMatch.js +54 -1
- package/lib/utilsBundle.js +3 -0
- package/lib/utilsBundleImpl/index.js +112 -110
- package/lib/vite/devtools/assets/index-D3CVnoLM.css +1 -0
- package/lib/vite/devtools/assets/index-KduRq4JP.js +50 -0
- package/lib/vite/devtools/index.html +28 -0
- package/lib/vite/htmlReport/index.html +22 -22
- package/lib/vite/traceViewer/assets/{codeMirrorModule-CTLpUEwQ.js → codeMirrorModule-DuhUBwTE.js} +1 -1
- package/lib/vite/traceViewer/assets/{defaultSettingsView-D2YUQhJW.js → defaultSettingsView-Dt6mKJJi.js} +97 -97
- package/lib/vite/traceViewer/{defaultSettingsView.7ch9cixO.css → defaultSettingsView.CkISkDM4.css} +1 -1
- package/lib/vite/traceViewer/{index.B-LAeEVU.js → index.Cuu86qaF.js} +1 -1
- package/lib/vite/traceViewer/index.html +3 -3
- package/lib/vite/traceViewer/sw.bundle.js +4 -4
- package/lib/vite/traceViewer/uiMode.N_yPe6Zp.js +5 -0
- package/lib/vite/traceViewer/uiMode.html +3 -3
- package/package.json +1 -1
- package/types/protocol.d.ts +561 -20
- package/types/types.d.ts +72 -37
- package/lib/vite/traceViewer/uiMode.D3G83uTB.js +0 -5
package/ThirdPartyNotices.txt
CHANGED
|
@@ -4,15 +4,15 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
|
|
4
4
|
|
|
5
5
|
This project incorporates components from the projects listed below. The original copyright notices and the licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
|
|
6
6
|
|
|
7
|
-
- @hono/node-server@1.19.
|
|
7
|
+
- @hono/node-server@1.19.9 (https://github.com/honojs/node-server)
|
|
8
8
|
- @lowire/loop@0.0.25 (https://github.com/pavelfeldman/lowire)
|
|
9
|
-
- @modelcontextprotocol/sdk@1.
|
|
9
|
+
- @modelcontextprotocol/sdk@1.26.0 (https://github.com/modelcontextprotocol/typescript-sdk)
|
|
10
10
|
- accepts@2.0.0 (https://github.com/jshttp/accepts)
|
|
11
11
|
- agent-base@7.1.4 (https://github.com/TooTallNate/proxy-agents)
|
|
12
12
|
- ajv-formats@3.0.1 (https://github.com/ajv-validator/ajv-formats)
|
|
13
13
|
- ajv@8.17.1 (https://github.com/ajv-validator/ajv)
|
|
14
14
|
- balanced-match@1.0.2 (https://github.com/juliangruber/balanced-match)
|
|
15
|
-
- body-parser@2.2.
|
|
15
|
+
- body-parser@2.2.2 (https://github.com/expressjs/body-parser)
|
|
16
16
|
- brace-expansion@1.1.12 (https://github.com/juliangruber/brace-expansion)
|
|
17
17
|
- buffer-crc32@0.2.13 (https://github.com/brianloveswords/buffer-crc32)
|
|
18
18
|
- bytes@3.1.2 (https://github.com/visionmedia/bytes.js)
|
|
@@ -22,7 +22,7 @@ This project incorporates components from the projects listed below. The origina
|
|
|
22
22
|
- colors@1.4.0 (https://github.com/Marak/colors.js)
|
|
23
23
|
- commander@13.1.0 (https://github.com/tj/commander.js)
|
|
24
24
|
- concat-map@0.0.1 (https://github.com/substack/node-concat-map)
|
|
25
|
-
- content-disposition@1.0.
|
|
25
|
+
- content-disposition@1.0.1 (https://github.com/jshttp/content-disposition)
|
|
26
26
|
- content-type@1.0.5 (https://github.com/jshttp/content-type)
|
|
27
27
|
- cookie-signature@1.2.2 (https://github.com/visionmedia/node-cookie-signature)
|
|
28
28
|
- cookie@0.7.2 (https://github.com/jshttp/cookie)
|
|
@@ -46,11 +46,11 @@ This project incorporates components from the projects listed below. The origina
|
|
|
46
46
|
- etag@1.8.1 (https://github.com/jshttp/etag)
|
|
47
47
|
- eventsource-parser@3.0.3 (https://github.com/rexxars/eventsource-parser)
|
|
48
48
|
- eventsource@3.0.7 (git://git@github.com/EventSource/eventsource)
|
|
49
|
-
- express-rate-limit@
|
|
50
|
-
- express@5.1
|
|
49
|
+
- express-rate-limit@8.2.1 (https://github.com/express-rate-limit/express-rate-limit)
|
|
50
|
+
- express@5.2.1 (https://github.com/expressjs/express)
|
|
51
51
|
- fast-deep-equal@3.1.3 (https://github.com/epoberezkin/fast-deep-equal)
|
|
52
52
|
- fast-uri@3.1.0 (https://github.com/fastify/fast-uri)
|
|
53
|
-
- finalhandler@2.1.
|
|
53
|
+
- finalhandler@2.1.1 (https://github.com/pillarjs/finalhandler)
|
|
54
54
|
- forwarded@0.2.0 (https://github.com/jshttp/forwarded)
|
|
55
55
|
- fresh@2.0.0 (https://github.com/jshttp/fresh)
|
|
56
56
|
- function-bind@1.1.2 (https://github.com/Raynos/function-bind)
|
|
@@ -61,11 +61,13 @@ This project incorporates components from the projects listed below. The origina
|
|
|
61
61
|
- graceful-fs@4.2.10 (https://github.com/isaacs/node-graceful-fs)
|
|
62
62
|
- has-symbols@1.1.0 (https://github.com/inspect-js/has-symbols)
|
|
63
63
|
- hasown@2.0.2 (https://github.com/inspect-js/hasOwn)
|
|
64
|
-
- hono@4.
|
|
64
|
+
- hono@4.12.2 (https://github.com/honojs/hono)
|
|
65
65
|
- http-errors@2.0.1 (https://github.com/jshttp/http-errors)
|
|
66
66
|
- https-proxy-agent@7.0.6 (https://github.com/TooTallNate/proxy-agents)
|
|
67
|
-
- iconv-lite@0.7.
|
|
67
|
+
- iconv-lite@0.7.2 (https://github.com/pillarjs/iconv-lite)
|
|
68
68
|
- inherits@2.0.4 (https://github.com/isaacs/inherits)
|
|
69
|
+
- ini@6.0.0 (https://github.com/npm/ini)
|
|
70
|
+
- ip-address@10.0.1 (https://github.com/beaugunderson/ip-address)
|
|
69
71
|
- ip-address@9.0.5 (https://github.com/beaugunderson/ip-address)
|
|
70
72
|
- ipaddr.js@1.9.1 (https://github.com/whitequark/ipaddr.js)
|
|
71
73
|
- is-docker@2.2.1 (https://github.com/sindresorhus/is-docker)
|
|
@@ -81,9 +83,9 @@ This project incorporates components from the projects listed below. The origina
|
|
|
81
83
|
- media-typer@1.1.0 (https://github.com/jshttp/media-typer)
|
|
82
84
|
- merge-descriptors@2.0.0 (https://github.com/sindresorhus/merge-descriptors)
|
|
83
85
|
- mime-db@1.54.0 (https://github.com/jshttp/mime-db)
|
|
84
|
-
- mime-types@3.0.
|
|
86
|
+
- mime-types@3.0.2 (https://github.com/jshttp/mime-types)
|
|
85
87
|
- mime@3.0.0 (https://github.com/broofa/mime)
|
|
86
|
-
- minimatch@3.1.
|
|
88
|
+
- minimatch@3.1.3 (https://github.com/isaacs/minimatch)
|
|
87
89
|
- ms@2.1.2 (https://github.com/zeit/ms)
|
|
88
90
|
- ms@2.1.3 (https://github.com/vercel/ms)
|
|
89
91
|
- negotiator@1.0.0 (https://github.com/jshttp/negotiator)
|
|
@@ -94,13 +96,13 @@ This project incorporates components from the projects listed below. The origina
|
|
|
94
96
|
- open@8.4.0 (https://github.com/sindresorhus/open)
|
|
95
97
|
- parseurl@1.3.3 (https://github.com/pillarjs/parseurl)
|
|
96
98
|
- path-key@3.1.1 (https://github.com/sindresorhus/path-key)
|
|
97
|
-
- path-to-regexp@8.
|
|
99
|
+
- path-to-regexp@8.3.0 (https://github.com/pillarjs/path-to-regexp)
|
|
98
100
|
- pend@1.2.0 (https://github.com/andrewrk/node-pend)
|
|
99
101
|
- pkce-challenge@5.0.0 (https://github.com/crouchcd/pkce-challenge)
|
|
100
102
|
- pngjs@6.0.0 (https://github.com/lukeapage/pngjs)
|
|
101
103
|
- progress@2.0.3 (https://github.com/visionmedia/node-progress)
|
|
102
104
|
- proxy-addr@2.0.7 (https://github.com/jshttp/proxy-addr)
|
|
103
|
-
- proxy-from-env@
|
|
105
|
+
- proxy-from-env@2.0.0 (https://github.com/Rob--W/proxy-from-env)
|
|
104
106
|
- pump@3.0.2 (https://github.com/mafintosh/pump)
|
|
105
107
|
- qs@6.14.1 (https://github.com/ljharb/qs)
|
|
106
108
|
- range-parser@1.2.1 (https://github.com/jshttp/range-parser)
|
|
@@ -108,10 +110,9 @@ This project incorporates components from the projects listed below. The origina
|
|
|
108
110
|
- require-from-string@2.0.2 (https://github.com/floatdrop/require-from-string)
|
|
109
111
|
- retry@0.12.0 (https://github.com/tim-kos/node-retry)
|
|
110
112
|
- router@2.2.0 (https://github.com/pillarjs/router)
|
|
111
|
-
- safe-buffer@5.2.1 (https://github.com/feross/safe-buffer)
|
|
112
113
|
- safer-buffer@2.1.2 (https://github.com/ChALkeR/safer-buffer)
|
|
113
|
-
- send@1.2.
|
|
114
|
-
- serve-static@2.2.
|
|
114
|
+
- send@1.2.1 (https://github.com/pillarjs/send)
|
|
115
|
+
- serve-static@2.2.1 (https://github.com/expressjs/serve-static)
|
|
115
116
|
- setprototypeof@1.2.0 (https://github.com/wesleytodd/setprototypeof)
|
|
116
117
|
- shebang-command@2.0.0 (https://github.com/kevva/shebang-command)
|
|
117
118
|
- shebang-regex@3.0.0 (https://github.com/sindresorhus/shebang-regex)
|
|
@@ -138,7 +139,7 @@ This project incorporates components from the projects listed below. The origina
|
|
|
138
139
|
- zod-to-json-schema@3.25.1 (https://github.com/StefanTerdell/zod-to-json-schema)
|
|
139
140
|
- zod@4.3.5 (https://github.com/colinhacks/zod)
|
|
140
141
|
|
|
141
|
-
%% @hono/node-server@1.19.
|
|
142
|
+
%% @hono/node-server@1.19.9 NOTICES AND INFORMATION BEGIN HERE
|
|
142
143
|
=========================================
|
|
143
144
|
# Node.js Adapter for Hono
|
|
144
145
|
|
|
@@ -498,7 +499,7 @@ Yusuke Wada <https://github.com/yusukebe>
|
|
|
498
499
|
|
|
499
500
|
MIT
|
|
500
501
|
=========================================
|
|
501
|
-
END OF @hono/node-server@1.19.
|
|
502
|
+
END OF @hono/node-server@1.19.9 AND INFORMATION
|
|
502
503
|
|
|
503
504
|
%% @lowire/loop@0.0.25 NOTICES AND INFORMATION BEGIN HERE
|
|
504
505
|
=========================================
|
|
@@ -706,7 +707,7 @@ Apache License
|
|
|
706
707
|
=========================================
|
|
707
708
|
END OF @lowire/loop@0.0.25 AND INFORMATION
|
|
708
709
|
|
|
709
|
-
%% @modelcontextprotocol/sdk@1.
|
|
710
|
+
%% @modelcontextprotocol/sdk@1.26.0 NOTICES AND INFORMATION BEGIN HERE
|
|
710
711
|
=========================================
|
|
711
712
|
MIT License
|
|
712
713
|
|
|
@@ -730,7 +731,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
730
731
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
731
732
|
SOFTWARE.
|
|
732
733
|
=========================================
|
|
733
|
-
END OF @modelcontextprotocol/sdk@1.
|
|
734
|
+
END OF @modelcontextprotocol/sdk@1.26.0 AND INFORMATION
|
|
734
735
|
|
|
735
736
|
%% accepts@2.0.0 NOTICES AND INFORMATION BEGIN HERE
|
|
736
737
|
=========================================
|
|
@@ -865,7 +866,7 @@ SOFTWARE.
|
|
|
865
866
|
=========================================
|
|
866
867
|
END OF balanced-match@1.0.2 AND INFORMATION
|
|
867
868
|
|
|
868
|
-
%% body-parser@2.2.
|
|
869
|
+
%% body-parser@2.2.2 NOTICES AND INFORMATION BEGIN HERE
|
|
869
870
|
=========================================
|
|
870
871
|
(The MIT License)
|
|
871
872
|
|
|
@@ -891,7 +892,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
891
892
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
892
893
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
893
894
|
=========================================
|
|
894
|
-
END OF body-parser@2.2.
|
|
895
|
+
END OF body-parser@2.2.2 AND INFORMATION
|
|
895
896
|
|
|
896
897
|
%% brace-expansion@1.1.12 NOTICES AND INFORMATION BEGIN HERE
|
|
897
898
|
=========================================
|
|
@@ -1129,7 +1130,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1129
1130
|
=========================================
|
|
1130
1131
|
END OF concat-map@0.0.1 AND INFORMATION
|
|
1131
1132
|
|
|
1132
|
-
%% content-disposition@1.0.
|
|
1133
|
+
%% content-disposition@1.0.1 NOTICES AND INFORMATION BEGIN HERE
|
|
1133
1134
|
=========================================
|
|
1134
1135
|
(The MIT License)
|
|
1135
1136
|
|
|
@@ -1154,7 +1155,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
1154
1155
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
1155
1156
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1156
1157
|
=========================================
|
|
1157
|
-
END OF content-disposition@1.0.
|
|
1158
|
+
END OF content-disposition@1.0.1 AND INFORMATION
|
|
1158
1159
|
|
|
1159
1160
|
%% content-type@1.0.5 NOTICES AND INFORMATION BEGIN HERE
|
|
1160
1161
|
=========================================
|
|
@@ -1758,7 +1759,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1758
1759
|
=========================================
|
|
1759
1760
|
END OF eventsource@3.0.7 AND INFORMATION
|
|
1760
1761
|
|
|
1761
|
-
%% express-rate-limit@
|
|
1762
|
+
%% express-rate-limit@8.2.1 NOTICES AND INFORMATION BEGIN HERE
|
|
1762
1763
|
=========================================
|
|
1763
1764
|
# MIT License
|
|
1764
1765
|
|
|
@@ -1781,9 +1782,9 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
1781
1782
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
1782
1783
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1783
1784
|
=========================================
|
|
1784
|
-
END OF express-rate-limit@
|
|
1785
|
+
END OF express-rate-limit@8.2.1 AND INFORMATION
|
|
1785
1786
|
|
|
1786
|
-
%% express@5.1
|
|
1787
|
+
%% express@5.2.1 NOTICES AND INFORMATION BEGIN HERE
|
|
1787
1788
|
=========================================
|
|
1788
1789
|
(The MIT License)
|
|
1789
1790
|
|
|
@@ -1810,7 +1811,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
1810
1811
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
1811
1812
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1812
1813
|
=========================================
|
|
1813
|
-
END OF express@5.1
|
|
1814
|
+
END OF express@5.2.1 AND INFORMATION
|
|
1814
1815
|
|
|
1815
1816
|
%% fast-deep-equal@3.1.3 NOTICES AND INFORMATION BEGIN HERE
|
|
1816
1817
|
=========================================
|
|
@@ -1875,7 +1876,7 @@ The complete list of contributors can be found at:
|
|
|
1875
1876
|
=========================================
|
|
1876
1877
|
END OF fast-uri@3.1.0 AND INFORMATION
|
|
1877
1878
|
|
|
1878
|
-
%% finalhandler@2.1.
|
|
1879
|
+
%% finalhandler@2.1.1 NOTICES AND INFORMATION BEGIN HERE
|
|
1879
1880
|
=========================================
|
|
1880
1881
|
(The MIT License)
|
|
1881
1882
|
|
|
@@ -1900,7 +1901,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
1900
1901
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
1901
1902
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1902
1903
|
=========================================
|
|
1903
|
-
END OF finalhandler@2.1.
|
|
1904
|
+
END OF finalhandler@2.1.1 AND INFORMATION
|
|
1904
1905
|
|
|
1905
1906
|
%% forwarded@0.2.0 NOTICES AND INFORMATION BEGIN HERE
|
|
1906
1907
|
=========================================
|
|
@@ -2145,7 +2146,7 @@ SOFTWARE.
|
|
|
2145
2146
|
=========================================
|
|
2146
2147
|
END OF hasown@2.0.2 AND INFORMATION
|
|
2147
2148
|
|
|
2148
|
-
%% hono@4.
|
|
2149
|
+
%% hono@4.12.2 NOTICES AND INFORMATION BEGIN HERE
|
|
2149
2150
|
=========================================
|
|
2150
2151
|
MIT License
|
|
2151
2152
|
|
|
@@ -2169,7 +2170,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
2169
2170
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2170
2171
|
SOFTWARE.
|
|
2171
2172
|
=========================================
|
|
2172
|
-
END OF hono@4.
|
|
2173
|
+
END OF hono@4.12.2 AND INFORMATION
|
|
2173
2174
|
|
|
2174
2175
|
%% http-errors@2.0.1 NOTICES AND INFORMATION BEGIN HERE
|
|
2175
2176
|
=========================================
|
|
@@ -2225,7 +2226,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
2225
2226
|
=========================================
|
|
2226
2227
|
END OF https-proxy-agent@7.0.6 AND INFORMATION
|
|
2227
2228
|
|
|
2228
|
-
%% iconv-lite@0.7.
|
|
2229
|
+
%% iconv-lite@0.7.2 NOTICES AND INFORMATION BEGIN HERE
|
|
2229
2230
|
=========================================
|
|
2230
2231
|
Copyright (c) 2011 Alexander Shtuchkin
|
|
2231
2232
|
|
|
@@ -2248,7 +2249,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
2248
2249
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
2249
2250
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2250
2251
|
=========================================
|
|
2251
|
-
END OF iconv-lite@0.7.
|
|
2252
|
+
END OF iconv-lite@0.7.2 AND INFORMATION
|
|
2252
2253
|
|
|
2253
2254
|
%% inherits@2.0.4 NOTICES AND INFORMATION BEGIN HERE
|
|
2254
2255
|
=========================================
|
|
@@ -2270,6 +2271,50 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
2270
2271
|
=========================================
|
|
2271
2272
|
END OF inherits@2.0.4 AND INFORMATION
|
|
2272
2273
|
|
|
2274
|
+
%% ini@6.0.0 NOTICES AND INFORMATION BEGIN HERE
|
|
2275
|
+
=========================================
|
|
2276
|
+
The ISC License
|
|
2277
|
+
|
|
2278
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
2279
|
+
|
|
2280
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
2281
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
2282
|
+
copyright notice and this permission notice appear in all copies.
|
|
2283
|
+
|
|
2284
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
2285
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
2286
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
2287
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
2288
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
2289
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
2290
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
2291
|
+
=========================================
|
|
2292
|
+
END OF ini@6.0.0 AND INFORMATION
|
|
2293
|
+
|
|
2294
|
+
%% ip-address@10.0.1 NOTICES AND INFORMATION BEGIN HERE
|
|
2295
|
+
=========================================
|
|
2296
|
+
Copyright (C) 2011 by Beau Gunderson
|
|
2297
|
+
|
|
2298
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2299
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
2300
|
+
in the Software without restriction, including without limitation the rights
|
|
2301
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2302
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
2303
|
+
furnished to do so, subject to the following conditions:
|
|
2304
|
+
|
|
2305
|
+
The above copyright notice and this permission notice shall be included in
|
|
2306
|
+
all copies or substantial portions of the Software.
|
|
2307
|
+
|
|
2308
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2309
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2310
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2311
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2312
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2313
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2314
|
+
THE SOFTWARE.
|
|
2315
|
+
=========================================
|
|
2316
|
+
END OF ip-address@10.0.1 AND INFORMATION
|
|
2317
|
+
|
|
2273
2318
|
%% ip-address@9.0.5 NOTICES AND INFORMATION BEGIN HERE
|
|
2274
2319
|
=========================================
|
|
2275
2320
|
Copyright (C) 2011 by Beau Gunderson
|
|
@@ -2676,7 +2721,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
2676
2721
|
=========================================
|
|
2677
2722
|
END OF mime-db@1.54.0 AND INFORMATION
|
|
2678
2723
|
|
|
2679
|
-
%% mime-types@3.0.
|
|
2724
|
+
%% mime-types@3.0.2 NOTICES AND INFORMATION BEGIN HERE
|
|
2680
2725
|
=========================================
|
|
2681
2726
|
(The MIT License)
|
|
2682
2727
|
|
|
@@ -2702,7 +2747,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
2702
2747
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
2703
2748
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2704
2749
|
=========================================
|
|
2705
|
-
END OF mime-types@3.0.
|
|
2750
|
+
END OF mime-types@3.0.2 AND INFORMATION
|
|
2706
2751
|
|
|
2707
2752
|
%% mime@3.0.0 NOTICES AND INFORMATION BEGIN HERE
|
|
2708
2753
|
=========================================
|
|
@@ -2730,7 +2775,7 @@ THE SOFTWARE.
|
|
|
2730
2775
|
=========================================
|
|
2731
2776
|
END OF mime@3.0.0 AND INFORMATION
|
|
2732
2777
|
|
|
2733
|
-
%% minimatch@3.1.
|
|
2778
|
+
%% minimatch@3.1.3 NOTICES AND INFORMATION BEGIN HERE
|
|
2734
2779
|
=========================================
|
|
2735
2780
|
The ISC License
|
|
2736
2781
|
|
|
@@ -2748,7 +2793,7 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
2748
2793
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
2749
2794
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
2750
2795
|
=========================================
|
|
2751
|
-
END OF minimatch@3.1.
|
|
2796
|
+
END OF minimatch@3.1.3 AND INFORMATION
|
|
2752
2797
|
|
|
2753
2798
|
%% ms@2.1.2 NOTICES AND INFORMATION BEGIN HERE
|
|
2754
2799
|
=========================================
|
|
@@ -2987,7 +3032,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
2987
3032
|
=========================================
|
|
2988
3033
|
END OF path-key@3.1.1 AND INFORMATION
|
|
2989
3034
|
|
|
2990
|
-
%% path-to-regexp@8.
|
|
3035
|
+
%% path-to-regexp@8.3.0 NOTICES AND INFORMATION BEGIN HERE
|
|
2991
3036
|
=========================================
|
|
2992
3037
|
The MIT License (MIT)
|
|
2993
3038
|
|
|
@@ -3011,7 +3056,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
3011
3056
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3012
3057
|
THE SOFTWARE.
|
|
3013
3058
|
=========================================
|
|
3014
|
-
END OF path-to-regexp@8.
|
|
3059
|
+
END OF path-to-regexp@8.3.0 AND INFORMATION
|
|
3015
3060
|
|
|
3016
3061
|
%% pend@1.2.0 NOTICES AND INFORMATION BEGIN HERE
|
|
3017
3062
|
=========================================
|
|
@@ -3146,7 +3191,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
3146
3191
|
=========================================
|
|
3147
3192
|
END OF proxy-addr@2.0.7 AND INFORMATION
|
|
3148
3193
|
|
|
3149
|
-
%% proxy-from-env@
|
|
3194
|
+
%% proxy-from-env@2.0.0 NOTICES AND INFORMATION BEGIN HERE
|
|
3150
3195
|
=========================================
|
|
3151
3196
|
The MIT License
|
|
3152
3197
|
|
|
@@ -3169,7 +3214,7 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
3169
3214
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
3170
3215
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3171
3216
|
=========================================
|
|
3172
|
-
END OF proxy-from-env@
|
|
3217
|
+
END OF proxy-from-env@2.0.0 AND INFORMATION
|
|
3173
3218
|
|
|
3174
3219
|
%% pump@3.0.2 NOTICES AND INFORMATION BEGIN HERE
|
|
3175
3220
|
=========================================
|
|
@@ -3366,32 +3411,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
3366
3411
|
=========================================
|
|
3367
3412
|
END OF router@2.2.0 AND INFORMATION
|
|
3368
3413
|
|
|
3369
|
-
%% safe-buffer@5.2.1 NOTICES AND INFORMATION BEGIN HERE
|
|
3370
|
-
=========================================
|
|
3371
|
-
The MIT License (MIT)
|
|
3372
|
-
|
|
3373
|
-
Copyright (c) Feross Aboukhadijeh
|
|
3374
|
-
|
|
3375
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3376
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
3377
|
-
in the Software without restriction, including without limitation the rights
|
|
3378
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3379
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
3380
|
-
furnished to do so, subject to the following conditions:
|
|
3381
|
-
|
|
3382
|
-
The above copyright notice and this permission notice shall be included in
|
|
3383
|
-
all copies or substantial portions of the Software.
|
|
3384
|
-
|
|
3385
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3386
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3387
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3388
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3389
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3390
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3391
|
-
THE SOFTWARE.
|
|
3392
|
-
=========================================
|
|
3393
|
-
END OF safe-buffer@5.2.1 AND INFORMATION
|
|
3394
|
-
|
|
3395
3414
|
%% safer-buffer@2.1.2 NOTICES AND INFORMATION BEGIN HERE
|
|
3396
3415
|
=========================================
|
|
3397
3416
|
MIT License
|
|
@@ -3418,7 +3437,7 @@ SOFTWARE.
|
|
|
3418
3437
|
=========================================
|
|
3419
3438
|
END OF safer-buffer@2.1.2 AND INFORMATION
|
|
3420
3439
|
|
|
3421
|
-
%% send@1.2.
|
|
3440
|
+
%% send@1.2.1 NOTICES AND INFORMATION BEGIN HERE
|
|
3422
3441
|
=========================================
|
|
3423
3442
|
(The MIT License)
|
|
3424
3443
|
|
|
@@ -3444,9 +3463,9 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
3444
3463
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
3445
3464
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3446
3465
|
=========================================
|
|
3447
|
-
END OF send@1.2.
|
|
3466
|
+
END OF send@1.2.1 AND INFORMATION
|
|
3448
3467
|
|
|
3449
|
-
%% serve-static@2.2.
|
|
3468
|
+
%% serve-static@2.2.1 NOTICES AND INFORMATION BEGIN HERE
|
|
3450
3469
|
=========================================
|
|
3451
3470
|
(The MIT License)
|
|
3452
3471
|
|
|
@@ -3474,7 +3493,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
3474
3493
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
3475
3494
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3476
3495
|
=========================================
|
|
3477
|
-
END OF serve-static@2.2.
|
|
3496
|
+
END OF serve-static@2.2.1 AND INFORMATION
|
|
3478
3497
|
|
|
3479
3498
|
%% setprototypeof@1.2.0 NOTICES AND INFORMATION BEGIN HERE
|
|
3480
3499
|
=========================================
|
|
@@ -4071,6 +4090,6 @@ END OF zod@4.3.5 AND INFORMATION
|
|
|
4071
4090
|
|
|
4072
4091
|
SUMMARY BEGIN HERE
|
|
4073
4092
|
=========================================
|
|
4074
|
-
Total Packages:
|
|
4093
|
+
Total Packages: 134
|
|
4075
4094
|
=========================================
|
|
4076
4095
|
END OF SUMMARY
|
package/browsers.json
CHANGED
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
"browsers": [
|
|
4
4
|
{
|
|
5
5
|
"name": "chromium",
|
|
6
|
-
"revision": "
|
|
6
|
+
"revision": "1212",
|
|
7
7
|
"installByDefault": true,
|
|
8
|
-
"browserVersion": "
|
|
8
|
+
"browserVersion": "146.0.7680.0",
|
|
9
9
|
"title": "Chrome for Testing"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "chromium-headless-shell",
|
|
13
|
-
"revision": "
|
|
13
|
+
"revision": "1212",
|
|
14
14
|
"installByDefault": true,
|
|
15
|
-
"browserVersion": "
|
|
15
|
+
"browserVersion": "146.0.7680.0",
|
|
16
16
|
"title": "Chrome Headless Shell"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"name": "chromium-tip-of-tree",
|
|
20
|
-
"revision": "
|
|
20
|
+
"revision": "1408",
|
|
21
21
|
"installByDefault": false,
|
|
22
|
-
"browserVersion": "
|
|
22
|
+
"browserVersion": "147.0.7701.0",
|
|
23
23
|
"title": "Chrome Canary for Testing"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "chromium-tip-of-tree-headless-shell",
|
|
27
|
-
"revision": "
|
|
27
|
+
"revision": "1408",
|
|
28
28
|
"installByDefault": false,
|
|
29
|
-
"browserVersion": "
|
|
29
|
+
"browserVersion": "147.0.7701.0",
|
|
30
30
|
"title": "Chrome Canary Headless Shell"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "webkit",
|
|
48
|
-
"revision": "
|
|
48
|
+
"revision": "2263",
|
|
49
49
|
"installByDefault": true,
|
|
50
50
|
"revisionOverrides": {
|
|
51
51
|
"mac14": "2251",
|
package/lib/cli/program.js
CHANGED
|
@@ -289,7 +289,7 @@ import_utilsBundle.program.command("show-trace [trace]").option("-b, --browser <
|
|
|
289
289
|
if (options.port !== void 0 || options.host !== void 0)
|
|
290
290
|
(0, import_traceViewer.runTraceInBrowser)(trace, openOptions).catch(logErrorAndExit);
|
|
291
291
|
else
|
|
292
|
-
(0, import_traceViewer.runTraceViewerApp)(trace, options.browser, openOptions
|
|
292
|
+
(0, import_traceViewer.runTraceViewerApp)(trace, options.browser, openOptions).catch(logErrorAndExit);
|
|
293
293
|
}).addHelpText("afterAll", `
|
|
294
294
|
Examples:
|
|
295
295
|
|
|
@@ -513,6 +513,9 @@ class BrowserContext extends import_channelOwner.ChannelOwner {
|
|
|
513
513
|
return;
|
|
514
514
|
throw new Error(`File access denied: ${filePath} is outside allowed roots. Allowed roots: ${this._allowedDirectories.length ? this._allowedDirectories.join(", ") : "none"}`);
|
|
515
515
|
}
|
|
516
|
+
async _devtoolsStart() {
|
|
517
|
+
return await this._channel.devtoolsStart();
|
|
518
|
+
}
|
|
516
519
|
}
|
|
517
520
|
async function prepareStorageState(platform, storageState) {
|
|
518
521
|
if (typeof storageState !== "string")
|
|
@@ -178,6 +178,16 @@ class BrowserType extends import_channelOwner.ChannelOwner {
|
|
|
178
178
|
await this._instrumentation.runAfterCreateBrowserContext(import_browserContext.BrowserContext.from(result.defaultContext));
|
|
179
179
|
return browser;
|
|
180
180
|
}
|
|
181
|
+
async _connectOverCDPTransport(transport) {
|
|
182
|
+
if (this.name() !== "chromium")
|
|
183
|
+
throw new Error("Connecting over CDP is only supported in Chromium.");
|
|
184
|
+
const result = await this._channel.connectOverCDPTransport({ transport });
|
|
185
|
+
const browser = import_browser.Browser.from(result.browser);
|
|
186
|
+
browser._connectToBrowserType(this, {}, void 0);
|
|
187
|
+
if (result.defaultContext)
|
|
188
|
+
await this._instrumentation.runAfterCreateBrowserContext(import_browserContext.BrowserContext.from(result.defaultContext));
|
|
189
|
+
return browser;
|
|
190
|
+
}
|
|
181
191
|
}
|
|
182
192
|
// Annotate the CommonJS export names for ESM import in node:
|
|
183
193
|
0 && (module.exports = {
|
|
@@ -234,7 +234,7 @@ async function convertInputFiles(platform, files, context) {
|
|
|
234
234
|
if (localDirectory)
|
|
235
235
|
context._checkFileAccess(localDirectory);
|
|
236
236
|
if (context._connection.isRemote()) {
|
|
237
|
-
const files2 = localDirectory ? (await platform.fs().promises.readdir(localDirectory, { withFileTypes: true, recursive: true })).filter((f) => f.isFile()).map((f) => platform.path().join(f.
|
|
237
|
+
const files2 = localDirectory ? (await platform.fs().promises.readdir(localDirectory, { withFileTypes: true, recursive: true })).filter((f) => f.isFile()).map((f) => platform.path().join(f.parentPath, f.name)) : localPaths;
|
|
238
238
|
const { writableStreams, rootDir } = await context._wrapApiCall(async () => context._channel.createTempFiles({
|
|
239
239
|
rootDirName: localDirectory ? platform.path().basename(localDirectory) : void 0,
|
|
240
240
|
items: await Promise.all(files2.map(async (file) => {
|
package/lib/client/harRouter.js
CHANGED
|
@@ -52,9 +52,21 @@ class HarRouter {
|
|
|
52
52
|
if (response.action === "fulfill") {
|
|
53
53
|
if (response.status === -1)
|
|
54
54
|
return;
|
|
55
|
+
const transformedHeaders = response.headers.reduce((headersMap, { name, value }) => {
|
|
56
|
+
if (name.toLowerCase() !== "set-cookie") {
|
|
57
|
+
headersMap[name] = value;
|
|
58
|
+
} else {
|
|
59
|
+
if (!headersMap["set-cookie"])
|
|
60
|
+
headersMap["set-cookie"] = value;
|
|
61
|
+
else
|
|
62
|
+
headersMap["set-cookie"] += `
|
|
63
|
+
${value}`;
|
|
64
|
+
}
|
|
65
|
+
return headersMap;
|
|
66
|
+
}, {});
|
|
55
67
|
await route.fulfill({
|
|
56
68
|
status: response.status,
|
|
57
|
-
headers:
|
|
69
|
+
headers: transformedHeaders,
|
|
58
70
|
body: response.body
|
|
59
71
|
});
|
|
60
72
|
return;
|
package/lib/client/locator.js
CHANGED
|
@@ -202,6 +202,10 @@ class Locator {
|
|
|
202
202
|
async _resolveSelector() {
|
|
203
203
|
return await this._frame._channel.resolveSelector({ selector: this._selector });
|
|
204
204
|
}
|
|
205
|
+
async _resolveForCode() {
|
|
206
|
+
const { resolvedSelector } = await this._resolveSelector();
|
|
207
|
+
return (0, import_locatorGenerators.asLocatorDescription)("javascript", resolvedSelector);
|
|
208
|
+
}
|
|
205
209
|
async getAttribute(name, options) {
|
|
206
210
|
return await this._frame.getAttribute(this._selector, name, { strict: true, ...options });
|
|
207
211
|
}
|
package/lib/client/network.js
CHANGED
|
@@ -50,8 +50,8 @@ class Request extends import_channelOwner.ChannelOwner {
|
|
|
50
50
|
this._redirectedFrom = null;
|
|
51
51
|
this._redirectedTo = null;
|
|
52
52
|
this._failureText = null;
|
|
53
|
+
this._response = null;
|
|
53
54
|
this._fallbackOverrides = {};
|
|
54
|
-
this._hasResponse = false;
|
|
55
55
|
this._redirectedFrom = Request.fromNullable(initializer.redirectedFrom);
|
|
56
56
|
if (this._redirectedFrom)
|
|
57
57
|
this._redirectedFrom._redirectedTo = this;
|
|
@@ -67,8 +67,6 @@ class Request extends import_channelOwner.ChannelOwner {
|
|
|
67
67
|
responseStart: -1,
|
|
68
68
|
responseEnd: -1
|
|
69
69
|
};
|
|
70
|
-
this._hasResponse = this._initializer.hasResponse;
|
|
71
|
-
this._channel.on("response", () => this._hasResponse = true);
|
|
72
70
|
}
|
|
73
71
|
static from(request) {
|
|
74
72
|
return request._object;
|
|
@@ -142,6 +140,9 @@ class Request extends import_channelOwner.ChannelOwner {
|
|
|
142
140
|
async _internalResponse() {
|
|
143
141
|
return Response.fromNullable((await this._channel.response()).response);
|
|
144
142
|
}
|
|
143
|
+
existingResponse() {
|
|
144
|
+
return this._response;
|
|
145
|
+
}
|
|
145
146
|
frame() {
|
|
146
147
|
if (!this._initializer.frame) {
|
|
147
148
|
(0, import_assert.assert)(this.serviceWorker());
|
|
@@ -465,10 +466,9 @@ class WebSocketRouteHandler {
|
|
|
465
466
|
const patterns = [];
|
|
466
467
|
let all = false;
|
|
467
468
|
for (const handler of handlers) {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
patterns.push({ regexSource: handler.url.source, regexFlags: handler.url.flags });
|
|
469
|
+
const serialized = (0, import_urlMatch.serializeURLMatch)(handler.url);
|
|
470
|
+
if (serialized)
|
|
471
|
+
patterns.push(serialized);
|
|
472
472
|
else
|
|
473
473
|
all = true;
|
|
474
474
|
}
|
|
@@ -491,6 +491,7 @@ class Response extends import_channelOwner.ChannelOwner {
|
|
|
491
491
|
this._finishedPromise = new import_manualPromise.ManualPromise();
|
|
492
492
|
this._provisionalHeaders = new RawHeaders(initializer.headers);
|
|
493
493
|
this._request = Request.from(this._initializer.request);
|
|
494
|
+
this._request._response = this;
|
|
494
495
|
Object.assign(this._request._timing, this._initializer.timing);
|
|
495
496
|
}
|
|
496
497
|
static from(response) {
|
|
@@ -638,10 +639,9 @@ class RouteHandler {
|
|
|
638
639
|
const patterns = [];
|
|
639
640
|
let all = false;
|
|
640
641
|
for (const handler of handlers) {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
patterns.push({ regexSource: handler.url.source, regexFlags: handler.url.flags });
|
|
642
|
+
const serialized = (0, import_urlMatch.serializeURLMatch)(handler.url);
|
|
643
|
+
if (serialized)
|
|
644
|
+
patterns.push(serialized);
|
|
645
645
|
else
|
|
646
646
|
all = true;
|
|
647
647
|
}
|