Skip to content

Commit

Permalink
deps: update undici to 6.2.1
Browse files Browse the repository at this point in the history
PR-URL: nodejs#51278
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
  • Loading branch information
nodejs-github-bot authored and marco-ippolito committed Feb 2, 2024
1 parent 68885d5 commit ef4383b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 40 deletions.
10 changes: 2 additions & 8 deletions deps/undici/src/lib/fetch/dataURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,13 +604,10 @@ function isHTTPWhiteSpace (char) {
* @param {boolean} [trailing=true]
*/
function removeHTTPWhitespace (str, leading = true, trailing = true) {
let lead = 0
let trail = str.length - 1

let i = 0; let j = str.length
if (leading) {
while (lead < str.length && isHTTPWhiteSpace(str.charCodeAt(lead))) lead++
}

if (trailing) {
while (trail > 0 && isHTTPWhiteSpace(str.charCodeAt(trail))) trail--
}
Expand All @@ -634,13 +631,10 @@ function isASCIIWhitespace (char) {
* @param {boolean} [trailing=true]
*/
function removeASCIIWhitespace (str, leading = true, trailing = true) {
let lead = 0
let trail = str.length - 1

let i = 0; let j = str.length
if (leading) {
while (lead < str.length && isASCIIWhitespace(str.charCodeAt(lead))) lead++
}

if (trailing) {
while (trail > 0 && isASCIIWhitespace(str.charCodeAt(trail))) trail--
}
Expand Down
55 changes: 23 additions & 32 deletions deps/undici/src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef4383b

Please sign in to comment.