Skip to content

Commit a04b1ce

Browse files
authored
fix(deps): update undici transitive dependency (#1463)
updated to [email protected] in action updated to [email protected] for markdown-link-check
1 parent 448ce62 commit a04b1ce

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

dist/index.js

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

6354463544

6354563545
const { parseSetCookie } = __nccwpck_require__(4408)
63546-
const { stringify, getHeadersList } = __nccwpck_require__(3121)
63546+
const { stringify } = __nccwpck_require__(3121)
6354763547
const { webidl } = __nccwpck_require__(1744)
6354863548
const { Headers } = __nccwpck_require__(554)
6354963549

@@ -63619,14 +63619,13 @@ function getSetCookies (headers) {
6361963619

6362063620
webidl.brandCheck(headers, Headers, { strict: false })
6362163621

63622-
const cookies = getHeadersList(headers).cookies
63622+
const cookies = headers.getSetCookie()
6362363623

6362463624
if (!cookies) {
6362563625
return []
6362663626
}
6362763627

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

6363263631
/**
@@ -64054,14 +64053,15 @@ module.exports = {
6405464053
/***/ }),
6405564054

6405664055
/***/ 3121:
64057-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
64056+
/***/ ((module) => {
6405864057

6405964058
"use strict";
6406064059

6406164060

64062-
const assert = __nccwpck_require__(9491)
64063-
const { kHeadersList } = __nccwpck_require__(2785)
64064-
64061+
/**
64062+
* @param {string} value
64063+
* @returns {boolean}
64064+
*/
6406564065
function isCTLExcludingHtab (value) {
6406664066
if (value.length === 0) {
6406764067
return false
@@ -64322,31 +64322,13 @@ function stringify (cookie) {
6432264322
return out.join('; ')
6432364323
}
6432464324

64325-
let kHeadersListNode
64326-
64327-
function getHeadersList (headers) {
64328-
if (headers[kHeadersList]) {
64329-
return headers[kHeadersList]
64330-
}
64331-
64332-
if (!kHeadersListNode) {
64333-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
64334-
(symbol) => symbol.description === 'headers list'
64335-
)
64336-
64337-
assert(kHeadersListNode, 'Headers cannot be parsed')
64338-
}
64339-
64340-
const headersList = headers[kHeadersListNode]
64341-
assert(headersList)
64342-
64343-
return headersList
64344-
}
64345-
6434664325
module.exports = {
6434764326
isCTLExcludingHtab,
64348-
stringify,
64349-
getHeadersList
64327+
validateCookieName,
64328+
validateCookiePath,
64329+
validateCookieValue,
64330+
toIMFDate,
64331+
stringify
6435064332
}
6435164333

6435264334

@@ -68350,6 +68332,7 @@ const {
6835068332
isValidHeaderName,
6835168333
isValidHeaderValue
6835268334
} = __nccwpck_require__(2538)
68335+
const util = __nccwpck_require__(3837)
6835368336
const { webidl } = __nccwpck_require__(1744)
6835468337
const assert = __nccwpck_require__(9491)
6835568338

@@ -68903,6 +68886,9 @@ Object.defineProperties(Headers.prototype, {
6890368886
[Symbol.toStringTag]: {
6890468887
value: 'Headers',
6890568888
configurable: true
68889+
},
68890+
[util.inspect.custom]: {
68891+
enumerable: false
6890668892
}
6890768893
})
6890868894

@@ -78079,6 +78065,20 @@ class Pool extends PoolBase {
7807978065
? { ...options.interceptors }
7808078066
: undefined
7808178067
this[kFactory] = factory
78068+
78069+
this.on('connectionError', (origin, targets, error) => {
78070+
// If a connection error occurs, we remove the client from the pool,
78071+
// and emit a connectionError event. They will not be re-used.
78072+
// Fixes https://github.com/nodejs/undici/issues/3895
78073+
for (const target of targets) {
78074+
// Do not use kRemoveClient here, as it will close the client,
78075+
// but the client cannot be closed in this state.
78076+
const idx = this[kClients].indexOf(target)
78077+
if (idx !== -1) {
78078+
this[kClients].splice(idx, 1)
78079+
}
78080+
}
78081+
})
7808278082
}
7808378083

7808478084
[kGetDispatcher] () {

package-lock.json

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

0 commit comments

Comments
 (0)