Skip to content

Commit 65becef

Browse files
dependabot[bot]aparnajyothi-y“gowridurgad”
authored
Bump undici from 5.28.5 to 5.29.0 (actions#1295)
* 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] <[email protected]> * check failures fix * check-failures fix * check failures fix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <[email protected]> Co-authored-by: “gowridurgad” <“[email protected]>
1 parent 7e24a65 commit 65becef

File tree

4 files changed

+66
-66
lines changed

4 files changed

+66
-66
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/cache-save/index.js

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

6408164081

6408264082
const { parseSetCookie } = __nccwpck_require__(8915)
64083-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
64083+
const { stringify } = __nccwpck_require__(3834)
6408464084
const { webidl } = __nccwpck_require__(4222)
6408564085
const { Headers } = __nccwpck_require__(6349)
6408664086

@@ -64156,14 +64156,13 @@ function getSetCookies (headers) {
6415664156

6415764157
webidl.brandCheck(headers, Headers, { strict: false })
6415864158

64159-
const cookies = getHeadersList(headers).cookies
64159+
const cookies = headers.getSetCookie()
6416064160

6416164161
if (!cookies) {
6416264162
return []
6416364163
}
6416464164

64165-
// 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
}
6416864167

6416964168
/**
@@ -64591,14 +64590,15 @@ module.exports = {
6459164590
/***/ }),
6459264591

6459364592
/***/ 3834:
64594-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
64593+
/***/ ((module) => {
6459564594

6459664595
"use strict";
6459764596

6459864597

64599-
const assert = __nccwpck_require__(2613)
64600-
const { kHeadersList } = __nccwpck_require__(6443)
64601-
64598+
/**
64599+
* @param {string} value
64600+
* @returns {boolean}
64601+
*/
6460264602
function isCTLExcludingHtab (value) {
6460364603
if (value.length === 0) {
6460464604
return false
@@ -64859,31 +64859,13 @@ function stringify (cookie) {
6485964859
return out.join('; ')
6486064860
}
6486164861

64862-
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-
6488364862
module.exports = {
6488464863
isCTLExcludingHtab,
64885-
stringify,
64886-
getHeadersList
64864+
validateCookieName,
64865+
validateCookiePath,
64866+
validateCookieValue,
64867+
toIMFDate,
64868+
stringify
6488764869
}
6488864870

6488964871

@@ -68887,6 +68869,7 @@ const {
6888768869
isValidHeaderName,
6888868870
isValidHeaderValue
6888968871
} = __nccwpck_require__(5523)
68872+
const util = __nccwpck_require__(9023)
6889068873
const { webidl } = __nccwpck_require__(4222)
6889168874
const 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
}
7862078620

7862178621
[kGetDispatcher] () {

dist/setup/index.js

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

7338973389

7339073390
const { parseSetCookie } = __nccwpck_require__(8915)
73391-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
73391+
const { stringify } = __nccwpck_require__(3834)
7339273392
const { webidl } = __nccwpck_require__(4222)
7339373393
const { Headers } = __nccwpck_require__(6349)
7339473394

@@ -73464,14 +73464,13 @@ function getSetCookies (headers) {
7346473464

7346573465
webidl.brandCheck(headers, Headers, { strict: false })
7346673466

73467-
const cookies = getHeadersList(headers).cookies
73467+
const cookies = headers.getSetCookie()
7346873468

7346973469
if (!cookies) {
7347073470
return []
7347173471
}
7347273472

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

7347773476
/**
@@ -73899,14 +73898,15 @@ module.exports = {
7389973898
/***/ }),
7390073899

7390173900
/***/ 3834:
73902-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
73901+
/***/ ((module) => {
7390373902

7390473903
"use strict";
7390573904

7390673905

73907-
const assert = __nccwpck_require__(2613)
73908-
const { kHeadersList } = __nccwpck_require__(6443)
73909-
73906+
/**
73907+
* @param {string} value
73908+
* @returns {boolean}
73909+
*/
7391073910
function isCTLExcludingHtab (value) {
7391173911
if (value.length === 0) {
7391273912
return false
@@ -74167,31 +74167,13 @@ function stringify (cookie) {
7416774167
return out.join('; ')
7416874168
}
7416974169

74170-
let kHeadersListNode
74171-
74172-
function getHeadersList (headers) {
74173-
if (headers[kHeadersList]) {
74174-
return headers[kHeadersList]
74175-
}
74176-
74177-
if (!kHeadersListNode) {
74178-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
74179-
(symbol) => symbol.description === 'headers list'
74180-
)
74181-
74182-
assert(kHeadersListNode, 'Headers cannot be parsed')
74183-
}
74184-
74185-
const headersList = headers[kHeadersListNode]
74186-
assert(headersList)
74187-
74188-
return headersList
74189-
}
74190-
7419174170
module.exports = {
7419274171
isCTLExcludingHtab,
74193-
stringify,
74194-
getHeadersList
74172+
validateCookieName,
74173+
validateCookiePath,
74174+
validateCookieValue,
74175+
toIMFDate,
74176+
stringify
7419574177
}
7419674178

7419774179

@@ -78195,6 +78177,7 @@ const {
7819578177
isValidHeaderName,
7819678178
isValidHeaderValue
7819778179
} = __nccwpck_require__(5523)
78180+
const util = __nccwpck_require__(9023)
7819878181
const { webidl } = __nccwpck_require__(4222)
7819978182
const assert = __nccwpck_require__(2613)
7820078183

@@ -78748,6 +78731,9 @@ Object.defineProperties(Headers.prototype, {
7874878731
[Symbol.toStringTag]: {
7874978732
value: 'Headers',
7875078733
configurable: true
78734+
},
78735+
[util.inspect.custom]: {
78736+
enumerable: false
7875178737
}
7875278738
})
7875378739

@@ -87924,6 +87910,20 @@ class Pool extends PoolBase {
8792487910
? { ...options.interceptors }
8792587911
: undefined
8792687912
this[kFactory] = factory
87913+
87914+
this.on('connectionError', (origin, targets, error) => {
87915+
// If a connection error occurs, we remove the client from the pool,
87916+
// and emit a connectionError event. They will not be re-used.
87917+
// Fixes https://github.com/nodejs/undici/issues/3895
87918+
for (const target of targets) {
87919+
// Do not use kRemoveClient here, as it will close the client,
87920+
// but the client cannot be closed in this state.
87921+
const idx = this[kClients].indexOf(target)
87922+
if (idx !== -1) {
87923+
this[kClients].splice(idx, 1)
87924+
}
87925+
}
87926+
})
8792787927
}
8792887928

8792987929
[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)