Skip to content

Commit 9d14aef

Browse files
Upgrade: Bump undici from 5.28.5 to 5.29.0 in /annotation-check (#93)
* Upgrade: Bump undici from 5.28.5 to 5.29.0 in /annotation-check 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: rebuild annotation-check action --------- Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: glx22 <glx@openttd.org>
1 parent 5b8f589 commit 9d14aef

2 files changed

Lines changed: 37 additions & 38 deletions

File tree

annotation-check/dist/index.js

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

1300113001

1300213002
const { parseSetCookie } = __nccwpck_require__(8915)
13003-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
13003+
const { stringify } = __nccwpck_require__(3834)
1300413004
const { webidl } = __nccwpck_require__(4222)
1300513005
const { Headers } = __nccwpck_require__(6349)
1300613006

@@ -13076,14 +13076,13 @@ function getSetCookies (headers) {
1307613076

1307713077
webidl.brandCheck(headers, Headers, { strict: false })
1307813078

13079-
const cookies = getHeadersList(headers).cookies
13079+
const cookies = headers.getSetCookie()
1308013080

1308113081
if (!cookies) {
1308213082
return []
1308313083
}
1308413084

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

1308913088
/**
@@ -13511,14 +13510,15 @@ module.exports = {
1351113510
/***/ }),
1351213511

1351313512
/***/ 3834:
13514-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
13513+
/***/ ((module) => {
1351513514

1351613515
"use strict";
1351713516

1351813517

13519-
const assert = __nccwpck_require__(2613)
13520-
const { kHeadersList } = __nccwpck_require__(6443)
13521-
13518+
/**
13519+
* @param {string} value
13520+
* @returns {boolean}
13521+
*/
1352213522
function isCTLExcludingHtab (value) {
1352313523
if (value.length === 0) {
1352413524
return false
@@ -13779,31 +13779,13 @@ function stringify (cookie) {
1377913779
return out.join('; ')
1378013780
}
1378113781

13782-
let kHeadersListNode
13783-
13784-
function getHeadersList (headers) {
13785-
if (headers[kHeadersList]) {
13786-
return headers[kHeadersList]
13787-
}
13788-
13789-
if (!kHeadersListNode) {
13790-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
13791-
(symbol) => symbol.description === 'headers list'
13792-
)
13793-
13794-
assert(kHeadersListNode, 'Headers cannot be parsed')
13795-
}
13796-
13797-
const headersList = headers[kHeadersListNode]
13798-
assert(headersList)
13799-
13800-
return headersList
13801-
}
13802-
1380313782
module.exports = {
1380413783
isCTLExcludingHtab,
13805-
stringify,
13806-
getHeadersList
13784+
validateCookieName,
13785+
validateCookiePath,
13786+
validateCookieValue,
13787+
toIMFDate,
13788+
stringify
1380713789
}
1380813790

1380913791

@@ -17807,6 +17789,7 @@ const {
1780717789
isValidHeaderName,
1780817790
isValidHeaderValue
1780917791
} = __nccwpck_require__(5523)
17792+
const util = __nccwpck_require__(9023)
1781017793
const { webidl } = __nccwpck_require__(4222)
1781117794
const assert = __nccwpck_require__(2613)
1781217795

@@ -18360,6 +18343,9 @@ Object.defineProperties(Headers.prototype, {
1836018343
[Symbol.toStringTag]: {
1836118344
value: 'Headers',
1836218345
configurable: true
18346+
},
18347+
[util.inspect.custom]: {
18348+
enumerable: false
1836318349
}
1836418350
})
1836518351

@@ -27536,6 +27522,20 @@ class Pool extends PoolBase {
2753627522
? { ...options.interceptors }
2753727523
: undefined
2753827524
this[kFactory] = factory
27525+
27526+
this.on('connectionError', (origin, targets, error) => {
27527+
// If a connection error occurs, we remove the client from the pool,
27528+
// and emit a connectionError event. They will not be re-used.
27529+
// Fixes https://github.com/nodejs/undici/issues/3895
27530+
for (const target of targets) {
27531+
// Do not use kRemoveClient here, as it will close the client,
27532+
// but the client cannot be closed in this state.
27533+
const idx = this[kClients].indexOf(target)
27534+
if (idx !== -1) {
27535+
this[kClients].splice(idx, 1)
27536+
}
27537+
}
27538+
})
2753927539
}
2754027540

2754127541
[kGetDispatcher] () {

annotation-check/package-lock.json

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

0 commit comments

Comments
 (0)