patchright-core 1.56.1 → 1.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/ThirdPartyNotices.txt +40 -381
  2. package/bin/install_webkit_wsl.ps1 +1 -3
  3. package/browsers.json +13 -13
  4. package/lib/cli/program.js +14 -57
  5. package/lib/client/api.js +0 -3
  6. package/lib/client/browserContext.js +22 -4
  7. package/lib/client/consoleMessage.js +5 -1
  8. package/lib/client/electron.js +1 -1
  9. package/lib/client/events.js +2 -1
  10. package/lib/client/locator.js +4 -1
  11. package/lib/client/page.js +2 -5
  12. package/lib/client/playwright.js +1 -5
  13. package/lib/client/tracing.js +6 -4
  14. package/lib/client/worker.js +22 -0
  15. package/lib/generated/clockSource.js +1 -1
  16. package/lib/generated/injectedScriptSource.js +1 -1
  17. package/lib/generated/pollingRecorderSource.js +1 -1
  18. package/lib/inProcessFactory.js +0 -2
  19. package/lib/protocol/validator.js +24 -46
  20. package/lib/server/android/android.js +1 -1
  21. package/lib/server/bidi/bidiBrowser.js +26 -11
  22. package/lib/server/bidi/bidiChromium.js +1 -1
  23. package/lib/server/bidi/bidiFirefox.js +1 -1
  24. package/lib/server/bidi/bidiPage.js +25 -5
  25. package/lib/server/browserContext.js +9 -10
  26. package/lib/server/chromium/chromium.js +12 -1
  27. package/lib/server/chromium/chromiumSwitches.js +10 -1
  28. package/lib/server/chromium/crBrowser.js +8 -0
  29. package/lib/server/chromium/crNetworkManager.js +15 -6
  30. package/lib/server/chromium/crPage.js +7 -9
  31. package/lib/server/chromium/crServiceWorker.js +14 -1
  32. package/lib/server/chromium/videoRecorder.js +14 -12
  33. package/lib/server/console.js +5 -1
  34. package/lib/server/deviceDescriptorsSource.json +56 -56
  35. package/lib/server/dispatchers/browserContextDispatcher.js +23 -6
  36. package/lib/server/dispatchers/pageDispatcher.js +10 -22
  37. package/lib/server/dispatchers/playwrightDispatcher.js +0 -4
  38. package/lib/server/electron/electron.js +1 -1
  39. package/lib/server/firefox/ffPage.js +3 -6
  40. package/lib/server/firefox/firefox.js +12 -1
  41. package/lib/server/frameSelectors.js +2 -4
  42. package/lib/server/frames.js +6 -1
  43. package/lib/server/input.js +7 -3
  44. package/lib/server/localUtils.js +4 -8
  45. package/lib/server/page.js +54 -38
  46. package/lib/server/playwright.js +2 -4
  47. package/lib/server/recorder/recorderApp.js +1 -1
  48. package/lib/server/recorder.js +3 -2
  49. package/lib/server/registry/index.js +114 -48
  50. package/lib/server/registry/oopDownloadBrowserMain.js +6 -2
  51. package/lib/server/socksClientCertificatesInterceptor.js +1 -1
  52. package/lib/server/trace/recorder/tracing.js +2 -0
  53. package/lib/server/trace/viewer/traceViewer.js +37 -36
  54. package/lib/server/utils/comparators.js +3 -25
  55. package/lib/server/utils/hostPlatform.js +15 -3
  56. package/lib/server/utils/imageUtils.js +141 -0
  57. package/lib/server/utils/network.js +22 -16
  58. package/lib/server/webkit/webkit.js +1 -10
  59. package/lib/server/webkit/wkPage.js +1 -5
  60. package/lib/server/webkit/wkWorkers.js +2 -1
  61. package/lib/utils/isomorphic/ariaSnapshot.js +5 -0
  62. package/lib/utils/isomorphic/locatorGenerators.js +24 -8
  63. package/lib/utils/isomorphic/mimeType.js +1 -1
  64. package/lib/utils/isomorphic/protocolFormatter.js +3 -0
  65. package/lib/utils/isomorphic/protocolMetainfo.js +2 -1
  66. package/lib/utils/isomorphic/urlMatch.js +19 -5
  67. package/lib/utils.js +2 -0
  68. package/lib/utilsBundle.js +6 -3
  69. package/lib/utilsBundleImpl/index.js +171 -171
  70. package/lib/vite/htmlReport/index.html +18 -18
  71. package/lib/vite/recorder/assets/codeMirrorModule-CBbSe-ZI.js +25 -0
  72. package/lib/vite/recorder/assets/{index-Y-X2TGJv.js → index-CpZVd2nA.js} +32 -32
  73. package/lib/vite/recorder/index.html +1 -1
  74. package/lib/vite/traceViewer/assets/codeMirrorModule-DHz0wP2C.js +25 -0
  75. package/lib/vite/traceViewer/assets/defaultSettingsView-WsZP88O6.js +266 -0
  76. package/lib/vite/traceViewer/defaultSettingsView.ConWv5KN.css +1 -0
  77. package/lib/vite/traceViewer/index.C4Y3Aw8n.css +1 -0
  78. package/lib/vite/traceViewer/index.C8xAeo93.js +2 -0
  79. package/lib/vite/traceViewer/index.html +6 -6
  80. package/lib/vite/traceViewer/manifest.webmanifest +16 -0
  81. package/lib/vite/traceViewer/snapshot.html +3 -3
  82. package/lib/vite/traceViewer/sw.bundle.js +3 -3
  83. package/lib/vite/traceViewer/{uiMode.B_CpmIpF.js → uiMode.BltraIJB.js} +3 -3
  84. package/lib/vite/traceViewer/uiMode.html +3 -3
  85. package/package.json +1 -1
  86. package/types/protocol.d.ts +213 -98
  87. package/types/types.d.ts +120 -117
  88. package/lib/client/accessibility.js +0 -49
  89. package/lib/server/accessibility.js +0 -69
  90. package/lib/server/chromium/crAccessibility.js +0 -263
  91. package/lib/server/firefox/ffAccessibility.js +0 -238
  92. package/lib/server/webkit/wkAccessibility.js +0 -237
  93. package/lib/server/webkit/wsl/webkit-wsl-transport-client.js +0 -74
  94. package/lib/server/webkit/wsl/webkit-wsl-transport-server.js +0 -113
  95. package/lib/vite/recorder/assets/codeMirrorModule-RJCXzfmE.js +0 -24
  96. package/lib/vite/traceViewer/assets/codeMirrorModule-rbQPefq7.js +0 -24
  97. package/lib/vite/traceViewer/assets/defaultSettingsView-CLbol9XR.js +0 -265
  98. package/lib/vite/traceViewer/defaultSettingsView.TQ8_7ybu.css +0 -1
  99. package/lib/vite/traceViewer/index.I8N9v4jT.css +0 -1
  100. package/lib/vite/traceViewer/index.zIVi6mN9.js +0 -2
@@ -4,7 +4,7 @@ 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
- - agent-base@6.0.2 (https://github.com/TooTallNate/node-agent-base)
7
+ - agent-base@7.1.4 (https://github.com/TooTallNate/proxy-agents)
8
8
  - balanced-match@1.0.2 (https://github.com/juliangruber/balanced-match)
9
9
  - brace-expansion@1.1.12 (https://github.com/juliangruber/brace-expansion)
10
10
  - buffer-crc32@0.2.13 (https://github.com/brianloveswords/buffer-crc32)
@@ -20,7 +20,7 @@ This project incorporates components from the projects listed below. The origina
20
20
  - end-of-stream@1.4.4 (https://github.com/mafintosh/end-of-stream)
21
21
  - get-stream@5.2.0 (https://github.com/sindresorhus/get-stream)
22
22
  - graceful-fs@4.2.10 (https://github.com/isaacs/node-graceful-fs)
23
- - https-proxy-agent@5.0.1 (https://github.com/TooTallNate/node-https-proxy-agent)
23
+ - https-proxy-agent@7.0.6 (https://github.com/TooTallNate/proxy-agents)
24
24
  - ip-address@9.0.5 (https://github.com/beaugunderson/ip-address)
25
25
  - is-docker@2.2.1 (https://github.com/sindresorhus/is-docker)
26
26
  - is-wsl@2.2.0 (https://github.com/sindresorhus/is-wsl)
@@ -40,7 +40,7 @@ This project incorporates components from the projects listed below. The origina
40
40
  - retry@0.12.0 (https://github.com/tim-kos/node-retry)
41
41
  - signal-exit@3.0.7 (https://github.com/tapjs/signal-exit)
42
42
  - smart-buffer@4.2.0 (https://github.com/JoshGlazebrook/smart-buffer)
43
- - socks-proxy-agent@6.1.1 (https://github.com/TooTallNate/node-socks-proxy-agent)
43
+ - socks-proxy-agent@8.0.5 (https://github.com/TooTallNate/proxy-agents)
44
44
  - socks@2.8.3 (https://github.com/JoshGlazebrook/socks)
45
45
  - sprintf-js@1.1.3 (https://github.com/alexei/sprintf.js)
46
46
  - wrappy@1.0.2 (https://github.com/npm/wrappy)
@@ -48,129 +48,13 @@ This project incorporates components from the projects listed below. The origina
48
48
  - yaml@2.6.0 (https://github.com/eemeli/yaml)
49
49
  - yauzl@3.2.0 (https://github.com/thejoshwolfe/yauzl)
50
50
  - yazl@2.5.1 (https://github.com/thejoshwolfe/yazl)
51
+ - zod@3.25.76 (https://github.com/colinhacks/zod)
51
52
 
52
- %% agent-base@6.0.2 NOTICES AND INFORMATION BEGIN HERE
53
+ %% agent-base@7.1.4 NOTICES AND INFORMATION BEGIN HERE
53
54
  =========================================
54
- agent-base
55
- ==========
56
- ### Turn a function into an [`http.Agent`][http.Agent] instance
57
- [![Build Status](https://github.com/TooTallNate/node-agent-base/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-agent-base/actions?workflow=Node+CI)
58
-
59
- This module provides an `http.Agent` generator. That is, you pass it an async
60
- callback function, and it returns a new `http.Agent` instance that will invoke the
61
- given callback function when sending outbound HTTP requests.
62
-
63
- #### Some subclasses:
64
-
65
- Here's some more interesting uses of `agent-base`.
66
- Send a pull request to list yours!
67
-
68
- * [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP endpoints
69
- * [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS endpoints
70
- * [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS
71
- * [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
72
-
73
-
74
- Installation
75
- ------------
76
-
77
- Install with `npm`:
78
-
79
- ``` bash
80
- $ npm install agent-base
81
- ```
82
-
83
-
84
- Example
85
- -------
86
-
87
- Here's a minimal example that creates a new `net.Socket` connection to the server
88
- for every HTTP request (i.e. the equivalent of `agent: false` option):
89
-
90
- ```js
91
- var net = require('net');
92
- var tls = require('tls');
93
- var url = require('url');
94
- var http = require('http');
95
- var agent = require('agent-base');
96
-
97
- var endpoint = 'http://nodejs.org/api/';
98
- var parsed = url.parse(endpoint);
99
-
100
- // This is the important part!
101
- parsed.agent = agent(function (req, opts) {
102
- var socket;
103
- // `secureEndpoint` is true when using the https module
104
- if (opts.secureEndpoint) {
105
- socket = tls.connect(opts);
106
- } else {
107
- socket = net.connect(opts);
108
- }
109
- return socket;
110
- });
111
-
112
- // Everything else works just like normal...
113
- http.get(parsed, function (res) {
114
- console.log('"response" event!', res.headers);
115
- res.pipe(process.stdout);
116
- });
117
- ```
118
-
119
- Returning a Promise or using an `async` function is also supported:
120
-
121
- ```js
122
- agent(async function (req, opts) {
123
- await sleep(1000);
124
- // etc…
125
- });
126
- ```
127
-
128
- Return another `http.Agent` instance to "pass through" the responsibility
129
- for that HTTP request to that agent:
130
-
131
- ```js
132
- agent(function (req, opts) {
133
- return opts.secureEndpoint ? https.globalAgent : http.globalAgent;
134
- });
135
- ```
136
-
137
-
138
- API
139
- ---
140
-
141
- ## Agent(Function callback[, Object options]) → [http.Agent][]
142
-
143
- Creates a base `http.Agent` that will execute the callback function `callback`
144
- for every HTTP request that it is used as the `agent` for. The callback function
145
- is responsible for creating a `stream.Duplex` instance of some kind that will be
146
- used as the underlying socket in the HTTP request.
147
-
148
- The `options` object accepts the following properties:
149
-
150
- * `timeout` - Number - Timeout for the `callback()` function in milliseconds. Defaults to Infinity (optional).
151
-
152
- The callback function should have the following signature:
153
-
154
- ### callback(http.ClientRequest req, Object options, Function cb) → undefined
155
-
156
- The ClientRequest `req` can be accessed to read request headers and
157
- and the path, etc. The `options` object contains the options passed
158
- to the `http.request()`/`https.request()` function call, and is formatted
159
- to be directly passed to `net.connect()`/`tls.connect()`, or however
160
- else you want a Socket to be created. Pass the created socket to
161
- the callback function `cb` once created, and the HTTP request will
162
- continue to proceed.
163
-
164
- If the `https` module is used to invoke the HTTP request, then the
165
- `secureEndpoint` property on `options` _will be set to `true`_.
166
-
167
-
168
- License
169
- -------
170
-
171
55
  (The MIT License)
172
56
 
173
- Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
57
+ Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
174
58
 
175
59
  Permission is hereby granted, free of charge, to any person obtaining
176
60
  a copy of this software and associated documentation files (the
@@ -190,14 +74,8 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
190
74
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
191
75
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
192
76
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
193
-
194
- [http-proxy-agent]: https://github.com/TooTallNate/node-http-proxy-agent
195
- [https-proxy-agent]: https://github.com/TooTallNate/node-https-proxy-agent
196
- [pac-proxy-agent]: https://github.com/TooTallNate/node-pac-proxy-agent
197
- [socks-proxy-agent]: https://github.com/TooTallNate/node-socks-proxy-agent
198
- [http.Agent]: https://nodejs.org/api/http.html#http_class_http_agent
199
77
  =========================================
200
- END OF agent-base@6.0.2 AND INFORMATION
78
+ END OF agent-base@7.1.4 AND INFORMATION
201
79
 
202
80
  %% balanced-match@1.0.2 NOTICES AND INFORMATION BEGIN HERE
203
81
  =========================================
@@ -565,124 +443,11 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
565
443
  =========================================
566
444
  END OF graceful-fs@4.2.10 AND INFORMATION
567
445
 
568
- %% https-proxy-agent@5.0.1 NOTICES AND INFORMATION BEGIN HERE
446
+ %% https-proxy-agent@7.0.6 NOTICES AND INFORMATION BEGIN HERE
569
447
  =========================================
570
- https-proxy-agent
571
- ================
572
- ### An HTTP(s) proxy `http.Agent` implementation for HTTPS
573
- [![Build Status](https://github.com/TooTallNate/node-https-proxy-agent/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-https-proxy-agent/actions?workflow=Node+CI)
574
-
575
- This module provides an `http.Agent` implementation that connects to a specified
576
- HTTP or HTTPS proxy server, and can be used with the built-in `https` module.
577
-
578
- Specifically, this `Agent` implementation connects to an intermediary "proxy"
579
- server and issues the [CONNECT HTTP method][CONNECT], which tells the proxy to
580
- open a direct TCP connection to the destination server.
581
-
582
- Since this agent implements the CONNECT HTTP method, it also works with other
583
- protocols that use this method when connecting over proxies (i.e. WebSockets).
584
- See the "Examples" section below for more.
585
-
586
-
587
- Installation
588
- ------------
589
-
590
- Install with `npm`:
591
-
592
- ``` bash
593
- $ npm install https-proxy-agent
594
- ```
595
-
596
-
597
- Examples
598
- --------
599
-
600
- #### `https` module example
601
-
602
- ``` js
603
- var url = require('url');
604
- var https = require('https');
605
- var HttpsProxyAgent = require('https-proxy-agent');
606
-
607
- // HTTP/HTTPS proxy to connect to
608
- var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
609
- console.log('using proxy server %j', proxy);
610
-
611
- // HTTPS endpoint for the proxy to connect to
612
- var endpoint = process.argv[2] || 'https://graph.facebook.com/tootallnate';
613
- console.log('attempting to GET %j', endpoint);
614
- var options = url.parse(endpoint);
615
-
616
- // create an instance of the `HttpsProxyAgent` class with the proxy server information
617
- var agent = new HttpsProxyAgent(proxy);
618
- options.agent = agent;
619
-
620
- https.get(options, function (res) {
621
- console.log('"response" event!', res.headers);
622
- res.pipe(process.stdout);
623
- });
624
- ```
625
-
626
- #### `ws` WebSocket connection example
627
-
628
- ``` js
629
- var url = require('url');
630
- var WebSocket = require('ws');
631
- var HttpsProxyAgent = require('https-proxy-agent');
632
-
633
- // HTTP/HTTPS proxy to connect to
634
- var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
635
- console.log('using proxy server %j', proxy);
636
-
637
- // WebSocket endpoint for the proxy to connect to
638
- var endpoint = process.argv[2] || 'ws://echo.websocket.org';
639
- var parsed = url.parse(endpoint);
640
- console.log('attempting to connect to WebSocket %j', endpoint);
641
-
642
- // create an instance of the `HttpsProxyAgent` class with the proxy server information
643
- var options = url.parse(proxy);
644
-
645
- var agent = new HttpsProxyAgent(options);
646
-
647
- // finally, initiate the WebSocket connection
648
- var socket = new WebSocket(endpoint, { agent: agent });
649
-
650
- socket.on('open', function () {
651
- console.log('"open" event!');
652
- socket.send('hello world');
653
- });
654
-
655
- socket.on('message', function (data, flags) {
656
- console.log('"message" event! %j %j', data, flags);
657
- socket.close();
658
- });
659
- ```
660
-
661
- API
662
- ---
663
-
664
- ### new HttpsProxyAgent(Object options)
665
-
666
- The `HttpsProxyAgent` class implements an `http.Agent` subclass that connects
667
- to the specified "HTTP(s) proxy server" in order to proxy HTTPS and/or WebSocket
668
- requests. This is achieved by using the [HTTP `CONNECT` method][CONNECT].
669
-
670
- The `options` argument may either be a string URI of the proxy server to use, or an
671
- "options" object with more specific properties:
672
-
673
- * `host` - String - Proxy host to connect to (may use `hostname` as well). Required.
674
- * `port` - Number - Proxy port to connect to. Required.
675
- * `protocol` - String - If `https:`, then use TLS to connect to the proxy.
676
- * `headers` - Object - Additional HTTP headers to be sent on the HTTP CONNECT method.
677
- * Any other options given are passed to the `net.connect()`/`tls.connect()` functions.
678
-
679
-
680
- License
681
- -------
682
-
683
448
  (The MIT License)
684
449
 
685
- Copyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
450
+ Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
686
451
 
687
452
  Permission is hereby granted, free of charge, to any person obtaining
688
453
  a copy of this software and associated documentation files (the
@@ -702,10 +467,8 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
702
467
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
703
468
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
704
469
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
705
-
706
- [CONNECT]: http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling
707
470
  =========================================
708
- END OF https-proxy-agent@5.0.1 AND INFORMATION
471
+ END OF https-proxy-agent@7.0.6 AND INFORMATION
709
472
 
710
473
  %% ip-address@9.0.5 NOTICES AND INFORMATION BEGIN HERE
711
474
  =========================================
@@ -1169,141 +932,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1169
932
  =========================================
1170
933
  END OF smart-buffer@4.2.0 AND INFORMATION
1171
934
 
1172
- %% socks-proxy-agent@6.1.1 NOTICES AND INFORMATION BEGIN HERE
935
+ %% socks-proxy-agent@8.0.5 NOTICES AND INFORMATION BEGIN HERE
1173
936
  =========================================
1174
- socks-proxy-agent
1175
- ================
1176
- ### A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
1177
- [![Build Status](https://github.com/TooTallNate/node-socks-proxy-agent/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-socks-proxy-agent/actions?workflow=Node+CI)
1178
-
1179
- This module provides an `http.Agent` implementation that connects to a
1180
- specified SOCKS proxy server, and can be used with the built-in `http`
1181
- and `https` modules.
1182
-
1183
- It can also be used in conjunction with the `ws` module to establish a WebSocket
1184
- connection over a SOCKS proxy. See the "Examples" section below.
1185
-
1186
- Installation
1187
- ------------
1188
-
1189
- Install with `npm`:
1190
-
1191
- ``` bash
1192
- $ npm install socks-proxy-agent
1193
- ```
1194
-
1195
-
1196
- Examples
1197
- --------
1198
-
1199
- #### TypeScript example
1200
-
1201
- ```ts
1202
- import https from 'https';
1203
- import { SocksProxyAgent } from 'socks-proxy-agent';
1204
-
1205
- const info = {
1206
- host: 'br41.nordvpn.com',
1207
- userId: 'your-name@gmail.com',
1208
- password: 'abcdef12345124'
1209
- };
1210
- const agent = new SocksProxyAgent(info);
1211
-
1212
- https.get('https://jsonip.org', { agent }, (res) => {
1213
- console.log(res.headers);
1214
- res.pipe(process.stdout);
1215
- });
1216
- ```
1217
-
1218
- #### `http` module example
1219
-
1220
- ```js
1221
- var url = require('url');
1222
- var http = require('http');
1223
- var SocksProxyAgent = require('socks-proxy-agent');
1224
-
1225
- // SOCKS proxy to connect to
1226
- var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
1227
- console.log('using proxy server %j', proxy);
1228
-
1229
- // HTTP endpoint for the proxy to connect to
1230
- var endpoint = process.argv[2] || 'http://nodejs.org/api/';
1231
- console.log('attempting to GET %j', endpoint);
1232
- var opts = url.parse(endpoint);
1233
-
1234
- // create an instance of the `SocksProxyAgent` class with the proxy server information
1235
- var agent = new SocksProxyAgent(proxy);
1236
- opts.agent = agent;
1237
-
1238
- http.get(opts, function (res) {
1239
- console.log('"response" event!', res.headers);
1240
- res.pipe(process.stdout);
1241
- });
1242
- ```
1243
-
1244
- #### `https` module example
1245
-
1246
- ```js
1247
- var url = require('url');
1248
- var https = require('https');
1249
- var SocksProxyAgent = require('socks-proxy-agent');
1250
-
1251
- // SOCKS proxy to connect to
1252
- var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
1253
- console.log('using proxy server %j', proxy);
1254
-
1255
- // HTTP endpoint for the proxy to connect to
1256
- var endpoint = process.argv[2] || 'https://encrypted.google.com/';
1257
- console.log('attempting to GET %j', endpoint);
1258
- var opts = url.parse(endpoint);
1259
-
1260
- // create an instance of the `SocksProxyAgent` class with the proxy server information
1261
- var agent = new SocksProxyAgent(proxy);
1262
- opts.agent = agent;
1263
-
1264
- https.get(opts, function (res) {
1265
- console.log('"response" event!', res.headers);
1266
- res.pipe(process.stdout);
1267
- });
1268
- ```
1269
-
1270
- #### `ws` WebSocket connection example
1271
-
1272
- ``` js
1273
- var WebSocket = require('ws');
1274
- var SocksProxyAgent = require('socks-proxy-agent');
1275
-
1276
- // SOCKS proxy to connect to
1277
- var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
1278
- console.log('using proxy server %j', proxy);
1279
-
1280
- // WebSocket endpoint for the proxy to connect to
1281
- var endpoint = process.argv[2] || 'ws://echo.websocket.org';
1282
- console.log('attempting to connect to WebSocket %j', endpoint);
1283
-
1284
- // create an instance of the `SocksProxyAgent` class with the proxy server information
1285
- var agent = new SocksProxyAgent(proxy);
1286
-
1287
- // initiate the WebSocket connection
1288
- var socket = new WebSocket(endpoint, { agent: agent });
1289
-
1290
- socket.on('open', function () {
1291
- console.log('"open" event!');
1292
- socket.send('hello world');
1293
- });
1294
-
1295
- socket.on('message', function (data, flags) {
1296
- console.log('"message" event! %j %j', data, flags);
1297
- socket.close();
1298
- });
1299
- ```
1300
-
1301
- License
1302
- -------
1303
-
1304
937
  (The MIT License)
1305
938
 
1306
- Copyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
939
+ Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
1307
940
 
1308
941
  Permission is hereby granted, free of charge, to any person obtaining
1309
942
  a copy of this software and associated documentation files (the
@@ -1324,7 +957,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1324
957
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1325
958
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1326
959
  =========================================
1327
- END OF socks-proxy-agent@6.1.1 AND INFORMATION
960
+ END OF socks-proxy-agent@8.0.5 AND INFORMATION
1328
961
 
1329
962
  %% socks@2.8.3 NOTICES AND INFORMATION BEGIN HERE
1330
963
  =========================================
@@ -1495,8 +1128,34 @@ SOFTWARE.
1495
1128
  =========================================
1496
1129
  END OF yazl@2.5.1 AND INFORMATION
1497
1130
 
1131
+ %% zod@3.25.76 NOTICES AND INFORMATION BEGIN HERE
1132
+ =========================================
1133
+ MIT License
1134
+
1135
+ Copyright (c) 2025 Colin McDonnell
1136
+
1137
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1138
+ of this software and associated documentation files (the "Software"), to deal
1139
+ in the Software without restriction, including without limitation the rights
1140
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1141
+ copies of the Software, and to permit persons to whom the Software is
1142
+ furnished to do so, subject to the following conditions:
1143
+
1144
+ The above copyright notice and this permission notice shall be included in all
1145
+ copies or substantial portions of the Software.
1146
+
1147
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1148
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1149
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1150
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1151
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1152
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1153
+ SOFTWARE.
1154
+ =========================================
1155
+ END OF zod@3.25.76 AND INFORMATION
1156
+
1498
1157
  SUMMARY BEGIN HERE
1499
1158
  =========================================
1500
- Total Packages: 44
1159
+ Total Packages: 45
1501
1160
  =========================================
1502
1161
  END OF SUMMARY
@@ -1,7 +1,5 @@
1
1
  $ErrorActionPreference = 'Stop'
2
2
 
3
- # WebKit WSL Installation Script
4
- # See webkit-wsl-transport-server.ts for the complete architecture diagram.
5
3
  # This script sets up a WSL distribution that will be used to run WebKit.
6
4
 
7
5
  $Distribution = "playwright"
@@ -25,9 +23,9 @@ if [ ! -f "/home/$Username/node/bin/node" ]; then
25
23
  mkdir -p /home/$Username/node
26
24
  curl -fsSL https://nodejs.org/dist/v22.17.0/node-v22.17.0-linux-x64.tar.xz -o /home/$Username/node/node-v22.17.0-linux-x64.tar.xz
27
25
  tar -xJf /home/$Username/node/node-v22.17.0-linux-x64.tar.xz -C /home/$Username/node --strip-components=1
26
+ sudo -u $Username echo 'export PATH=/home/$Username/node/bin:\`$PATH' >> /home/$Username/.profile
28
27
  fi
29
28
  /home/$Username/node/bin/node cli.js install-deps webkit
30
- cp lib/server/webkit/wsl/webkit-wsl-transport-client.js /home/$Username/
31
29
  sudo -u $Username PLAYWRIGHT_SKIP_BROWSER_GC=1 /home/$Username/node/bin/node cli.js install webkit
32
30
  "@ -replace "\r\n", "`n"
33
31
 
package/browsers.json CHANGED
@@ -3,43 +3,43 @@
3
3
  "browsers": [
4
4
  {
5
5
  "name": "chromium",
6
- "revision": "1194",
6
+ "revision": "1200",
7
7
  "installByDefault": true,
8
- "browserVersion": "141.0.7390.37"
8
+ "browserVersion": "143.0.7499.4"
9
9
  },
10
10
  {
11
11
  "name": "chromium-headless-shell",
12
- "revision": "1194",
12
+ "revision": "1200",
13
13
  "installByDefault": true,
14
- "browserVersion": "141.0.7390.37"
14
+ "browserVersion": "143.0.7499.4"
15
15
  },
16
16
  {
17
17
  "name": "chromium-tip-of-tree",
18
- "revision": "1371",
18
+ "revision": "1380",
19
19
  "installByDefault": false,
20
- "browserVersion": "142.0.7430.0"
20
+ "browserVersion": "143.0.7488.0"
21
21
  },
22
22
  {
23
23
  "name": "chromium-tip-of-tree-headless-shell",
24
- "revision": "1371",
24
+ "revision": "1380",
25
25
  "installByDefault": false,
26
- "browserVersion": "142.0.7430.0"
26
+ "browserVersion": "143.0.7488.0"
27
27
  },
28
28
  {
29
29
  "name": "firefox",
30
- "revision": "1495",
30
+ "revision": "1497",
31
31
  "installByDefault": true,
32
- "browserVersion": "142.0.1"
32
+ "browserVersion": "144.0.2"
33
33
  },
34
34
  {
35
35
  "name": "firefox-beta",
36
- "revision": "1490",
36
+ "revision": "1493",
37
37
  "installByDefault": false,
38
- "browserVersion": "143.0b10"
38
+ "browserVersion": "145.0b10"
39
39
  },
40
40
  {
41
41
  "name": "webkit",
42
- "revision": "2215",
42
+ "revision": "2227",
43
43
  "installByDefault": true,
44
44
  "revisionOverrides": {
45
45
  "debian11-x64": "2105",