| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1956,7 +1956,7 @@ var require_Dicer = __commonJS({ | |||
| 1956 | 1956 | if (this._headerFirst && this._isPreamble) { | |
| 1957 | 1957 | if (!this._part) { | |
| 1958 | 1958 | this._part = new PartStream(this._partOpts); | |
| 1959 | - if (this._events.preamble) { | ||
| 1959 | + if (this.listenerCount("preamble") !== 0) { | ||
| 1960 | 1960 | this.emit("preamble", this._part); | |
| 1961 | 1961 | } else { | |
| 1962 | 1962 | this._ignore(); | |
@@ -2019,7 +2019,7 @@ var require_Dicer = __commonJS({ | |||
| 2019 | 2019 | } | |
| 2020 | 2020 | } | |
| 2021 | 2021 | if (this._dashes === 2) { | |
| 2022 | - if (start + i < end && this._events.trailer) { | ||
| 2022 | + if (start + i < end && this.listenerCount("trailer") !== 0) { | ||
| 2023 | 2023 | this.emit("trailer", data.slice(start + i, end)); | |
| 2024 | 2024 | } | |
| 2025 | 2025 | this.reset(); | |
@@ -2042,9 +2042,9 @@ var require_Dicer = __commonJS({ | |||
| 2042 | 2042 | this._part._read = function(n) { | |
| 2043 | 2043 | self._unpause(); | |
| 2044 | 2044 | }; | |
| 2045 | - if (this._isPreamble && this._events.preamble) { | ||
| 2045 | + if (this._isPreamble && this.listenerCount("preamble") !== 0) { | ||
| 2046 | 2046 | this.emit("preamble", this._part); | |
| 2047 | - } else if (this._isPreamble !== true && this._events.part) { | ||
| 2047 | + } else if (this._isPreamble !== true && this.listenerCount("part") !== 0) { | ||
| 2048 | 2048 | this.emit("part", this._part); | |
| 2049 | 2049 | } else { | |
| 2050 | 2050 | this._ignore(); | |
@@ -2206,7 +2206,7 @@ var require_decodeText = __commonJS({ | |||
| 2206 | 2206 | if (textDecoders.has(exports2.toString())) { | |
| 2207 | 2207 | try { | |
| 2208 | 2208 | return textDecoders.get(exports2).decode(data); | |
| 2209 | - } catch (e) { | ||
| 2209 | + } catch { | ||
| 2210 | 2210 | } | |
| 2211 | 2211 | } | |
| 2212 | 2212 | return typeof data === "string" ? data : data.toString(); | |
@@ -2989,7 +2989,7 @@ var require_multipart = __commonJS({ | |||
| 2989 | 2989 | return skipPart(part); | |
| 2990 | 2990 | } | |
| 2991 | 2991 | ++nfiles; | |
| 2992 | - if (!boy._events.file) { | ||
| 2992 | + if (boy.listenerCount("file") === 0) { | ||
| 2993 | 2993 | self.parser._ignore(); | |
| 2994 | 2994 | return; | |
| 2995 | 2995 | } | |
@@ -13692,6 +13692,7 @@ var require_fetch = __commonJS({ | |||
| 13692 | 13692 | } | |
| 13693 | 13693 | if (!sameOrigin(requestCurrentURL(request), locationURL)) { | |
| 13694 | 13694 | request.headersList.delete("authorization"); | |
| 13695 | + request.headersList.delete("proxy-authorization", true); | ||
| 13695 | 13696 | request.headersList.delete("cookie"); | |
| 13696 | 13697 | request.headersList.delete("host"); | |
| 13697 | 13698 | } | |
@@ -17948,7 +17949,7 @@ var require_lib = __commonJS({ | |||
| 17948 | 17949 | if (this._keepAlive && useProxy) { | |
| 17949 | 17950 | agent = this._proxyAgent; | |
| 17950 | 17951 | } | |
| 17951 | - if (this._keepAlive && !useProxy) { | ||
| 17952 | + if (!useProxy) { | ||
| 17952 | 17953 | agent = this._agent; | |
| 17953 | 17954 | } | |
| 17954 | 17955 | if (agent) { | |
@@ -17977,14 +17978,11 @@ var require_lib = __commonJS({ | |||
| 17977 | 17978 | agent = tunnelAgent(agentOptions); | |
| 17978 | 17979 | this._proxyAgent = agent; | |
| 17979 | 17980 | } | |
| 17980 | - if (this._keepAlive && !agent) { | ||
| 17981 | + if (!agent) { | ||
| 17981 | 17982 | const options = { keepAlive: this._keepAlive, maxSockets }; | |
| 17982 | 17983 | agent = usingSsl ? new https.Agent(options) : new http.Agent(options); | |
| 17983 | 17984 | this._agent = agent; | |
| 17984 | 17985 | } | |
| 17985 | - if (!agent) { | ||
| 17986 | - agent = usingSsl ? https.globalAgent : http.globalAgent; | ||
| 17987 | - } | ||
| 17988 | 17986 | if (usingSsl && this._ignoreSslError) { | |
| 17989 | 17987 | agent.options = Object.assign(agent.options || {}, { | |
| 17990 | 17988 | rejectUnauthorized: false | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "@reporters/github", | |
| 3 | - "version": "1.6.0", | ||
| 3 | + "version": "1.7.0", | ||
| 4 | 4 | "description": "A github actions reporter for `node:test`", | |
| 5 | 5 | "type": "commonjs", | |
| 6 | 6 | "keywords": [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments