@eyepop.ai/eyepop 1.11.2 → 1.11.3
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/eyepop.index.mjs
CHANGED
|
@@ -8654,7 +8654,10 @@ var Stream = class _Stream {
|
|
|
8654
8654
|
async function* iterLines() {
|
|
8655
8655
|
const lineDecoder = new EyepopLineDecoder();
|
|
8656
8656
|
const iter = readableStreamAsyncIterable(await readableStream);
|
|
8657
|
-
for await (
|
|
8657
|
+
for await (let chunk of iter) {
|
|
8658
|
+
if (typeof chunk === "number") {
|
|
8659
|
+
chunk = new Uint8Array([chunk & 255]);
|
|
8660
|
+
}
|
|
8658
8661
|
for (const line of lineDecoder.decode(chunk)) {
|
|
8659
8662
|
yield line;
|
|
8660
8663
|
}
|
|
@@ -8702,7 +8705,10 @@ var Stream = class _Stream {
|
|
|
8702
8705
|
async function* iterLines() {
|
|
8703
8706
|
const lineDecoder = new EyepopLineDecoder();
|
|
8704
8707
|
const iter = readableStreamAsyncIterable(readableStream);
|
|
8705
|
-
for await (
|
|
8708
|
+
for await (let chunk of iter) {
|
|
8709
|
+
if (typeof chunk === "number") {
|
|
8710
|
+
chunk = new Uint8Array([chunk & 255]);
|
|
8711
|
+
}
|
|
8706
8712
|
for (const line of lineDecoder.decode(chunk)) {
|
|
8707
8713
|
yield line;
|
|
8708
8714
|
}
|