Skip to content

Commit 89417ee

Browse files
Bump undici from 5.28.5 to 5.29.0 (#77)
* Bump undici from 5.28.5 to 5.29.0 Bumps [undici](https://github.com/nodejs/undici) from 5.28.5 to 5.29.0. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.28.5...v5.29.0) --- updated-dependencies: - dependency-name: undici dependency-version: 5.29.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Fix failures --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com>
1 parent b0633a2 commit 89417ee

File tree

3 files changed

+35
-35
lines changed

3 files changed

+35
-35
lines changed

.licenses/npm/undici.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13821,7 +13821,7 @@ module.exports = {
1382113821

1382213822

1382313823
const { parseSetCookie } = __nccwpck_require__(4408)
13824-
const { stringify, getHeadersList } = __nccwpck_require__(3121)
13824+
const { stringify } = __nccwpck_require__(3121)
1382513825
const { webidl } = __nccwpck_require__(1744)
1382613826
const { Headers } = __nccwpck_require__(554)
1382713827

@@ -13897,14 +13897,13 @@ function getSetCookies (headers) {
1389713897

1389813898
webidl.brandCheck(headers, Headers, { strict: false })
1389913899

13900-
const cookies = getHeadersList(headers).cookies
13900+
const cookies = headers.getSetCookie()
1390113901

1390213902
if (!cookies) {
1390313903
return []
1390413904
}
1390513905

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

1391013909
/**
@@ -14332,14 +14331,15 @@ module.exports = {
1433214331
/***/ }),
1433314332

1433414333
/***/ 3121:
14335-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
14334+
/***/ ((module) => {
1433614335

1433714336
"use strict";
1433814337

1433914338

14340-
const assert = __nccwpck_require__(9491)
14341-
const { kHeadersList } = __nccwpck_require__(2785)
14342-
14339+
/**
14340+
* @param {string} value
14341+
* @returns {boolean}
14342+
*/
1434314343
function isCTLExcludingHtab (value) {
1434414344
if (value.length === 0) {
1434514345
return false
@@ -14600,31 +14600,13 @@ function stringify (cookie) {
1460014600
return out.join('; ')
1460114601
}
1460214602

14603-
let kHeadersListNode
14604-
14605-
function getHeadersList (headers) {
14606-
if (headers[kHeadersList]) {
14607-
return headers[kHeadersList]
14608-
}
14609-
14610-
if (!kHeadersListNode) {
14611-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
14612-
(symbol) => symbol.description === 'headers list'
14613-
)
14614-
14615-
assert(kHeadersListNode, 'Headers cannot be parsed')
14616-
}
14617-
14618-
const headersList = headers[kHeadersListNode]
14619-
assert(headersList)
14620-
14621-
return headersList
14622-
}
14623-
1462414603
module.exports = {
1462514604
isCTLExcludingHtab,
14626-
stringify,
14627-
getHeadersList
14605+
validateCookieName,
14606+
validateCookiePath,
14607+
validateCookieValue,
14608+
toIMFDate,
14609+
stringify
1462814610
}
1462914611

1463014612

@@ -18628,6 +18610,7 @@ const {
1862818610
isValidHeaderName,
1862918611
isValidHeaderValue
1863018612
} = __nccwpck_require__(2538)
18613+
const util = __nccwpck_require__(3837)
1863118614
const { webidl } = __nccwpck_require__(1744)
1863218615
const assert = __nccwpck_require__(9491)
1863318616

@@ -19181,6 +19164,9 @@ Object.defineProperties(Headers.prototype, {
1918119164
[Symbol.toStringTag]: {
1918219165
value: 'Headers',
1918319166
configurable: true
19167+
},
19168+
[util.inspect.custom]: {
19169+
enumerable: false
1918419170
}
1918519171
})
1918619172

@@ -28357,6 +28343,20 @@ class Pool extends PoolBase {
2835728343
? { ...options.interceptors }
2835828344
: undefined
2835928345
this[kFactory] = factory
28346+
28347+
this.on('connectionError', (origin, targets, error) => {
28348+
// If a connection error occurs, we remove the client from the pool,
28349+
// and emit a connectionError event. They will not be re-used.
28350+
// Fixes https://github.com/nodejs/undici/issues/3895
28351+
for (const target of targets) {
28352+
// Do not use kRemoveClient here, as it will close the client,
28353+
// but the client cannot be closed in this state.
28354+
const idx = this[kClients].indexOf(target)
28355+
if (idx !== -1) {
28356+
this[kClients].splice(idx, 1)
28357+
}
28358+
}
28359+
})
2836028360
}
2836128361

2836228362
[kGetDispatcher] () {

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)