Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(scrapeURL/pdf): update mock Blob implementation to pass TypeScript

Gergő Móriczc543f4f76c0f
diff --git a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
index 9d2f11b19..6bac2ba40 100644
--- a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
@@ -32,6 +32,9 @@ async function scrapePDFWithLlamaParse(
tempFilePath,
) as unknown as ReadableStream<Uint8Array>;
},
+ bytes() {
+ throw Error("Unimplemented in mock Blob: bytes");
+ },
arrayBuffer() {
throw Error("Unimplemented in mock Blob: arrayBuffer");
},