Skip to content

Commit 7c41ea0

Browse files
dependabot[bot]GitHub Actions
and
GitHub Actions
authored
chore: Bump undici from 5.28.5 to 5.29.0 (#386)
* chore: 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> * chore: Update dist --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <runner@pkrvmf6wy0o8zjz.0dag1445wiqurpv2peo3esqijf.dx.internal.cloudapp.net>
1 parent 46b2209 commit 7c41ea0

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

dist/index.js

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

3540535405

3540635406
const { parseSetCookie } = __nccwpck_require__(8915)
35407-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
35407+
const { stringify } = __nccwpck_require__(3834)
3540835408
const { webidl } = __nccwpck_require__(4222)
3540935409
const { Headers } = __nccwpck_require__(6349)
3541035410

@@ -35480,14 +35480,13 @@ function getSetCookies (headers) {
3548035480

3548135481
webidl.brandCheck(headers, Headers, { strict: false })
3548235482

35483-
const cookies = getHeadersList(headers).cookies
35483+
const cookies = headers.getSetCookie()
3548435484

3548535485
if (!cookies) {
3548635486
return []
3548735487
}
3548835488

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

3549335492
/**
@@ -35915,14 +35914,15 @@ module.exports = {
3591535914
/***/ }),
3591635915

3591735916
/***/ 3834:
35918-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
35917+
/***/ ((module) => {
3591935918

3592035919
"use strict";
3592135920

3592235921

35923-
const assert = __nccwpck_require__(2613)
35924-
const { kHeadersList } = __nccwpck_require__(6443)
35925-
35922+
/**
35923+
* @param {string} value
35924+
* @returns {boolean}
35925+
*/
3592635926
function isCTLExcludingHtab (value) {
3592735927
if (value.length === 0) {
3592835928
return false
@@ -36183,31 +36183,13 @@ function stringify (cookie) {
3618336183
return out.join('; ')
3618436184
}
3618536185

36186-
let kHeadersListNode
36187-
36188-
function getHeadersList (headers) {
36189-
if (headers[kHeadersList]) {
36190-
return headers[kHeadersList]
36191-
}
36192-
36193-
if (!kHeadersListNode) {
36194-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
36195-
(symbol) => symbol.description === 'headers list'
36196-
)
36197-
36198-
assert(kHeadersListNode, 'Headers cannot be parsed')
36199-
}
36200-
36201-
const headersList = headers[kHeadersListNode]
36202-
assert(headersList)
36203-
36204-
return headersList
36205-
}
36206-
3620736186
module.exports = {
3620836187
isCTLExcludingHtab,
36209-
stringify,
36210-
getHeadersList
36188+
validateCookieName,
36189+
validateCookiePath,
36190+
validateCookieValue,
36191+
toIMFDate,
36192+
stringify
3621136193
}
3621236194

3621336195

@@ -40211,6 +40193,7 @@ const {
4021140193
isValidHeaderName,
4021240194
isValidHeaderValue
4021340195
} = __nccwpck_require__(5523)
40196+
const util = __nccwpck_require__(9023)
4021440197
const { webidl } = __nccwpck_require__(4222)
4021540198
const assert = __nccwpck_require__(2613)
4021640199

@@ -40764,6 +40747,9 @@ Object.defineProperties(Headers.prototype, {
4076440747
[Symbol.toStringTag]: {
4076540748
value: 'Headers',
4076640749
configurable: true
40750+
},
40751+
[util.inspect.custom]: {
40752+
enumerable: false
4076740753
}
4076840754
})
4076940755

@@ -49940,6 +49926,20 @@ class Pool extends PoolBase {
4994049926
? { ...options.interceptors }
4994149927
: undefined
4994249928
this[kFactory] = factory
49929+
49930+
this.on('connectionError', (origin, targets, error) => {
49931+
// If a connection error occurs, we remove the client from the pool,
49932+
// and emit a connectionError event. They will not be re-used.
49933+
// Fixes https://github.com/nodejs/undici/issues/3895
49934+
for (const target of targets) {
49935+
// Do not use kRemoveClient here, as it will close the client,
49936+
// but the client cannot be closed in this state.
49937+
const idx = this[kClients].indexOf(target)
49938+
if (idx !== -1) {
49939+
this[kClients].splice(idx, 1)
49940+
}
49941+
}
49942+
})
4994349943
}
4994449944

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