Skip to content

Commit 8f3f9b5

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/aws-sdk/client-codedeploy-3.798.0
2 parents d2a8924 + fc55fa3 commit 8f3f9b5

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
@@ -92994,7 +92994,7 @@ module.exports = {
9299492994

9299592995

9299692996
const { parseSetCookie } = __nccwpck_require__(8915)
92997-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
92997+
const { stringify } = __nccwpck_require__(3834)
9299892998
const { webidl } = __nccwpck_require__(74222)
9299992999
const { Headers } = __nccwpck_require__(26349)
9300093000

@@ -93070,14 +93070,13 @@ function getSetCookies (headers) {
9307093070

9307193071
webidl.brandCheck(headers, Headers, { strict: false })
9307293072

93073-
const cookies = getHeadersList(headers).cookies
93073+
const cookies = headers.getSetCookie()
9307493074

9307593075
if (!cookies) {
9307693076
return []
9307793077
}
9307893078

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

9308393082
/**
@@ -93505,14 +93504,15 @@ module.exports = {
9350593504
/***/ }),
9350693505

9350793506
/***/ 3834:
93508-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
93507+
/***/ ((module) => {
9350993508

9351093509
"use strict";
9351193510

9351293511

93513-
const assert = __nccwpck_require__(42613)
93514-
const { kHeadersList } = __nccwpck_require__(36443)
93515-
93512+
/**
93513+
* @param {string} value
93514+
* @returns {boolean}
93515+
*/
9351693516
function isCTLExcludingHtab (value) {
9351793517
if (value.length === 0) {
9351893518
return false
@@ -93773,31 +93773,13 @@ function stringify (cookie) {
9377393773
return out.join('; ')
9377493774
}
9377593775

93776-
let kHeadersListNode
93777-
93778-
function getHeadersList (headers) {
93779-
if (headers[kHeadersList]) {
93780-
return headers[kHeadersList]
93781-
}
93782-
93783-
if (!kHeadersListNode) {
93784-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
93785-
(symbol) => symbol.description === 'headers list'
93786-
)
93787-
93788-
assert(kHeadersListNode, 'Headers cannot be parsed')
93789-
}
93790-
93791-
const headersList = headers[kHeadersListNode]
93792-
assert(headersList)
93793-
93794-
return headersList
93795-
}
93796-
9379793776
module.exports = {
9379893777
isCTLExcludingHtab,
93799-
stringify,
93800-
getHeadersList
93778+
validateCookieName,
93779+
validateCookiePath,
93780+
validateCookieValue,
93781+
toIMFDate,
93782+
stringify
9380193783
}
9380293784

9380393785

@@ -97801,6 +97783,7 @@ const {
9780197783
isValidHeaderName,
9780297784
isValidHeaderValue
9780397785
} = __nccwpck_require__(15523)
97786+
const util = __nccwpck_require__(39023)
9780497787
const { webidl } = __nccwpck_require__(74222)
9780597788
const assert = __nccwpck_require__(42613)
9780697789

@@ -98354,6 +98337,9 @@ Object.defineProperties(Headers.prototype, {
9835498337
[Symbol.toStringTag]: {
9835598338
value: 'Headers',
9835698339
configurable: true
98340+
},
98341+
[util.inspect.custom]: {
98342+
enumerable: false
9835798343
}
9835898344
})
9835998345

@@ -107530,6 +107516,20 @@ class Pool extends PoolBase {
107530107516
? { ...options.interceptors }
107531107517
: undefined
107532107518
this[kFactory] = factory
107519+
107520+
this.on('connectionError', (origin, targets, error) => {
107521+
// If a connection error occurs, we remove the client from the pool,
107522+
// and emit a connectionError event. They will not be re-used.
107523+
// Fixes https://github.com/nodejs/undici/issues/3895
107524+
for (const target of targets) {
107525+
// Do not use kRemoveClient here, as it will close the client,
107526+
// but the client cannot be closed in this state.
107527+
const idx = this[kClients].indexOf(target)
107528+
if (idx !== -1) {
107529+
this[kClients].splice(idx, 1)
107530+
}
107531+
}
107532+
})
107533107533
}
107534107534

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