diff --git a/package-lock.json b/package-lock.json index 371d90dc5..0fb016a63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,7 +54,7 @@ "superjson": "^2.2.1", "tesseract.js": "^5.1.0", "tiktoken": "^1.0.15", - "turndown": "^7.1.3", + "turndown": "^7.2.0", "uuid": "^9.0.1", "zod": "^3.23.8", "zustand": "^4.5.2" @@ -1028,6 +1028,11 @@ "node-pre-gyp": "bin/node-pre-gyp" } }, + "node_modules/@mixmark-io/domino": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@mixmark-io/domino/-/domino-2.2.0.tgz", + "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw==" + }, "node_modules/@mui/base": { "version": "5.0.0-beta.42", "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.42.tgz", @@ -3334,11 +3339,6 @@ "url": "https://github.com/fb55/domhandler?sponsor=1" } }, - "node_modules/domino": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/domino/-/domino-2.1.6.tgz", - "integrity": "sha512-3VdM/SXBZX2omc9JF9nOPCtDaYQ67BGp5CoLpIQlO2KCAPETs8TcDHacF26jXadGbvUteZzRTeos2fhID5+ucQ==" - }, "node_modules/domutils": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", @@ -8449,11 +8449,11 @@ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/turndown": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/turndown/-/turndown-7.1.3.tgz", - "integrity": "sha512-Z3/iJ6IWh8VBiACWQJaA5ulPQE5E1QwvBHj00uGzdQxdRnd8fh1DPqNOJqzQDu6DkOstORrtXzf/9adB+vMtEA==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/turndown/-/turndown-7.2.0.tgz", + "integrity": "sha512-eCZGBN4nNNqM9Owkv9HAtWRYfLA4h909E/WGAWWBpmB275ehNhZyk87/Tpvjbp0jjNl9XwCsbe6bm6CqFsgD+A==", "dependencies": { - "domino": "^2.1.6" + "@mixmark-io/domino": "^2.2.0" } }, "node_modules/type-check": { diff --git a/package.json b/package.json index 850bb390a..a86b13874 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "superjson": "^2.2.1", "tesseract.js": "^5.1.0", "tiktoken": "^1.0.15", - "turndown": "^7.1.3", + "turndown": "^7.2.0", "uuid": "^9.0.1", "zod": "^3.23.8", "zustand": "^4.5.2" diff --git a/src/modules/browse/browse.router.ts b/src/modules/browse/browse.router.ts index 943a89788..128050563 100644 --- a/src/modules/browse/browse.router.ts +++ b/src/modules/browse/browse.router.ts @@ -165,7 +165,7 @@ async function workerPuppeteer( result.error = '[Puppeteer] Empty content'; } } catch (error: any) { - result.error = '[Puppeteer] ' + (error?.message || error?.toString() || 'Unknown evaluate error'); + result.error = '[Puppeteer] ' + (error?.message || error?.toString() || 'Unknown content error'); } // get a screenshot of the page