Skip to content

Commit 9c3a29f

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 13aaa56 + 165c29a commit 9c3a29f

File tree

1 file changed

+36
-35
lines changed

1 file changed

+36
-35
lines changed

dist/index.js

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,6 +1882,7 @@ class Context {
18821882
this.action = process.env.GITHUB_ACTION;
18831883
this.actor = process.env.GITHUB_ACTOR;
18841884
this.job = process.env.GITHUB_JOB;
1885+
this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10);
18851886
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
18861887
this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
18871888
this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
@@ -2212,19 +2213,19 @@ var __copyProps = (to, from, except, desc) => {
22122213
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22132214

22142215
// pkg/dist-src/index.js
2215-
var dist_src_exports = {};
2216-
__export(dist_src_exports, {
2216+
var index_exports = {};
2217+
__export(index_exports, {
22172218
Octokit: () => Octokit
22182219
});
2219-
module.exports = __toCommonJS(dist_src_exports);
2220+
module.exports = __toCommonJS(index_exports);
22202221
var import_universal_user_agent = __nccwpck_require__(5030);
22212222
var import_before_after_hook = __nccwpck_require__(7041);
22222223
var import_request = __nccwpck_require__(6234);
22232224
var import_graphql = __nccwpck_require__(6422);
22242225
var import_auth_token = __nccwpck_require__(673);
22252226

22262227
// pkg/dist-src/version.js
2227-
var VERSION = "5.2.0";
2228+
var VERSION = "5.2.1";
22282229

22292230
// pkg/dist-src/index.js
22302231
var noop = () => {
@@ -13008,7 +13009,7 @@ module.exports = {
1300813009

1300913010

1301013011
const { parseSetCookie } = __nccwpck_require__(4408)
13011-
const { stringify, getHeadersList } = __nccwpck_require__(3121)
13012+
const { stringify } = __nccwpck_require__(3121)
1301213013
const { webidl } = __nccwpck_require__(1744)
1301313014
const { Headers } = __nccwpck_require__(554)
1301413015

@@ -13084,14 +13085,13 @@ function getSetCookies (headers) {
1308413085

1308513086
webidl.brandCheck(headers, Headers, { strict: false })
1308613087

13087-
const cookies = getHeadersList(headers).cookies
13088+
const cookies = headers.getSetCookie()
1308813089

1308913090
if (!cookies) {
1309013091
return []
1309113092
}
1309213093

13093-
// In older versions of undici, cookies is a list of name:value.
13094-
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
13094+
return cookies.map((pair) => parseSetCookie(pair))
1309513095
}
1309613096

1309713097
/**
@@ -13519,14 +13519,15 @@ module.exports = {
1351913519
/***/ }),
1352013520

1352113521
/***/ 3121:
13522-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
13522+
/***/ ((module) => {
1352313523

1352413524
"use strict";
1352513525

1352613526

13527-
const assert = __nccwpck_require__(9491)
13528-
const { kHeadersList } = __nccwpck_require__(2785)
13529-
13527+
/**
13528+
* @param {string} value
13529+
* @returns {boolean}
13530+
*/
1353013531
function isCTLExcludingHtab (value) {
1353113532
if (value.length === 0) {
1353213533
return false
@@ -13787,31 +13788,13 @@ function stringify (cookie) {
1378713788
return out.join('; ')
1378813789
}
1378913790

13790-
let kHeadersListNode
13791-
13792-
function getHeadersList (headers) {
13793-
if (headers[kHeadersList]) {
13794-
return headers[kHeadersList]
13795-
}
13796-
13797-
if (!kHeadersListNode) {
13798-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
13799-
(symbol) => symbol.description === 'headers list'
13800-
)
13801-
13802-
assert(kHeadersListNode, 'Headers cannot be parsed')
13803-
}
13804-
13805-
const headersList = headers[kHeadersListNode]
13806-
assert(headersList)
13807-
13808-
return headersList
13809-
}
13810-
1381113791
module.exports = {
1381213792
isCTLExcludingHtab,
13813-
stringify,
13814-
getHeadersList
13793+
validateCookieName,
13794+
validateCookiePath,
13795+
validateCookieValue,
13796+
toIMFDate,
13797+
stringify
1381513798
}
1381613799

1381713800

@@ -17815,6 +17798,7 @@ const {
1781517798
isValidHeaderName,
1781617799
isValidHeaderValue
1781717800
} = __nccwpck_require__(2538)
17801+
const util = __nccwpck_require__(3837)
1781817802
const { webidl } = __nccwpck_require__(1744)
1781917803
const assert = __nccwpck_require__(9491)
1782017804

@@ -18368,6 +18352,9 @@ Object.defineProperties(Headers.prototype, {
1836818352
[Symbol.toStringTag]: {
1836918353
value: 'Headers',
1837018354
configurable: true
18355+
},
18356+
[util.inspect.custom]: {
18357+
enumerable: false
1837118358
}
1837218359
})
1837318360

@@ -27544,6 +27531,20 @@ class Pool extends PoolBase {
2754427531
? { ...options.interceptors }
2754527532
: undefined
2754627533
this[kFactory] = factory
27534+
27535+
this.on('connectionError', (origin, targets, error) => {
27536+
// If a connection error occurs, we remove the client from the pool,
27537+
// and emit a connectionError event. They will not be re-used.
27538+
// Fixes https://github.com/nodejs/undici/issues/3895
27539+
for (const target of targets) {
27540+
// Do not use kRemoveClient here, as it will close the client,
27541+
// but the client cannot be closed in this state.
27542+
const idx = this[kClients].indexOf(target)
27543+
if (idx !== -1) {
27544+
this[kClients].splice(idx, 1)
27545+
}
27546+
}
27547+
})
2754727548
}
2754827549

2754927550
[kGetDispatcher] () {

0 commit comments

Comments
 (0)