Skip to content

Commit 761838d

Browse files
authored
Merge pull request #228 from zaproxy/dependabot/npm_and_yarn/dot-github/actions/update-website/undici-5.29.0
Bump undici from 5.28.5 to 5.29.0 in /.github/actions/update-website
2 parents d02d437 + 2f31681 commit 761838d

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

.github/actions/update-website/dist/index.js

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

1288012880

1288112881
const { parseSetCookie } = __nccwpck_require__(4408)
12882-
const { stringify, getHeadersList } = __nccwpck_require__(3121)
12882+
const { stringify } = __nccwpck_require__(3121)
1288312883
const { webidl } = __nccwpck_require__(1744)
1288412884
const { Headers } = __nccwpck_require__(554)
1288512885

@@ -12955,14 +12955,13 @@ function getSetCookies (headers) {
1295512955

1295612956
webidl.brandCheck(headers, Headers, { strict: false })
1295712957

12958-
const cookies = getHeadersList(headers).cookies
12958+
const cookies = headers.getSetCookie()
1295912959

1296012960
if (!cookies) {
1296112961
return []
1296212962
}
1296312963

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

1296812967
/**
@@ -13390,14 +13389,15 @@ module.exports = {
1339013389
/***/ }),
1339113390

1339213391
/***/ 3121:
13393-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
13392+
/***/ ((module) => {
1339413393

1339513394
"use strict";
1339613395

1339713396

13398-
const assert = __nccwpck_require__(9491)
13399-
const { kHeadersList } = __nccwpck_require__(2785)
13400-
13397+
/**
13398+
* @param {string} value
13399+
* @returns {boolean}
13400+
*/
1340113401
function isCTLExcludingHtab (value) {
1340213402
if (value.length === 0) {
1340313403
return false
@@ -13658,31 +13658,13 @@ function stringify (cookie) {
1365813658
return out.join('; ')
1365913659
}
1366013660

13661-
let kHeadersListNode
13662-
13663-
function getHeadersList (headers) {
13664-
if (headers[kHeadersList]) {
13665-
return headers[kHeadersList]
13666-
}
13667-
13668-
if (!kHeadersListNode) {
13669-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
13670-
(symbol) => symbol.description === 'headers list'
13671-
)
13672-
13673-
assert(kHeadersListNode, 'Headers cannot be parsed')
13674-
}
13675-
13676-
const headersList = headers[kHeadersListNode]
13677-
assert(headersList)
13678-
13679-
return headersList
13680-
}
13681-
1368213661
module.exports = {
1368313662
isCTLExcludingHtab,
13684-
stringify,
13685-
getHeadersList
13663+
validateCookieName,
13664+
validateCookiePath,
13665+
validateCookieValue,
13666+
toIMFDate,
13667+
stringify
1368613668
}
1368713669

1368813670

@@ -17686,6 +17668,7 @@ const {
1768617668
isValidHeaderName,
1768717669
isValidHeaderValue
1768817670
} = __nccwpck_require__(2538)
17671+
const util = __nccwpck_require__(3837)
1768917672
const { webidl } = __nccwpck_require__(1744)
1769017673
const assert = __nccwpck_require__(9491)
1769117674

@@ -18239,6 +18222,9 @@ Object.defineProperties(Headers.prototype, {
1823918222
[Symbol.toStringTag]: {
1824018223
value: 'Headers',
1824118224
configurable: true
18225+
},
18226+
[util.inspect.custom]: {
18227+
enumerable: false
1824218228
}
1824318229
})
1824418230

@@ -27415,6 +27401,20 @@ class Pool extends PoolBase {
2741527401
? { ...options.interceptors }
2741627402
: undefined
2741727403
this[kFactory] = factory
27404+
27405+
this.on('connectionError', (origin, targets, error) => {
27406+
// If a connection error occurs, we remove the client from the pool,
27407+
// and emit a connectionError event. They will not be re-used.
27408+
// Fixes https://github.com/nodejs/undici/issues/3895
27409+
for (const target of targets) {
27410+
// Do not use kRemoveClient here, as it will close the client,
27411+
// but the client cannot be closed in this state.
27412+
const idx = this[kClients].indexOf(target)
27413+
if (idx !== -1) {
27414+
this[kClients].splice(idx, 1)
27415+
}
27416+
}
27417+
})
2741827418
}
2741927419

2742027420
[kGetDispatcher] () {

.github/actions/update-website/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)