Skip to content

Commit 03f3d2e

Browse files
committed
1 parent e0163c6 commit 03f3d2e

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

node_modules/@npmcli/agent/node_modules/https-proxy-agent/dist/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ class HttpsProxyAgent extends agent_base_1.Agent {
8181
let socket;
8282
if (proxy.protocol === 'https:') {
8383
debug('Creating `tls.Socket`: %o', this.connectOpts);
84-
socket = tls.connect(this.connectOpts);
84+
const servername = this.connectOpts.servername || this.connectOpts.host;
85+
socket = tls.connect({
86+
...this.connectOpts,
87+
servername: servername && net.isIP(servername) ? undefined : servername
88+
});
8589
}
8690
else {
8791
debug('Creating `net.Socket`: %o', this.connectOpts);

node_modules/@npmcli/agent/node_modules/https-proxy-agent/dist/parse-proxy-response.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ function parseProxyResponse(socket) {
4747
read();
4848
return;
4949
}
50-
const headerParts = buffered.slice(0, endOfHeaders).toString('ascii').split('\r\n');
50+
const headerParts = buffered
51+
.slice(0, endOfHeaders)
52+
.toString('ascii')
53+
.split('\r\n');
5154
const firstLine = headerParts.shift();
5255
if (!firstLine) {
5356
socket.destroy();

node_modules/@npmcli/agent/node_modules/https-proxy-agent/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "https-proxy-agent",
3-
"version": "7.0.1",
3+
"version": "7.0.2",
44
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

package-lock.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2420,9 +2420,9 @@
24202420
}
24212421
},
24222422
"node_modules/@npmcli/agent/node_modules/https-proxy-agent": {
2423-
"version": "7.0.1",
2424-
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz",
2425-
"integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==",
2423+
"version": "7.0.2",
2424+
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz",
2425+
"integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==",
24262426
"inBundle": true,
24272427
"dependencies": {
24282428
"agent-base": "^7.0.2",

0 commit comments

Comments
 (0)