Bump undici from 5.28.5 to 5.29.0 (#1295) · actions/setup-node@65becef
@@ -64080,7 +64080,7 @@ module.exports = {
640806408064081640816408264082const { parseSetCookie } = __nccwpck_require__(8915)
64083-const { stringify, getHeadersList } = __nccwpck_require__(3834)
64083+const { stringify } = __nccwpck_require__(3834)
6408464084const { webidl } = __nccwpck_require__(4222)
6408564085const { Headers } = __nccwpck_require__(6349)
6408664086@@ -64156,14 +64156,13 @@ function getSetCookies (headers) {
64156641566415764157 webidl.brandCheck(headers, Headers, { strict: false })
641586415864159- const cookies = getHeadersList(headers).cookies
64159+ const cookies = headers.getSetCookie()
64160641606416164161 if (!cookies) {
6416264162 return []
6416364163 }
641646416464165- // In older versions of undici, cookies is a list of name:value.
64166- return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
64165+ return cookies.map((pair) => parseSetCookie(pair))
6416764166}
64168641676416964168/**
@@ -64591,14 +64590,15 @@ module.exports = {
6459164590/***/ }),
64592645916459364592/***/ 3834:
64594-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
64593+/***/ ((module) => {
64595645946459664595"use strict";
6459764596645986459764599-const assert = __nccwpck_require__(2613)
64600-const { kHeadersList } = __nccwpck_require__(6443)
64601-64598+/**
64599+ * @param {string} value
64600+ * @returns {boolean}
64601+ */
6460264602function isCTLExcludingHtab (value) {
6460364603 if (value.length === 0) {
6460464604 return false
@@ -64859,31 +64859,13 @@ function stringify (cookie) {
6485964859 return out.join('; ')
6486064860}
648616486164862-let kHeadersListNode
64863-64864-function getHeadersList (headers) {
64865- if (headers[kHeadersList]) {
64866- return headers[kHeadersList]
64867- }
64868-64869- if (!kHeadersListNode) {
64870- kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
64871- (symbol) => symbol.description === 'headers list'
64872- )
64873-64874- assert(kHeadersListNode, 'Headers cannot be parsed')
64875- }
64876-64877- const headersList = headers[kHeadersListNode]
64878- assert(headersList)
64879-64880- return headersList
64881-}
64882-6488364862module.exports = {
6488464863 isCTLExcludingHtab,
64885- stringify,
64886- getHeadersList
64864+ validateCookieName,
64865+ validateCookiePath,
64866+ validateCookieValue,
64867+ toIMFDate,
64868+ stringify
6488764869}
64888648706488964871@@ -68887,6 +68869,7 @@ const {
6888768869 isValidHeaderName,
6888868870 isValidHeaderValue
6888968871} = __nccwpck_require__(5523)
68872+const util = __nccwpck_require__(9023)
6889068873const { webidl } = __nccwpck_require__(4222)
6889168874const assert = __nccwpck_require__(2613)
6889268875@@ -69440,6 +69423,9 @@ Object.defineProperties(Headers.prototype, {
6944069423 [Symbol.toStringTag]: {
6944169424 value: 'Headers',
6944269425 configurable: true
69426+ },
69427+ [util.inspect.custom]: {
69428+ enumerable: false
6944369429 }
6944469430})
6944569431@@ -78616,6 +78602,20 @@ class Pool extends PoolBase {
7861678602 ? { ...options.interceptors }
7861778603 : undefined
7861878604 this[kFactory] = factory
78605+78606+ this.on('connectionError', (origin, targets, error) => {
78607+ // If a connection error occurs, we remove the client from the pool,
78608+ // and emit a connectionError event. They will not be re-used.
78609+ // Fixes https://github.com/nodejs/undici/issues/3895
78610+ for (const target of targets) {
78611+ // Do not use kRemoveClient here, as it will close the client,
78612+ // but the client cannot be closed in this state.
78613+ const idx = this[kClients].indexOf(target)
78614+ if (idx !== -1) {
78615+ this[kClients].splice(idx, 1)
78616+ }
78617+ }
78618+ })
7861978619 }
78620786207862178621 [kGetDispatcher] () {