From b92ace3eb016aa4c9277846341f9aa62e72842fb Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Mon, 17 Jun 2024 20:47:06 +0000 Subject: [PATCH] deps: update undici to 6.19.1 PR-URL: https://github.com/nodejs/node/pull/53468 Reviewed-By: Marco Ippolito Reviewed-By: Chemi Atlow Reviewed-By: Matthew Aitken Reviewed-By: Rafael Gonzaga Reviewed-By: Matteo Collina --- deps/undici/src/lib/web/fetch/util.js | 11 +++++++---- deps/undici/src/package-lock.json | 28 +++++++++++++-------------- deps/undici/src/package.json | 2 +- deps/undici/undici.js | 2 +- src/undici_version.h | 2 +- 5 files changed, 24 insertions(+), 21 deletions(-) diff --git a/deps/undici/src/lib/web/fetch/util.js b/deps/undici/src/lib/web/fetch/util.js index 1983f868b8e056..c53bddbe04d291 100644 --- a/deps/undici/src/lib/web/fetch/util.js +++ b/deps/undici/src/lib/web/fetch/util.js @@ -259,10 +259,13 @@ function appendRequestOriginHeader (request) { // TODO: implement "byte-serializing a request origin" let serializedOrigin = request.origin - // "'client' is changed to an origin during fetching." - // This doesn't happen in undici (in most cases) because undici, by default, - // has no concept of origin. - if (serializedOrigin === 'client') { + // - "'client' is changed to an origin during fetching." + // This doesn't happen in undici (in most cases) because undici, by default, + // has no concept of origin. + // - request.origin can also be set to request.client.origin (client being + // an environment settings object), which is undefined without using + // setGlobalOrigin. + if (serializedOrigin === 'client' || serializedOrigin === undefined) { return } diff --git a/deps/undici/src/package-lock.json b/deps/undici/src/package-lock.json index 1c4382f10127e8..8fb69690581722 100644 --- a/deps/undici/src/package-lock.json +++ b/deps/undici/src/package-lock.json @@ -1,12 +1,12 @@ { "name": "undici", - "version": "6.19.0", + "version": "6.19.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "undici", - "version": "6.19.0", + "version": "6.19.1", "license": "MIT", "devDependencies": { "@fastify/busboy": "2.1.1", @@ -1670,9 +1670,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "18.19.34", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.34.tgz", - "integrity": "sha512-eXF4pfBNV5DAMKGbI02NnDtWrQ40hAN558/2vvS4gMpMIxaf6JmD7YjnZbq0Q9TDSSkKBamime8ewRoomHdt4g==", + "version": "18.19.35", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.35.tgz", + "integrity": "sha512-n+WiqynRake4DDX2tPh4NTxu4dA7BgmsaGKMRc/htuPZBi7w9FkVgSOWU/+92vVEYMz3QOWUr2AwHev9X2XiTg==", "dev": true, "license": "MIT", "dependencies": { @@ -2642,9 +2642,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001634", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001634.tgz", - "integrity": "sha512-fbBYXQ9q3+yp1q1gBk86tOFs4pyn/yxFm5ZNP18OXJDfA3txImOY9PhfxVggZ4vRHDqoU8NrKU81eN0OtzOgRA==", + "version": "1.0.30001636", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001636.tgz", + "integrity": "sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==", "dev": true, "funding": [ { @@ -9439,9 +9439,9 @@ } }, "node_modules/tsd": { - "version": "0.31.0", - "resolved": "https://registry.npmjs.org/tsd/-/tsd-0.31.0.tgz", - "integrity": "sha512-yjBiQ5n8OMv/IZOuhDjBy0ZLCoJ7rky/RxRh5W4sJ0oNNCU/kf6s3puPAkGNi59PptDdkcpUm+RsKSdjR2YbNg==", + "version": "0.31.1", + "resolved": "https://registry.npmjs.org/tsd/-/tsd-0.31.1.tgz", + "integrity": "sha512-sSL84A0SFwx2xGMWrxlGaarKFSQszWjJS2vgNDDLwatytzg2aq6ShlwHsBYxRNmjzXISODwMva5ZOdAg/4AoOA==", "dev": true, "license": "MIT", "dependencies": { @@ -10081,9 +10081,9 @@ "license": "ISC" }, "node_modules/ws": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.0.tgz", - "integrity": "sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "dev": true, "license": "MIT", "engines": { diff --git a/deps/undici/src/package.json b/deps/undici/src/package.json index bd649fdd174479..1302190e498e1d 100644 --- a/deps/undici/src/package.json +++ b/deps/undici/src/package.json @@ -1,6 +1,6 @@ { "name": "undici", - "version": "6.19.0", + "version": "6.19.1", "description": "An HTTP/1.1 client, written from scratch for Node.js", "homepage": "https://undici.nodejs.org", "bugs": { diff --git a/deps/undici/undici.js b/deps/undici/undici.js index d12a7c77ea767a..0bcbe10d575c8d 100644 --- a/deps/undici/undici.js +++ b/deps/undici/undici.js @@ -3917,7 +3917,7 @@ var require_util2 = __commonJS({ __name(appendFetchMetadata, "appendFetchMetadata"); function appendRequestOriginHeader(request) { let serializedOrigin = request.origin; - if (serializedOrigin === "client") { + if (serializedOrigin === "client" || serializedOrigin === void 0) { return; } if (request.responseTainting === "cors" || request.mode === "websocket") { diff --git a/src/undici_version.h b/src/undici_version.h index d7a5168251f74e..ec1879873efb49 100644 --- a/src/undici_version.h +++ b/src/undici_version.h @@ -2,5 +2,5 @@ // Refer to tools/dep_updaters/update-undici.sh #ifndef SRC_UNDICI_VERSION_H_ #define SRC_UNDICI_VERSION_H_ -#define UNDICI_VERSION "6.19.0" +#define UNDICI_VERSION "6.19.1" #endif // SRC_UNDICI_VERSION_H_