Skip to content

Commit

Permalink
tools: update github_reporter to 1.7.0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nodejs-github-bot authored and marco-ippolito committed May 3, 2024
1 parent fd1489a commit d406976
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 9 additions & 11 deletions tools/github_reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1956,7 +1956,7 @@ var require_Dicer = __commonJS({
if (this._headerFirst && this._isPreamble) {
if (!this._part) {
this._part = new PartStream(this._partOpts);
if (this._events.preamble) {
if (this.listenerCount("preamble") !== 0) {
this.emit("preamble", this._part);
} else {
this._ignore();
Expand Down Expand Up @@ -2019,7 +2019,7 @@ var require_Dicer = __commonJS({
}
}
if (this._dashes === 2) {
if (start + i < end && this._events.trailer) {
if (start + i < end && this.listenerCount("trailer") !== 0) {
this.emit("trailer", data.slice(start + i, end));
}
this.reset();
Expand All @@ -2042,9 +2042,9 @@ var require_Dicer = __commonJS({
this._part._read = function(n) {
self._unpause();
};
if (this._isPreamble && this._events.preamble) {
if (this._isPreamble && this.listenerCount("preamble") !== 0) {
this.emit("preamble", this._part);
} else if (this._isPreamble !== true && this._events.part) {
} else if (this._isPreamble !== true && this.listenerCount("part") !== 0) {
this.emit("part", this._part);
} else {
this._ignore();
Expand Down Expand Up @@ -2206,7 +2206,7 @@ var require_decodeText = __commonJS({
if (textDecoders.has(exports2.toString())) {
try {
return textDecoders.get(exports2).decode(data);
} catch (e) {
} catch {
}
}
return typeof data === "string" ? data : data.toString();
Expand Down Expand Up @@ -2989,7 +2989,7 @@ var require_multipart = __commonJS({
return skipPart(part);
}
++nfiles;
if (!boy._events.file) {
if (boy.listenerCount("file") === 0) {
self.parser._ignore();
return;
}
Expand Down Expand Up @@ -13692,6 +13692,7 @@ var require_fetch = __commonJS({
}
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
request.headersList.delete("authorization");
request.headersList.delete("proxy-authorization", true);
request.headersList.delete("cookie");
request.headersList.delete("host");
}
Expand Down Expand Up @@ -17948,7 +17949,7 @@ var require_lib = __commonJS({
if (this._keepAlive && useProxy) {
agent = this._proxyAgent;
}
if (this._keepAlive && !useProxy) {
if (!useProxy) {
agent = this._agent;
}
if (agent) {
Expand Down Expand Up @@ -17977,14 +17978,11 @@ var require_lib = __commonJS({
agent = tunnelAgent(agentOptions);
this._proxyAgent = agent;
}
if (this._keepAlive && !agent) {
if (!agent) {
const options = { keepAlive: this._keepAlive, maxSockets };
agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
this._agent = agent;
}
if (!agent) {
agent = usingSsl ? https.globalAgent : http.globalAgent;
}
if (usingSsl && this._ignoreSslError) {
agent.options = Object.assign(agent.options || {}, {
rejectUnauthorized: false
Expand Down
2 changes: 1 addition & 1 deletion tools/github_reporter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reporters/github",
"version": "1.6.0",
"version": "1.7.0",
"description": "A github actions reporter for `node:test`",
"type": "commonjs",
"keywords": [
Expand Down

0 comments on commit d406976

Please sign in to comment.