@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.js
CHANGED
|
@@ -8716,7 +8716,10 @@ var Stream = class _Stream {
|
|
|
8716
8716
|
async function* iterLines() {
|
|
8717
8717
|
const lineDecoder = new EyepopLineDecoder();
|
|
8718
8718
|
const iter = readableStreamAsyncIterable(await readableStream);
|
|
8719
|
-
for await (
|
|
8719
|
+
for await (let chunk of iter) {
|
|
8720
|
+
if (typeof chunk === "number") {
|
|
8721
|
+
chunk = new Uint8Array([chunk & 255]);
|
|
8722
|
+
}
|
|
8720
8723
|
for (const line of lineDecoder.decode(chunk)) {
|
|
8721
8724
|
yield line;
|
|
8722
8725
|
}
|
|
@@ -8764,7 +8767,10 @@ var Stream = class _Stream {
|
|
|
8764
8767
|
async function* iterLines() {
|
|
8765
8768
|
const lineDecoder = new EyepopLineDecoder();
|
|
8766
8769
|
const iter = readableStreamAsyncIterable(readableStream);
|
|
8767
|
-
for await (
|
|
8770
|
+
for await (let chunk of iter) {
|
|
8771
|
+
if (typeof chunk === "number") {
|
|
8772
|
+
chunk = new Uint8Array([chunk & 255]);
|
|
8773
|
+
}
|
|
8768
8774
|
for (const line of lineDecoder.decode(chunk)) {
|
|
8769
8775
|
yield line;
|
|
8770
8776
|
}
|