Skip to content

Commit 14614d7

Browse files
authored
build: update distribution (#363)
1 parent 556f01f commit 14614d7

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
@@ -2062,6 +2062,7 @@ class Context {
20622062
this.action = process.env.GITHUB_ACTION;
20632063
this.actor = process.env.GITHUB_ACTOR;
20642064
this.job = process.env.GITHUB_JOB;
2065+
this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10);
20652066
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
20662067
this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
20672068
this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
@@ -13189,7 +13190,7 @@ module.exports = {
1318913190

1319013191

1319113192
const { parseSetCookie } = __nccwpck_require__(8915)
13192-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
13193+
const { stringify } = __nccwpck_require__(3834)
1319313194
const { webidl } = __nccwpck_require__(4222)
1319413195
const { Headers } = __nccwpck_require__(6349)
1319513196

@@ -13265,14 +13266,13 @@ function getSetCookies (headers) {
1326513266

1326613267
webidl.brandCheck(headers, Headers, { strict: false })
1326713268

13268-
const cookies = getHeadersList(headers).cookies
13269+
const cookies = headers.getSetCookie()
1326913270

1327013271
if (!cookies) {
1327113272
return []
1327213273
}
1327313274

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

1327813278
/**
@@ -13700,14 +13700,15 @@ module.exports = {
1370013700
/***/ }),
1370113701

1370213702
/***/ 3834:
13703-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
13703+
/***/ ((module) => {
1370413704

1370513705
"use strict";
1370613706

1370713707

13708-
const assert = __nccwpck_require__(2613)
13709-
const { kHeadersList } = __nccwpck_require__(6443)
13710-
13708+
/**
13709+
* @param {string} value
13710+
* @returns {boolean}
13711+
*/
1371113712
function isCTLExcludingHtab (value) {
1371213713
if (value.length === 0) {
1371313714
return false
@@ -13968,31 +13969,13 @@ function stringify (cookie) {
1396813969
return out.join('; ')
1396913970
}
1397013971

13971-
let kHeadersListNode
13972-
13973-
function getHeadersList (headers) {
13974-
if (headers[kHeadersList]) {
13975-
return headers[kHeadersList]
13976-
}
13977-
13978-
if (!kHeadersListNode) {
13979-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
13980-
(symbol) => symbol.description === 'headers list'
13981-
)
13982-
13983-
assert(kHeadersListNode, 'Headers cannot be parsed')
13984-
}
13985-
13986-
const headersList = headers[kHeadersListNode]
13987-
assert(headersList)
13988-
13989-
return headersList
13990-
}
13991-
1399213972
module.exports = {
1399313973
isCTLExcludingHtab,
13994-
stringify,
13995-
getHeadersList
13974+
validateCookieName,
13975+
validateCookiePath,
13976+
validateCookieValue,
13977+
toIMFDate,
13978+
stringify
1399613979
}
1399713980

1399813981

@@ -17996,6 +17979,7 @@ const {
1799617979
isValidHeaderName,
1799717980
isValidHeaderValue
1799817981
} = __nccwpck_require__(5523)
17982+
const util = __nccwpck_require__(9023)
1799917983
const { webidl } = __nccwpck_require__(4222)
1800017984
const assert = __nccwpck_require__(2613)
1800117985

@@ -18549,6 +18533,9 @@ Object.defineProperties(Headers.prototype, {
1854918533
[Symbol.toStringTag]: {
1855018534
value: 'Headers',
1855118535
configurable: true
18536+
},
18537+
[util.inspect.custom]: {
18538+
enumerable: false
1855218539
}
1855318540
})
1855418541

@@ -27725,6 +27712,20 @@ class Pool extends PoolBase {
2772527712
? { ...options.interceptors }
2772627713
: undefined
2772727714
this[kFactory] = factory
27715+
27716+
this.on('connectionError', (origin, targets, error) => {
27717+
// If a connection error occurs, we remove the client from the pool,
27718+
// and emit a connectionError event. They will not be re-used.
27719+
// Fixes https://github.com/nodejs/undici/issues/3895
27720+
for (const target of targets) {
27721+
// Do not use kRemoveClient here, as it will close the client,
27722+
// but the client cannot be closed in this state.
27723+
const idx = this[kClients].indexOf(target)
27724+
if (idx !== -1) {
27725+
this[kClients].splice(idx, 1)
27726+
}
27727+
}
27728+
})
2772827729
}
2772927730

2773027731
[kGetDispatcher] () {

0 commit comments

Comments
 (0)