@hey-api/openapi-ts 0.88.1 → 0.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,6 +167,8 @@ export const createSseClient = <TData = unknown>({
167
167
  const { done, value } = await reader.read();
168
168
  if (done) break;
169
169
  buffer += value;
170
+ // Normalize line endings: CRLF -> LF, then CR -> LF
171
+ buffer = buffer.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
170
172
 
171
173
  const chunks = buffer.split('\n\n');
172
174
  buffer = chunks.pop() ?? '';