chore(deps-dev): bump msw from 2.13.4 to 2.14.6 (#22380)

* chore(deps-dev): bump msw from 2.13.4 to 2.14.6

* chore: rebuild pnpm
This commit is contained in:
Tony 2026-06-29 21:38:08 +08:00 committed by GitHub
parent abf8139270
commit b3a8898952
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 358 additions and 401 deletions

View File

@ -188,7 +188,7 @@
"lint-staged": "17.0.8",
"magic-string": "0.30.21",
"mockdate": "3.0.5",
"msw": "2.13.4",
"msw": "2.14.6",
"node-network-devtools": "1.0.30",
"oxfmt": "0.56.0",
"oxlint": "1.71.0",
@ -261,7 +261,7 @@
"side-channel": "npm:@nolyfill/side-channel@^1"
},
"patchedDependencies": {
"@mswjs/interceptors@0.41.3": "patches/@mswjs__interceptors@0.41.3.patch",
"@mswjs/interceptors@0.41.9": "patches/@mswjs__interceptors@0.41.9.patch",
"rss-parser@3.13.0": "patches/rss-parser@3.13.0.patch"
}
}

View File

@ -1,17 +1,17 @@
diff --git a/lib/node/ClientRequest-Ca8Qykuv.mjs b/lib/node/ClientRequest-Ca8Qykuv.mjs
index c123d7d2f63f5ddba9fc47ace83d6ddbc6570329..5ceda7dc46f142692ae19179d58b4e6f410cd199 100644
--- a/lib/node/ClientRequest-Ca8Qykuv.mjs
+++ b/lib/node/ClientRequest-Ca8Qykuv.mjs
@@ -199,7 +199,7 @@ function restoreHeadersPrototype() {
diff --git a/lib/node/ClientRequest-DGhBX21V.mjs b/lib/node/ClientRequest-DGhBX21V.mjs
index 1628fe71f530b204bf13a13d1f16833bd8104d5a..abdb7d5b93fa87eb99e57ef0a0732a831e55fa63 100644
--- a/lib/node/ClientRequest-DGhBX21V.mjs
+++ b/lib/node/ClientRequest-DGhBX21V.mjs
@@ -214,7 +214,7 @@ function restoreHeadersPrototype() {
function getRawFetchHeaders(headers) {
if (!Reflect.has(headers, kRawHeaders)) return Array.from(headers.entries());
const rawHeaders = Reflect.get(headers, kRawHeaders);
- return rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());
+ return rawHeaders && rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());
+ return rawHeaders?.length > 0 ? rawHeaders : Array.from(headers.entries());
}
/**
* Infers the raw headers from the given `HeadersInit` provided
@@ -298,6 +298,7 @@ var MockHttpSocket = class extends MockSocket {
@@ -313,6 +313,7 @@ var MockHttpSocket = class extends MockSocket {
const headers = FetchResponse.parseRawHeaders([...this.requestRawHeadersBuffer, ...rawHeaders || []]);
this.requestRawHeadersBuffer.length = 0;
const canHaveBody = method !== "GET" && method !== "HEAD";

File diff suppressed because it is too large Load Diff