@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.
- package/dist/clients/core/serverSentEvents.ts +2 -0
- package/dist/{config-C5xWXzTz.d.cts → config-CBa-XLy8.d.cts} +1007 -839
- package/dist/{config-eqVtXEeO.d.mts → config-uoaRJc6A.d.mts} +1008 -840
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/openApi-AbaojA3X.mjs +13 -0
- package/dist/openApi-AbaojA3X.mjs.map +1 -0
- package/dist/openApi-CSMCX27Y.cjs +13 -0
- package/dist/openApi-CSMCX27Y.cjs.map +1 -0
- package/dist/run.cjs +1 -1
- package/dist/run.cjs.map +1 -1
- package/dist/run.mjs +1 -1
- package/dist/run.mjs.map +1 -1
- package/dist/src-CmkI6L90.mjs +11 -0
- package/dist/src-CmkI6L90.mjs.map +1 -0
- package/dist/src-odo5Y_R2.cjs +19 -0
- package/dist/src-odo5Y_R2.cjs.map +1 -0
- package/package.json +2 -2
- package/dist/openApi-DlyxIg9f.mjs +0 -17
- package/dist/openApi-DlyxIg9f.mjs.map +0 -1
- package/dist/openApi-DszQAwQH.cjs +0 -17
- package/dist/openApi-DszQAwQH.cjs.map +0 -1
- package/dist/src-9qIIwEzI.cjs +0 -19
- package/dist/src-9qIIwEzI.cjs.map +0 -1
- package/dist/src-BNSjnWaN.mjs +0 -11
- package/dist/src-BNSjnWaN.mjs.map +0 -1
|
@@ -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() ?? '';
|