Skip to content

Commit d406976

Browse files
nodejs-github-botmarco-ippolito
authored andcommittedMay 3, 2024
tools: update github_reporter to 1.7.0
PR-URL: #52121 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent fd1489a commit d406976

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed
 

‎tools/github_reporter/index.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ var require_Dicer = __commonJS({
19561956
if (this._headerFirst && this._isPreamble) {
19571957
if (!this._part) {
19581958
this._part = new PartStream(this._partOpts);
1959-
if (this._events.preamble) {
1959+
if (this.listenerCount("preamble") !== 0) {
19601960
this.emit("preamble", this._part);
19611961
} else {
19621962
this._ignore();
@@ -2019,7 +2019,7 @@ var require_Dicer = __commonJS({
20192019
}
20202020
}
20212021
if (this._dashes === 2) {
2022-
if (start + i < end && this._events.trailer) {
2022+
if (start + i < end && this.listenerCount("trailer") !== 0) {
20232023
this.emit("trailer", data.slice(start + i, end));
20242024
}
20252025
this.reset();
@@ -2042,9 +2042,9 @@ var require_Dicer = __commonJS({
20422042
this._part._read = function(n) {
20432043
self._unpause();
20442044
};
2045-
if (this._isPreamble && this._events.preamble) {
2045+
if (this._isPreamble && this.listenerCount("preamble") !== 0) {
20462046
this.emit("preamble", this._part);
2047-
} else if (this._isPreamble !== true && this._events.part) {
2047+
} else if (this._isPreamble !== true && this.listenerCount("part") !== 0) {
20482048
this.emit("part", this._part);
20492049
} else {
20502050
this._ignore();
@@ -2206,7 +2206,7 @@ var require_decodeText = __commonJS({
22062206
if (textDecoders.has(exports2.toString())) {
22072207
try {
22082208
return textDecoders.get(exports2).decode(data);
2209-
} catch (e) {
2209+
} catch {
22102210
}
22112211
}
22122212
return typeof data === "string" ? data : data.toString();
@@ -2989,7 +2989,7 @@ var require_multipart = __commonJS({
29892989
return skipPart(part);
29902990
}
29912991
++nfiles;
2992-
if (!boy._events.file) {
2992+
if (boy.listenerCount("file") === 0) {
29932993
self.parser._ignore();
29942994
return;
29952995
}
@@ -13692,6 +13692,7 @@ var require_fetch = __commonJS({
1369213692
}
1369313693
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
1369413694
request.headersList.delete("authorization");
13695+
request.headersList.delete("proxy-authorization", true);
1369513696
request.headersList.delete("cookie");
1369613697
request.headersList.delete("host");
1369713698
}
@@ -17948,7 +17949,7 @@ var require_lib = __commonJS({
1794817949
if (this._keepAlive && useProxy) {
1794917950
agent = this._proxyAgent;
1795017951
}
17951-
if (this._keepAlive && !useProxy) {
17952+
if (!useProxy) {
1795217953
agent = this._agent;
1795317954
}
1795417955
if (agent) {
@@ -17977,14 +17978,11 @@ var require_lib = __commonJS({
1797717978
agent = tunnelAgent(agentOptions);
1797817979
this._proxyAgent = agent;
1797917980
}
17980-
if (this._keepAlive && !agent) {
17981+
if (!agent) {
1798117982
const options = { keepAlive: this._keepAlive, maxSockets };
1798217983
agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
1798317984
this._agent = agent;
1798417985
}
17985-
if (!agent) {
17986-
agent = usingSsl ? https.globalAgent : http.globalAgent;
17987-
}
1798817986
if (usingSsl && this._ignoreSslError) {
1798917987
agent.options = Object.assign(agent.options || {}, {
1799017988
rejectUnauthorized: false

‎tools/github_reporter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reporters/github",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"description": "A github actions reporter for `node:test`",
55
"type": "commonjs",
66
"keywords": [

0 commit comments

Comments
 (0)
Please sign in to comment.