@eyepop.ai/eyepop 1.11.1 → 1.11.2

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.
@@ -8652,7 +8652,7 @@ var Stream = class _Stream {
8652
8652
  static iterFromReadableStream(readableStream, controller, eventHandler) {
8653
8653
  let consumed = false;
8654
8654
  async function* iterLines() {
8655
- const lineDecoder = new LineDecoder();
8655
+ const lineDecoder = new EyepopLineDecoder();
8656
8656
  const iter = readableStreamAsyncIterable(await readableStream);
8657
8657
  for await (const chunk of iter) {
8658
8658
  for (const line of lineDecoder.decode(chunk)) {
@@ -8700,7 +8700,7 @@ var Stream = class _Stream {
8700
8700
  static fromReadableStream(readableStream, controller) {
8701
8701
  let consumed = false;
8702
8702
  async function* iterLines() {
8703
- const lineDecoder = new LineDecoder();
8703
+ const lineDecoder = new EyepopLineDecoder();
8704
8704
  const iter = readableStreamAsyncIterable(readableStream);
8705
8705
  for await (const chunk of iter) {
8706
8706
  for (const line of lineDecoder.decode(chunk)) {
@@ -8786,7 +8786,7 @@ var Stream = class _Stream {
8786
8786
  });
8787
8787
  }
8788
8788
  };
8789
- var _LineDecoder = class _LineDecoder {
8789
+ var _EyepopLineDecoder = class _EyepopLineDecoder {
8790
8790
  // TextDecoder found in browsers; not typed to avoid pulling in either "dom" or "node" types.
8791
8791
  constructor() {
8792
8792
  this.buffer = [];
@@ -8805,8 +8805,8 @@ var _LineDecoder = class _LineDecoder {
8805
8805
  if (!text) {
8806
8806
  return [];
8807
8807
  }
8808
- const trailingNewline = _LineDecoder.NEWLINE_CHARS.has(text[text.length - 1] || "");
8809
- let lines = text.split(_LineDecoder.NEWLINE_REGEXP);
8808
+ const trailingNewline = _EyepopLineDecoder.NEWLINE_CHARS.has(text[text.length - 1] || "");
8809
+ let lines = text.split(_EyepopLineDecoder.NEWLINE_REGEXP);
8810
8810
  if (lines.length === 1 && !trailingNewline) {
8811
8811
  this.buffer.push(lines[0]);
8812
8812
  return [];
@@ -8854,9 +8854,9 @@ var _LineDecoder = class _LineDecoder {
8854
8854
  }
8855
8855
  };
8856
8856
  // prettier-ignore
8857
- _LineDecoder.NEWLINE_CHARS = /* @__PURE__ */ new Set(["\n", "\r", "\v", "\f", "", "", "", "\x85", "\u2028", "\u2029"]);
8858
- _LineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r\x0b\x0c\x1c\x1d\x1e\x85\u2028\u2029]/g;
8859
- var LineDecoder = _LineDecoder;
8857
+ _EyepopLineDecoder.NEWLINE_CHARS = /* @__PURE__ */ new Set(["\n", "\r", "\v", "\f", "", "", "", "\x85", "\u2028", "\u2029"]);
8858
+ _EyepopLineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r\x0b\x0c\x1c\x1d\x1e\x85\u2028\u2029]/g;
8859
+ var EyepopLineDecoder = _EyepopLineDecoder;
8860
8860
  function readableStreamAsyncIterable(stream) {
8861
8861
  if (stream[Symbol.asyncIterator]) return stream;
8862
8862
  const reader = stream.getReader();