Skip to content

Commit 5a8481b

Browse files
authored
update all packages and gh workflows (#489)
1 parent 8c8499e commit 5a8481b

File tree

5 files changed

+95
-896
lines changed

5 files changed

+95
-896
lines changed

‎.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
persist-credentials: false
7474

7575
- name: Set up Node.js
76-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
76+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
7777
with:
7878
node-version: 20
7979
- name: Update package version

‎dist/index.js

Lines changed: 34 additions & 34 deletions
Large diffs are not rendered by default.

‎dist/index1.js

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

1021810218

1021910219
const { parseSetCookie } = __nccwpck_require__(8915)
10220-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
10220+
const { stringify } = __nccwpck_require__(3834)
1022110221
const { webidl } = __nccwpck_require__(4222)
1022210222
const { Headers } = __nccwpck_require__(6349)
1022310223

@@ -10293,14 +10293,13 @@ function getSetCookies (headers) {
1029310293

1029410294
webidl.brandCheck(headers, Headers, { strict: false })
1029510295

10296-
const cookies = getHeadersList(headers).cookies
10296+
const cookies = headers.getSetCookie()
1029710297

1029810298
if (!cookies) {
1029910299
return []
1030010300
}
1030110301

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

1030610305
/**
@@ -10728,14 +10727,15 @@ module.exports = {
1072810727
/***/ }),
1072910728

1073010729
/***/ 3834:
10731-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
10730+
/***/ ((module) => {
1073210731

1073310732
"use strict";
1073410733

1073510734

10736-
const assert = __nccwpck_require__(2613)
10737-
const { kHeadersList } = __nccwpck_require__(6443)
10738-
10735+
/**
10736+
* @param {string} value
10737+
* @returns {boolean}
10738+
*/
1073910739
function isCTLExcludingHtab (value) {
1074010740
if (value.length === 0) {
1074110741
return false
@@ -10996,31 +10996,13 @@ function stringify (cookie) {
1099610996
return out.join('; ')
1099710997
}
1099810998

10999-
let kHeadersListNode
11000-
11001-
function getHeadersList (headers) {
11002-
if (headers[kHeadersList]) {
11003-
return headers[kHeadersList]
11004-
}
11005-
11006-
if (!kHeadersListNode) {
11007-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
11008-
(symbol) => symbol.description === 'headers list'
11009-
)
11010-
11011-
assert(kHeadersListNode, 'Headers cannot be parsed')
11012-
}
11013-
11014-
const headersList = headers[kHeadersListNode]
11015-
assert(headersList)
11016-
11017-
return headersList
11018-
}
11019-
1102010999
module.exports = {
1102111000
isCTLExcludingHtab,
11022-
stringify,
11023-
getHeadersList
11001+
validateCookieName,
11002+
validateCookiePath,
11003+
validateCookieValue,
11004+
toIMFDate,
11005+
stringify
1102411006
}
1102511007

1102611008

@@ -15024,6 +15006,7 @@ const {
1502415006
isValidHeaderName,
1502515007
isValidHeaderValue
1502615008
} = __nccwpck_require__(5523)
15009+
const util = __nccwpck_require__(9023)
1502715010
const { webidl } = __nccwpck_require__(4222)
1502815011
const assert = __nccwpck_require__(2613)
1502915012

@@ -15577,6 +15560,9 @@ Object.defineProperties(Headers.prototype, {
1557715560
[Symbol.toStringTag]: {
1557815561
value: 'Headers',
1557915562
configurable: true
15563+
},
15564+
[util.inspect.custom]: {
15565+
enumerable: false
1558015566
}
1558115567
})
1558215568

@@ -24753,6 +24739,20 @@ class Pool extends PoolBase {
2475324739
? { ...options.interceptors }
2475424740
: undefined
2475524741
this[kFactory] = factory
24742+
24743+
this.on('connectionError', (origin, targets, error) => {
24744+
// If a connection error occurs, we remove the client from the pool,
24745+
// and emit a connectionError event. They will not be re-used.
24746+
// Fixes https://github.com/nodejs/undici/issues/3895
24747+
for (const target of targets) {
24748+
// Do not use kRemoveClient here, as it will close the client,
24749+
// but the client cannot be closed in this state.
24750+
const idx = this[kClients].indexOf(target)
24751+
if (idx !== -1) {
24752+
this[kClients].splice(idx, 1)
24753+
}
24754+
}
24755+
})
2475624756
}
2475724757

2475824758
[kGetDispatcher] () {

0 commit comments

Comments
 (0)