From 20cbf953d092f8a3d5d4126caea9c3c90b1d6f93 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 11 Oct 2026 19:00:29 +0500 Subject: bump dependencies --- node_modules/undici/lib/web/cookies/util.js | 88 ++++- .../lib/web/eventsource/eventsource-stream.js | 395 +++++++++++++-------- .../undici/lib/web/websocket/connection.js | 2 +- .../undici/lib/web/websocket/permessage-deflate.js | 5 + 4 files changed, 330 insertions(+), 160 deletions(-) (limited to 'node_modules/undici/lib/web') diff --git a/node_modules/undici/lib/web/cookies/util.js b/node_modules/undici/lib/web/cookies/util.js index 254f541..ca408e1 100644 --- a/node_modules/undici/lib/web/cookies/util.js +++ b/node_modules/undici/lib/web/cookies/util.js @@ -105,7 +105,7 @@ function validateCookiePath (path) { if ( code < 0x20 || // exclude CTLs (0-31) - code === 0x7F || // DEL + code > 0x7E || // exclude DEL and non-ascii code === 0x3B // ; ) { throw new Error('Invalid cookie path') @@ -114,16 +114,80 @@ function validateCookiePath (path) { } /** - * I have no idea why these values aren't allowed to be honest, - * but Deno tests these. - Khafra + * ::= | + * + * ::= any one of the 52 alphabetic characters A through Z in + * upper case and a through z in lower case + * + * ::= any one of the ten digits 0 through 9r + * + * @see https://www.rfc-editor.org/rfc/rfc1034#section-3.5 + * @param {number} code + */ +function isLetterOrDigit (code) { + return ( + (code >= 0x30 && code <= 0x39) || // 0-9 + (code >= 0x41 && code <= 0x5A) || // A-Z + (code >= 0x61 && code <= 0x7A) // a-z + ) +} + +/** + * Validates a cookie domain against the "preferred name syntax". + * + * ::= | " " + * ::=