Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a92fd57

Browse filesBrowse files
build(deps): bump undici from 5.28.5 to 5.29.0 (#1251)
* build(deps): bump undici from 5.28.5 to 5.29.0 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> * check failure fix --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: chiranjib-swain <chiranjib-swain@github.com>
1 parent 128b2c8 commit a92fd57
Copy full SHA for a92fd57

File tree

Expand file treeCollapse file tree

3 files changed

+35
-35
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+35
-35
lines changed
Open diff view settings
Collapse file

‎.licenses/npm/undici.dep.yml‎

Copy file name to clipboardExpand all lines: .licenses/npm/undici.dep.yml
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎dist/index.js‎

Copy file name to clipboardExpand all lines: dist/index.js
+31-31Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -71047,7 +71047,7 @@ module.exports = {
7104771047

7104871048

7104971049
const { parseSetCookie } = __nccwpck_require__(4408)
71050-
const { stringify, getHeadersList } = __nccwpck_require__(3121)
71050+
const { stringify } = __nccwpck_require__(3121)
7105171051
const { webidl } = __nccwpck_require__(1744)
7105271052
const { Headers } = __nccwpck_require__(554)
7105371053

@@ -71123,14 +71123,13 @@ function getSetCookies (headers) {
7112371123

7112471124
webidl.brandCheck(headers, Headers, { strict: false })
7112571125

71126-
const cookies = getHeadersList(headers).cookies
71126+
const cookies = headers.getSetCookie()
7112771127

7112871128
if (!cookies) {
7112971129
return []
7113071130
}
7113171131

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

7113671135
/**
@@ -71558,14 +71557,15 @@ module.exports = {
7155871557
/***/ }),
7155971558

7156071559
/***/ 3121:
71561-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
71560+
/***/ ((module) => {
7156271561

7156371562
"use strict";
7156471563

7156571564

71566-
const assert = __nccwpck_require__(9491)
71567-
const { kHeadersList } = __nccwpck_require__(2785)
71568-
71565+
/**
71566+
* @param {string} value
71567+
* @returns {boolean}
71568+
*/
7156971569
function isCTLExcludingHtab (value) {
7157071570
if (value.length === 0) {
7157171571
return false
@@ -71826,31 +71826,13 @@ function stringify (cookie) {
7182671826
return out.join('; ')
7182771827
}
7182871828

71829-
let kHeadersListNode
71830-
71831-
function getHeadersList (headers) {
71832-
if (headers[kHeadersList]) {
71833-
return headers[kHeadersList]
71834-
}
71835-
71836-
if (!kHeadersListNode) {
71837-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
71838-
(symbol) => symbol.description === 'headers list'
71839-
)
71840-
71841-
assert(kHeadersListNode, 'Headers cannot be parsed')
71842-
}
71843-
71844-
const headersList = headers[kHeadersListNode]
71845-
assert(headersList)
71846-
71847-
return headersList
71848-
}
71849-
7185071829
module.exports = {
7185171830
isCTLExcludingHtab,
71852-
stringify,
71853-
getHeadersList
71831+
validateCookieName,
71832+
validateCookiePath,
71833+
validateCookieValue,
71834+
toIMFDate,
71835+
stringify
7185471836
}
7185571837

7185671838

@@ -75854,6 +75836,7 @@ const {
7585475836
isValidHeaderName,
7585575837
isValidHeaderValue
7585675838
} = __nccwpck_require__(2538)
75839+
const util = __nccwpck_require__(3837)
7585775840
const { webidl } = __nccwpck_require__(1744)
7585875841
const assert = __nccwpck_require__(9491)
7585975842

@@ -76407,6 +76390,9 @@ Object.defineProperties(Headers.prototype, {
7640776390
[Symbol.toStringTag]: {
7640876391
value: 'Headers',
7640976392
configurable: true
76393+
},
76394+
[util.inspect.custom]: {
76395+
enumerable: false
7641076396
}
7641176397
})
7641276398

@@ -85583,6 +85569,20 @@ class Pool extends PoolBase {
8558385569
? { ...options.interceptors }
8558485570
: undefined
8558585571
this[kFactory] = factory
85572+
85573+
this.on('connectionError', (origin, targets, error) => {
85574+
// If a connection error occurs, we remove the client from the pool,
85575+
// and emit a connectionError event. They will not be re-used.
85576+
// Fixes https://github.com/nodejs/undici/issues/3895
85577+
for (const target of targets) {
85578+
// Do not use kRemoveClient here, as it will close the client,
85579+
// but the client cannot be closed in this state.
85580+
const idx = this[kClients].indexOf(target)
85581+
if (idx !== -1) {
85582+
this[kClients].splice(idx, 1)
85583+
}
85584+
}
85585+
})
8558685586
}
8558785587

8558885588
[kGetDispatcher] () {
Collapse file

‎package-lock.json‎

Copy file name to clipboardExpand all lines: package-lock.json
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.