upgraded safe npm packages (#6450)

This commit is contained in:
Zane
2026-01-12 11:47:10 -08:00
committed by GitHub
parent 72ba96b36c
commit 5bc0b8c51b
5 changed files with 1170 additions and 1328 deletions
+4
View File
@@ -267,6 +267,10 @@ export const createClient = (config: Config = {}): Client => {
}
return request;
},
serializedBody: getValidRequestBody(opts) as
| BodyInit
| null
| undefined,
url,
});
};
@@ -169,6 +169,8 @@ export const createSseClient = <TData = unknown>({
const { done, value } = await reader.read();
if (done) break;
buffer += value;
// Normalize line endings: CRLF -> LF, then CR -> LF
buffer = buffer.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
const chunks = buffer.split('\n\n');
buffer = chunks.pop() ?? '';
File diff suppressed because one or more lines are too long