A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feat(workers): adding a local metascraper plugin for Reddit posts (#1302)
David Woods7cc4b08aab65
diff --git a/apps/workers/metascraper-plugins/metascraper-reddit.ts b/apps/workers/metascraper-plugins/metascraper-reddit.tsnew file mode 100644index 00000000..1fbee3ea--- /dev/null+++ b/apps/workers/metascraper-plugins/metascraper-reddit.ts@@ -0,0 +1,100 @@+import type { Rules } from "metascraper";++import logger from "@karakeep/shared/logger";++/**+ * This is a metascraper plugin to select a better+ * 'image' attribute for Reddit links, specifically+ * those sharing images. It will also extract the+ * Post Title for a Reddit post instead of use the+ * default.+ *+ * As of writing this, Reddit posts do not define+ * an open-graph image (og:image) attribute, so+ * metascraper resorts to looking for images in+ * the HTML DOM, and selects the first one.+ *+ * In Reddit posts, the first image is typically+ * the profile picture of the OP, which Karakeep+ * is using for the thumbnail.+ *+ * This metascraper plugin instead looks for images+ * with the domain i.redd.it, on which Reddit hosts+ * their preview images for posts. If this plugin+ * finds an i.redd.it image, it provides that for+ * the image metadata.+ *+ * If there is not a matching image, this plugin+ * will return 'undefined' and the next plugin+ * should continue to attempt to extract images.+ *+ * Note: there is another way to accomplish this.+ * If '.json' is appended to a Reddit url, the+ * server will provide a JSON document summarizing+ * the post. If there are preview images, they are+ * included in a section of the JSON. To prevent+ * additional server requests, this method is not+ * currently being used.+ **/++const domainFromUrl = (url: string): string => {+ /**+ * First-party metascraper plugins import metascraper-helpers,+ * which exposes a parseUrl function from the tldtr package.+ * This function does similar to the 'domainWithoutSuffix'+ * field from the tldtr package, without requiring any+ * additional packages.+ **/+ try {+ // Create a URL instance to parse the hostname+ const hostname = new URL(url).hostname;+ const parts = hostname.split(".");+ // Return the part before the TLD (assuming at least two segments)+ // For example, "www.example.com" -> ["www", "example", "com"]+ if (parts.length >= 2) {+ return parts[parts.length - 2];+ }+ return hostname;+ } catch (error) {+ logger.error(+ "[MetascraperReddit] Test>domainFromUrl received an invalid URL:",+ error,+ );+ return "";+ }+};++const test = ({ url }: { url: string }): boolean =>+ domainFromUrl(url).toLowerCase() === "reddit";++const metascraperReddit = () => {+ const rules: Rules = {+ pkgName: "metascraper-reddit",+ test,+ image: ({ htmlDom }) => {+ // 'preview' subdomain images are more likely to be what we're after+ // but it could be in the 'i' subdomain.+ // returns undefined if neither exists+ const previewImages = htmlDom('img[src*="preview.redd.it"]')+ .map((i, el) => htmlDom(el).attr("src"))+ .get();+ const iImages = htmlDom('img[src*="i.redd.it"]')+ .map((i, el) => htmlDom(el).attr("src"))+ .get();+ return previewImages[0] || iImages[0];+ },+ title: ({ htmlDom }) => {+ const title: string | undefined = htmlDom("shreddit-title[title]")+ .first()+ .attr("title");+ const postTitle: string | undefined =+ title ??+ htmlDom("shreddit-post[post-title]").first().attr("post-title");+ return postTitle ? postTitle.trim() : undefined;+ },+ };++ return rules;+};++export default metascraperReddit;diff --git a/apps/workers/package.json b/apps/workers/package.jsonindex 2ed6f9df..595a6e00 100644--- a/apps/workers/package.json+++ b/apps/workers/package.json@@ -18,19 +18,19 @@"execa": "9.3.1","jsdom": "^24.0.0","liteque": "^0.3.2",- "metascraper": "^5.46.5",- "metascraper-amazon": "^5.45.22",- "metascraper-author": "5.46.5",- "metascraper-date": "^5.46.5",- "metascraper-description": "^5.45.22",- "metascraper-image": "^5.45.22",- "metascraper-logo": "^5.45.22",- "metascraper-logo-favicon": "^5.45.22",- "metascraper-publisher": "^5.46.5",- "metascraper-readability": "^5.45.22",- "metascraper-title": "^5.45.22",+ "metascraper": "^5.46.18",+ "metascraper-amazon": "^5.46.18",+ "metascraper-author": "5.46.18",+ "metascraper-date": "^5.46.18",+ "metascraper-description": "^5.46.18",+ "metascraper-image": "^5.46.18",+ "metascraper-logo": "^5.46.18",+ "metascraper-logo-favicon": "^5.46.18",+ "metascraper-publisher": "^5.46.18",+ "metascraper-readability": "^5.46.18",+ "metascraper-title": "^5.46.18","metascraper-twitter": "^5.45.6",- "metascraper-url": "^5.45.22",+ "metascraper-url": "^5.46.18","node-cron": "^3.0.3","node-fetch": "^3.3.2","pdf2json": "^3.1.5",@@ -48,7 +48,6 @@"devDependencies": {"@karakeep/prettier-config": "workspace:^0.1.0","@types/jsdom": "^21.1.6",- "@types/metascraper": "^5.14.3","@types/node-cron": "^3.0.11"},"scripts": {diff --git a/apps/workers/workers/crawlerWorker.ts b/apps/workers/workers/crawlerWorker.tsindex d884d149..bf083ff6 100644--- a/apps/workers/workers/crawlerWorker.ts+++ b/apps/workers/workers/crawlerWorker.ts@@ -63,12 +63,15 @@ import {} from "@karakeep/shared/queues";import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";+import metascraperReddit from "../metascraper-plugins/metascraper-reddit";+const metascraperParser = metascraper([metascraperDate({dateModified: true,datePublished: true,}),metascraperAmazon(),+ metascraperReddit(),metascraperReadability(),metascraperAuthor(),metascraperPublisher(),diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 20c65a62..8abb7ee1 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -746,7 +746,7 @@ importers:version: 4.3.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))vitest:specifier: ^1.6.1- version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])apps/workers:dependencies:@@ -793,44 +793,44 @@ importers:specifier: ^0.3.2version: 0.3.2(@types/[email protected])(@types/[email protected])([email protected])([email protected])metascraper:- specifier: ^5.46.5- version: 5.46.9+ specifier: ^5.46.18+ version: 5.47.1metascraper-amazon:- specifier: ^5.45.22- version: 5.45.22+ specifier: ^5.46.18+ version: 5.47.1metascraper-author:- specifier: 5.46.5- version: 5.46.5+ specifier: 5.46.18+ version: 5.46.18metascraper-date:- specifier: ^5.46.5- version: 5.46.5+ specifier: ^5.46.18+ version: 5.47.1metascraper-description:- specifier: ^5.45.22- version: 5.45.22+ specifier: ^5.46.18+ version: 5.47.1metascraper-image:- specifier: ^5.45.22- version: 5.45.22+ specifier: ^5.46.18+ version: 5.47.1metascraper-logo:- specifier: ^5.45.22- version: 5.45.22+ specifier: ^5.46.18+ version: 5.47.1metascraper-logo-favicon:- specifier: ^5.45.22- version: 5.45.24+ specifier: ^5.46.18+ version: 5.47.1metascraper-publisher:- specifier: ^5.46.5- version: 5.46.5+ specifier: ^5.46.18+ version: 5.47.1metascraper-readability:- specifier: ^5.45.22- version: 5.45.22+ specifier: ^5.46.18+ version: 5.47.1metascraper-title:- specifier: ^5.45.22- version: 5.45.22+ specifier: ^5.46.18+ version: 5.47.1metascraper-twitter:specifier: ^5.45.6version: 5.45.6metascraper-url:- specifier: ^5.45.22- version: 5.45.22+ specifier: ^5.46.18+ version: 5.47.1node-cron:specifier: ^3.0.3version: 3.0.3@@ -877,9 +877,6 @@ importers:'@types/jsdom':specifier: ^21.1.6version: 21.1.7- '@types/metascraper':- specifier: ^5.14.3- version: 5.41.0'@types/node-cron':specifier: ^3.0.11version: 3.0.11@@ -974,7 +971,7 @@ importers:version: 4.3.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))vitest:specifier: ^1.6.1- version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])packages/db:dependencies:@@ -1039,7 +1036,7 @@ importers:version: 4.3.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))vitest:specifier: ^1.6.1- version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])packages/open-api:dependencies:@@ -1132,7 +1129,7 @@ importers:version: link:../../tooling/typescriptvitest:specifier: ^1.6.1- version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])packages/shared-react:dependencies:@@ -1212,9 +1209,7 @@ importers:version: 4.3.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))vitest:specifier: ^1.6.1- version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])-- tooling/eslint: {}+ version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])tooling/github: {}@@ -3463,8 +3458,8 @@ packages:'@types/react': '>=16'react: '>=16'- '@metascraper/[email protected]':- resolution: {integrity: sha512-SuFJ7qu0MK1yaV9VnVDVY0eMsJ6hU3/4XYPhjrdZL9GejJUzzDhTTzNoi1V5NYF68YF+VlGEwQL101wDc/zo+A==}+ '@metascraper/[email protected]':+ resolution: {integrity: sha512-OBF7zyyIWmvMYmScPw9jcoxAReeHFMmZOQ1uvVQHKbXw1HMilwUcfoCFfySpLUny50C0uQuGoecwfP8qu4wIzg==}engines: {node: '>= 16'}'@metascraper/[email protected]':@@ -3491,10 +3486,6 @@ packages:resolution: {integrity: sha512-KG1CZhZfWg+u8pxeM/mByJDScJSrjjxLc8fwQqbsS8xCjBmQfMNEBTotYdNanKekepnfRI85GtgQlctLFpcYPw==}engines: {node: '>=18'}- '@mozilla/[email protected]':- resolution: {integrity: sha512-Z+CZ3QaosfFaTqvhQsIktyGrjFjSC0Fa4EMph4mqKnWhmyoGICsV/8QK+8HpXut6zV7zwfWwqDmEjtk1Qf6EgQ==}- engines: {node: '>=14.0.0'}-'@mozilla/[email protected]':resolution: {integrity: sha512-juG5VWh4qAivzTAeMzvY9xs9HY5rAcr2E4I7tiSSCokRFi7XIZCAu92ZkSTsIj1OPceCifL3cpfteP3pDT9/QQ==}engines: {node: '>=14.0.0'}@@ -5031,10 +5022,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw==}- '@types/[email protected]':- resolution: {integrity: sha512-lYqO1fjHHhJVFs07ZGZDpn6R2QWBkPAxaQyXFQ9KNHrW+SmIlXMFLmV4wMiWDuBACH7Ir19CXuWbp2Pv5dCGzQ==}- deprecated: This is a stub types definition. metascraper provides its own type definitions, so you do not need this installed.-'@types/[email protected]':resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==}@@ -5550,6 +5537,10 @@ packages:resolution: {integrity: sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==}+ resolution: {integrity: sha512-pS8gDRFMFDGEVaWUFy9i9OIJQ5o9L8XNQMnv7Ku76XONO5pxK+1cN9IackyPUv717Vg1J8KI2AaLJG28ZHKIkw==}+ engines: {node: '>= 12'}+resolution: {integrity: sha512-WfoBo4E/TbCX1G95XTjbWTE3X2XLG0m1Xbv2cwOtuPdyH9CZvnaA5nCt1ucjaKEgW2A5IF71hxrRhr83Je5xjA==}@@ -5996,10 +5987,6 @@ packages:resolution: {integrity: sha512-JfJjUnq25y9yg4FABRRVPmBGWPZZi+AQXT4mxupb67766/0UlhG8PAZCz6xzEMXTbW3CsSoE8PcCWA49n35mKg==}- resolution: {integrity: sha512-PW3tzuztH7OFbwdCCwv1k8F6ALFs5Yet1Neh5JJBL1GGj8zsLj3ZgZU6StUyM6gSsVRMv8EE6LqpTjM52Mshrw==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}-resolution: {integrity: sha512-//a/HhnCQ4zFHxRfi1m+jQwr8o0Gxsg0GUjZ39O6ud9lkhrnuLGX1oOKjGsivm9AVMS79cn0PmTa6JCRlzgfWA==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}@@ -8047,6 +8034,10 @@ packages:resolution: {integrity: sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==}+ resolution: {integrity: sha512-h1x7f+dzKutYjTULzBdk1KxaZdiXAAaKWusTsrLtGrdKP/Bgz0U0GxZHKvNfFcBg6Tr/6edPuXqluilXmnjojA==}+ engines: {node: '>=18.0.0'}+resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}engines: {node: '>= 0.4'}@@ -8891,15 +8882,6 @@ packages:canvas:optional: true- resolution: {integrity: sha512-8i7LzZj7BF8uplX+ZyOlIz86V6TAsSs+np6m1kpW9u0JWi4z/1t+FzcK1aek+ybTnAC4KhBL4uXCNT0wcUIeCw==}- engines: {node: '>=18'}- peerDependencies:- canvas: ^2.11.2- peerDependenciesMeta:- canvas:- optional: true-resolution: {integrity: sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==}engines: {node: '>=18'}@@ -9511,56 +9493,56 @@ packages:resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}engines: {node: '>= 8'}- resolution: {integrity: sha512-NMd0pxjnRhPk5LatzOv6tiEmxOTLZAzfRzqYpRjV+y/cdczBiT5hcePWpgQfJRF9eqAglmxUSA4OtU36gtKauQ==}+ resolution: {integrity: sha512-L3Fc3EmhqbpQd6Gf597HUfUAWG15hEGJihi+wEVaE5p5NhvtW04tDBDUnou0TwkCrIPqz213fJfiVuyIrb93xQ==}engines: {node: '>= 16'}- resolution: {integrity: sha512-TKlqY7BVVzqphew842MwdtV5cNx3TG6l6rtswSzYOM2EhyuZuQPQUgrk6s20hRbZrCJM9XM+oc1PvzdmV7hXcg==}+ resolution: {integrity: sha512-sjyT2syAepMEPtzTxDv0yN3TZV59yHjiJgrqt2aQNEezblF1RlLCKzEd1TX1laXxcyo5WVEqw2tPXom3j/KC1g==}engines: {node: '>= 16'}- resolution: {integrity: sha512-PrgJioyTXm1ZqPpo0ybpKZ4u3QUDr3PQEWuKmQ5Xfe886haKF9N4b23KVDrME87nI975bwi3aH+3lo1msxL7ig==}+ resolution: {integrity: sha512-1SPAYMlVUP4JpBg1BMh1tes5cVj+YdDHbJETGUcA0cWNcaeCQ1BA4ucILwi57g15zRR+19cvzl0Yb8JmdSEXiw==}engines: {node: '>= 16'}- resolution: {integrity: sha512-z6z3MJrLcl366xagzSi+x56JOVSdTevAq5JMVh9NxLDKRfNSTmXYqCVC8mZmcJxjHCqJ2iinAMfgDvIdVgbVdA==}+ resolution: {integrity: sha512-ifggUx56xu7HnNEYuT8uGPB2OsnJNkdte/xjndlZj++ib9JgQZRmR5iLiRKuxuPM+BSoh5yuGRNfFzA4HDt7sw==}engines: {node: '>= 16'}- resolution: {integrity: sha512-oo0KHIReTrid2iVcJMi95hs+W0/D/u7rpMhyS9mJz30vpRC7j45Or4EGUC2yuUGq7wAqG1ehuWFwkuaJ9cF/mA==}+ resolution: {integrity: sha512-2MpzmngbtCrcP90PaW1S6pW+JfzLHMFZqkDhQdNgEluXzibDkhZiwSC5A60vVMP7tdjKE5tBfeXBDHygf7Q3vw==}engines: {node: '>= 16'}- resolution: {integrity: sha512-xK8GrMOIxlCT1Aa03j42zNQVagJWo49k7jc4h/ZRUZTBbvz8iWQgBTBALoxDTpWeufJnQQhMKpjKA0W8MkpRag==}+ resolution: {integrity: sha512-eYCTHhytDOcCEr0FTVHN4RZMEfHicWvc8WnLr3t+P3cQ9snC4N0X1qB6gZfKx/XGYTIpPJWbZuyTvtHTckIs4A==}engines: {node: '>= 16'}- resolution: {integrity: sha512-5jydNOnEWUhgcCE/OFMLL2qHcYINvY/GSQ4uIYbunLbgApozpDg5kR8S65itQU28O20PnjJJ4RZKfHu7g+CNSA==}+ resolution: {integrity: sha512-ei5pv5vYqnKFr/bZgORlpMEqsA99pQC+ECM8Mdr6HHisP7EoAFoFJdZRAkAS8BKdDYI7jRTItzyemsUmbztWLw==}engines: {node: '>= 16'}- resolution: {integrity: sha512-vmc6tMshN/0n9DrMlOBt1jxktNIAqLJTP28Z2HStOadlNg4m6L+hdmp0mFAjfTxCuzR3bJYmWRfba4b51ugIiA==}+ resolution: {integrity: sha512-jCNVvQP7i6gYJ47QIXlWYfsSE2qEvcsxYHRQf1oxNqzX51zzIBOxn4JHrEYqr0nah4mJa6G+wcUcX1NjA+jqsA==}engines: {node: '>= 16'}- resolution: {integrity: sha512-IKbavP624JWRsGnJhXQT1yuMj9urK9GTX+RI3SNYvvfo1YYKIj+98hZRODBSD6//PjCOnMNOVR6S2g1DPLAOkg==}+ resolution: {integrity: sha512-q1wrjFATgWcv9Ehe3rKlDGLrHLM6eO4OfcGgxC4aSlpc9hTZy8Cnw7+kyHrFbOkFZr4r/pzkbxVZw8CjtVjUdw==}engines: {node: '>= 16'}- resolution: {integrity: sha512-bjG29m8FLFtZU0QFdDJATeafuAxp2pkOOLxgeEZyRdx6QXl9HyCQenh9MnFNSK4PXH7v/9KVZt8S8e2pzY4uYA==}+ resolution: {integrity: sha512-3E1dF0Vfrfka6Nxf5ILdIZEr2LdpkSI4VU5ziUh+fIWD9npvxrpgG8RC5lEqnnddDkpWVdf2k6gAB4mZoN5BHw==}engines: {node: '>= 16'}resolution: {integrity: sha512-uImZVlzkOhGYBXemJJYV/4317l4hPPf2Wur3mmXkjW2XPq2+VHnAPLAn6LHFj/3qykgidzcK7C9rR5raEZriMA==}engines: {node: '>= 16'}- resolution: {integrity: sha512-nM2zqO19ax0COBxJkGeCOZAAq4Zp2YfrK9/lRGPbmA2pchwjyvV50wSk4T89WhiSqv3/IXFgX2uvDwwHAmrIJg==}+ resolution: {integrity: sha512-OtU6CioGZq+VXfpXY66/D0I6I24BKvELfZujSYFNakNFYhBLwv6+doO6f5HMMFBBNKNkxdb46bZV4qxHU2URwA==}engines: {node: '>= 16'}- resolution: {integrity: sha512-ptoOBApP3Ov+ugbmLW0aIkE6pfrEQ+aNXXYvKKYJaHkI7OTQjvf5SetBhuBKdE3SwRDrMxLE6zThhZ6daE7D7w==}+ resolution: {integrity: sha512-zcWFCSarDaZAffFqp1neIwuBkq+WSwtr36+UMAcNtTIaOSS4SooRtG73VeTRp8LXytYJRMWqicLSFiE0Tirxng==}engines: {node: '>= 16'}@@ -11494,9 +11476,6 @@ packages:resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}hasBin: true- resolution: {integrity: sha512-ud7gX1bO6K4+l2YVUxZjOPCiyCBZvmi7XUnGArSk3rGIvsZW35jX3pjGs8zQiTumOpgbxHCZI1ivB1VO7i4MFw==}-resolution: {integrity: sha512-E4J0EtgyNLdIr0wTg0dQPefuiqNY29KaLacytiUAYYRzxCG+zOkWoUygt1rI+TA1LrhN49/njrfSO1DHtVC5Vw==}@@ -13686,6 +13665,10 @@ packages:resolution: {integrity: sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==}+ resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}engines: {node: '>=18'}@@ -17954,10 +17937,10 @@ snapshots:'@types/react': 19.1.6react: 18.3.1- '@metascraper/[email protected]':+ '@metascraper/[email protected]':dependencies:audio-extensions: 0.0.0- chrono-node: 2.7.9+ chrono-node: 2.8.0condense-whitespace: 2.0.0data-uri-utils: 1.0.8debug-logfmt: 1.2.3@@ -17969,16 +17952,16 @@ snapshots:is-uri: 1.2.7iso-639-3: 2.2.0isostring: 0.0.1- jsdom: 25.0.1+ jsdom: 26.1.0lodash: 4.17.21memoize-one: 6.0.0microsoft-capitalize: 1.0.5mime: 3.0.0normalize-url: 6.1.0- re2: 1.21.5+ re2: 1.22.1smartquotes: 2.3.2- tldts: 6.1.86- url-regex-safe: 4.0.0([email protected])+ tldts: 7.0.8+ url-regex-safe: 4.0.0([email protected])video-extensions: 1.2.0transitivePeerDependencies:- bufferutil@@ -18071,8 +18054,6 @@ snapshots:transitivePeerDependencies:- supports-color- '@mozilla/[email protected]': {}-'@mozilla/[email protected]': {}'@napi-rs/[email protected]':@@ -19752,15 +19733,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]':- dependencies:- metascraper: 5.46.9- transitivePeerDependencies:- - bufferutil- - canvas- - supports-color- - utf-8-validate-'@types/[email protected]': {}'@types/[email protected]': {}@@ -20338,6 +20310,10 @@ snapshots:+ dependencies:+ fast-deep-equal: 3.1.3+dependencies:tslib: 2.8.1@@ -20988,10 +20964,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- dayjs: 1.11.10-dependencies:dayjs: 1.11.10@@ -23315,6 +23287,11 @@ snapshots:+ dependencies:+ webidl-conversions: 7.0.0+ whatwg-mimetype: 3.0.0+@@ -24293,34 +24270,6 @@ snapshots:- supports-color- utf-8-validate- dependencies:- cssstyle: 4.3.1- data-urls: 5.0.0- decimal.js: 10.5.0- form-data: 4.0.3- html-encoding-sniffer: 4.0.0- http-proxy-agent: 7.0.2- https-proxy-agent: 7.0.6([email protected])- is-potential-custom-element-name: 1.0.1- nwsapi: 2.2.20- parse5: 7.3.0- rrweb-cssom: 0.7.1- saxes: 6.0.0- symbol-tree: 3.2.4- tough-cookie: 5.1.2- w3c-xmlserializer: 5.0.0- webidl-conversions: 7.0.0- whatwg-encoding: 3.1.1- whatwg-mimetype: 4.0.0- whatwg-url: 14.2.0- ws: 8.18.2- xml-name-validator: 5.0.0- transitivePeerDependencies:- - bufferutil- - supports-color- - utf-8-validate-dependencies:cssstyle: 4.3.1@@ -25126,7 +25075,7 @@ snapshots:dependencies:'@metascraper/helpers': 5.47.1transitivePeerDependencies:@@ -25135,25 +25084,25 @@ snapshots:- supports-color- utf-8-validatedependencies:- '@metascraper/helpers': 5.46.5+ '@metascraper/helpers': 5.46.18transitivePeerDependencies:- bufferutil- canvas- supports-color- utf-8-validatedependencies:- '@metascraper/helpers': 5.46.5+ '@metascraper/helpers': 5.47.1transitivePeerDependencies:- bufferutil- canvas- supports-color- utf-8-validatedependencies:'@metascraper/helpers': 5.47.1transitivePeerDependencies:@@ -25162,7 +25111,7 @@ snapshots:- supports-color- utf-8-validatedependencies:'@metascraper/helpers': 5.47.1transitivePeerDependencies:@@ -25171,7 +25120,7 @@ snapshots:- supports-color- utf-8-validatedependencies:'@keyvhq/memoize': 2.1.9'@metascraper/helpers': 5.47.1@@ -25183,7 +25132,7 @@ snapshots:- supports-color- utf-8-validatedependencies:'@metascraper/helpers': 5.47.1lodash: 4.17.21@@ -25193,27 +25142,28 @@ snapshots:- supports-color- utf-8-validatedependencies:- '@metascraper/helpers': 5.46.5+ '@metascraper/helpers': 5.47.1transitivePeerDependencies:- bufferutil- canvas- supports-color- utf-8-validatedependencies:'@metascraper/helpers': 5.47.1- '@mozilla/readability': 0.5.0- jsdom: 24.1.3+ '@mozilla/readability': 0.6.0+ async-memoize-one: 1.1.8+ happy-dom: 17.4.9transitivePeerDependencies:- bufferutil- canvas- supports-color- utf-8-validatedependencies:'@metascraper/helpers': 5.47.1transitivePeerDependencies:@@ -25231,7 +25181,7 @@ snapshots:- supports-color- utf-8-validatedependencies:'@metascraper/helpers': 5.47.1transitivePeerDependencies:@@ -25240,9 +25190,9 @@ snapshots:- supports-color- utf-8-validatedependencies:- '@metascraper/helpers': 5.46.5+ '@metascraper/helpers': 5.47.1cheerio: 1.0.0debug-logfmt: 1.2.3lodash: 4.17.21@@ -27580,14 +27530,6 @@ snapshots:minimist: 1.2.8strip-json-comments: 2.0.1- dependencies:- install-artifact-from-github: 1.4.0- nan: 2.22.2- node-gyp: 11.2.0- transitivePeerDependencies:- - supports-color-dependencies:install-artifact-from-github: 1.4.0@@ -29933,13 +29875,6 @@ snapshots:querystringify: 2.2.0requires-port: 1.0.0- dependencies:- ip-regex: 4.3.0- tlds: 1.259.0- optionalDependencies:- re2: 1.21.5-dependencies:ip-regex: 4.3.0@@ -30141,7 +30076,7 @@ snapshots:sass: 1.89.1terser: 5.41.0- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:'@vitest/expect': 1.6.1'@vitest/runner': 1.6.1@@ -30165,6 +30100,7 @@ snapshots:why-is-node-running: 2.3.0optionalDependencies:'@types/node': 22.15.30+ happy-dom: 17.4.9jsdom: 26.1.0transitivePeerDependencies:- less@@ -30367,6 +30303,8 @@ snapshots:+ [email protected]: {}+