Skip to content

Commit ef4383b

Browse files
nodejs-github-botmarco-ippolito
authored andcommitted
deps: update undici to 6.2.1
PR-URL: nodejs#51278 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
1 parent 68885d5 commit ef4383b

File tree

2 files changed

+25
-40
lines changed

2 files changed

+25
-40
lines changed

deps/undici/src/lib/fetch/dataURL.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -604,13 +604,10 @@ function isHTTPWhiteSpace (char) {
604604
* @param {boolean} [trailing=true]
605605
*/
606606
function removeHTTPWhitespace (str, leading = true, trailing = true) {
607-
let lead = 0
608-
let trail = str.length - 1
609-
607+
let i = 0; let j = str.length
610608
if (leading) {
611609
while (lead < str.length && isHTTPWhiteSpace(str.charCodeAt(lead))) lead++
612610
}
613-
614611
if (trailing) {
615612
while (trail > 0 && isHTTPWhiteSpace(str.charCodeAt(trail))) trail--
616613
}
@@ -634,13 +631,10 @@ function isASCIIWhitespace (char) {
634631
* @param {boolean} [trailing=true]
635632
*/
636633
function removeASCIIWhitespace (str, leading = true, trailing = true) {
637-
let lead = 0
638-
let trail = str.length - 1
639-
634+
let i = 0; let j = str.length
640635
if (leading) {
641636
while (lead < str.length && isASCIIWhitespace(str.charCodeAt(lead))) lead++
642637
}
643-
644638
if (trailing) {
645639
while (trail > 0 && isASCIIWhitespace(str.charCodeAt(trail))) trail--
646640
}

deps/undici/src/package-lock.json

+23-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)