sim 2.2.29 → 2.2.30
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/index.js +4 -4
- package/dist/runtime.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23506,9 +23506,9 @@ async function* readNdjson(body, protocol) {
|
|
|
23506
23506
|
try {
|
|
23507
23507
|
while (true) {
|
|
23508
23508
|
const { done, value } = await reader.read();
|
|
23509
|
-
|
|
23510
|
-
const lines = buffer.split(`
|
|
23509
|
+
const lines = (done ? decoder.decode() : decoder.decode(value, { stream: true })).split(`
|
|
23511
23510
|
`);
|
|
23511
|
+
lines[0] = buffer + lines[0];
|
|
23512
23512
|
buffer = done ? "" : lines.pop() ?? "";
|
|
23513
23513
|
for (const line of lines) {
|
|
23514
23514
|
const event = parse(line);
|
|
@@ -25117,9 +25117,9 @@ async function* sseData(body) {
|
|
|
25117
25117
|
try {
|
|
25118
25118
|
while (true) {
|
|
25119
25119
|
const { done, value } = await reader.read();
|
|
25120
|
-
|
|
25121
|
-
const lines = buffer.split(`
|
|
25120
|
+
const lines = (done ? decoder.decode() : decoder.decode(value, { stream: true })).split(`
|
|
25122
25121
|
`);
|
|
25122
|
+
lines[0] = buffer + lines[0];
|
|
25123
25123
|
buffer = done ? "" : lines.pop() ?? "";
|
|
25124
25124
|
for (const rawLine of lines) {
|
|
25125
25125
|
const line = rawLine.endsWith("\r") ? rawLine.slice(0, -1) : rawLine;
|
package/dist/runtime.js
CHANGED
|
@@ -23555,9 +23555,9 @@ async function* readNdjson(body, protocol) {
|
|
|
23555
23555
|
try {
|
|
23556
23556
|
while (true) {
|
|
23557
23557
|
const { done, value } = await reader.read();
|
|
23558
|
-
|
|
23559
|
-
const lines = buffer.split(`
|
|
23558
|
+
const lines = (done ? decoder.decode() : decoder.decode(value, { stream: true })).split(`
|
|
23560
23559
|
`);
|
|
23560
|
+
lines[0] = buffer + lines[0];
|
|
23561
23561
|
buffer = done ? "" : lines.pop() ?? "";
|
|
23562
23562
|
for (const line of lines) {
|
|
23563
23563
|
const event = parse(line);
|
|
@@ -25166,9 +25166,9 @@ async function* sseData(body) {
|
|
|
25166
25166
|
try {
|
|
25167
25167
|
while (true) {
|
|
25168
25168
|
const { done, value } = await reader.read();
|
|
25169
|
-
|
|
25170
|
-
const lines = buffer.split(`
|
|
25169
|
+
const lines = (done ? decoder.decode() : decoder.decode(value, { stream: true })).split(`
|
|
25171
25170
|
`);
|
|
25171
|
+
lines[0] = buffer + lines[0];
|
|
25172
25172
|
buffer = done ? "" : lines.pop() ?? "";
|
|
25173
25173
|
for (const rawLine of lines) {
|
|
25174
25174
|
const line = rawLine.endsWith("\r") ? rawLine.slice(0, -1) : rawLine;
|