@cloudflare/ai-search-snippet 0.0.33 → 0.0.34

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.
@@ -1,6 +1,6 @@
1
- var U = Object.defineProperty;
2
- var _ = (n, i, e) => i in n ? U(n, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[i] = e;
3
- var a = (n, i, e) => _(n, typeof i != "symbol" ? i + "" : i, e);
1
+ var P = Object.defineProperty;
2
+ var U = (n, i, e) => i in n ? P(n, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[i] = e;
3
+ var a = (n, i, e) => U(n, typeof i != "symbol" ? i + "" : i, e);
4
4
  const g = [
5
5
  "Searching...",
6
6
  "Digging through results...",
@@ -180,7 +180,10 @@ class K {
180
180
  timestamp: l.item.timestamp ?? void 0,
181
181
  url: l.item.key,
182
182
  image: l.item.metadata?.image || void 0,
183
- metadata: l.item.metadata
183
+ metadata: {
184
+ ...l.item.metadata,
185
+ instance_id: l.instance_id
186
+ }
184
187
  })
185
188
  );
186
189
  throw c.success === !1 ? new Error(c.error) : new Error("Unknown error");
@@ -213,8 +216,8 @@ class K {
213
216
  const { done: u, value: S } = await l.read();
214
217
  if (u)
215
218
  break;
216
- const P = p.decode(S, { stream: !0 });
217
- c += P;
219
+ const _ = p.decode(S, { stream: !0 });
220
+ c += _;
218
221
  }
219
222
  yield {
220
223
  type: "result",