Skip to content

Commit 1ffd170

Browse files
authored
Update distribution (#1958)
1 parent e803838 commit 1ffd170

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

dist/index.js

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,6 +2073,7 @@ class Context {
20732073
this.action = process.env.GITHUB_ACTION;
20742074
this.actor = process.env.GITHUB_ACTOR;
20752075
this.job = process.env.GITHUB_JOB;
2076+
this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10);
20762077
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
20772078
this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
20782079
this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
@@ -13200,7 +13201,7 @@ module.exports = {
1320013201

1320113202

1320213203
const { parseSetCookie } = __nccwpck_require__(8915)
13203-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
13204+
const { stringify } = __nccwpck_require__(3834)
1320413205
const { webidl } = __nccwpck_require__(4222)
1320513206
const { Headers } = __nccwpck_require__(6349)
1320613207

@@ -13276,14 +13277,13 @@ function getSetCookies (headers) {
1327613277

1327713278
webidl.brandCheck(headers, Headers, { strict: false })
1327813279

13279-
const cookies = getHeadersList(headers).cookies
13280+
const cookies = headers.getSetCookie()
1328013281

1328113282
if (!cookies) {
1328213283
return []
1328313284
}
1328413285

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

1328913289
/**
@@ -13711,14 +13711,15 @@ module.exports = {
1371113711
/***/ }),
1371213712

1371313713
/***/ 3834:
13714-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
13714+
/***/ ((module) => {
1371513715

1371613716
"use strict";
1371713717

1371813718

13719-
const assert = __nccwpck_require__(2613)
13720-
const { kHeadersList } = __nccwpck_require__(6443)
13721-
13719+
/**
13720+
* @param {string} value
13721+
* @returns {boolean}
13722+
*/
1372213723
function isCTLExcludingHtab (value) {
1372313724
if (value.length === 0) {
1372413725
return false
@@ -13979,31 +13980,13 @@ function stringify (cookie) {
1397913980
return out.join('; ')
1398013981
}
1398113982

13982-
let kHeadersListNode
13983-
13984-
function getHeadersList (headers) {
13985-
if (headers[kHeadersList]) {
13986-
return headers[kHeadersList]
13987-
}
13988-
13989-
if (!kHeadersListNode) {
13990-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
13991-
(symbol) => symbol.description === 'headers list'
13992-
)
13993-
13994-
assert(kHeadersListNode, 'Headers cannot be parsed')
13995-
}
13996-
13997-
const headersList = headers[kHeadersListNode]
13998-
assert(headersList)
13999-
14000-
return headersList
14001-
}
14002-
1400313983
module.exports = {
1400413984
isCTLExcludingHtab,
14005-
stringify,
14006-
getHeadersList
13985+
validateCookieName,
13986+
validateCookiePath,
13987+
validateCookieValue,
13988+
toIMFDate,
13989+
stringify
1400713990
}
1400813991

1400913992

@@ -18007,6 +17990,7 @@ const {
1800717990
isValidHeaderName,
1800817991
isValidHeaderValue
1800917992
} = __nccwpck_require__(5523)
17993+
const util = __nccwpck_require__(9023)
1801017994
const { webidl } = __nccwpck_require__(4222)
1801117995
const assert = __nccwpck_require__(2613)
1801217996

@@ -18560,6 +18544,9 @@ Object.defineProperties(Headers.prototype, {
1856018544
[Symbol.toStringTag]: {
1856118545
value: 'Headers',
1856218546
configurable: true
18547+
},
18548+
[util.inspect.custom]: {
18549+
enumerable: false
1856318550
}
1856418551
})
1856518552

@@ -27736,6 +27723,20 @@ class Pool extends PoolBase {
2773627723
? { ...options.interceptors }
2773727724
: undefined
2773827725
this[kFactory] = factory
27726+
27727+
this.on('connectionError', (origin, targets, error) => {
27728+
// If a connection error occurs, we remove the client from the pool,
27729+
// and emit a connectionError event. They will not be re-used.
27730+
// Fixes https://github.com/nodejs/undici/issues/3895
27731+
for (const target of targets) {
27732+
// Do not use kRemoveClient here, as it will close the client,
27733+
// but the client cannot be closed in this state.
27734+
const idx = this[kClients].indexOf(target)
27735+
if (idx !== -1) {
27736+
this[kClients].splice(idx, 1)
27737+
}
27738+
}
27739+
})
2773927740
}
2774027741

2774127742
[kGetDispatcher] () {

0 commit comments

Comments
 (0)