diff --git a/packages/metascraper-helpers/package.json b/packages/metascraper-helpers/package.json index 71c42a543..21dbac28a 100644 --- a/packages/metascraper-helpers/package.json +++ b/packages/metascraper-helpers/package.json @@ -34,7 +34,7 @@ "is-uri": "~1.2.6", "iso-639-3": "~2.2.0", "isostring": "0.0.1", - "jsdom": "~24.0.0", + "jsdom": "~24.1.0", "lodash": "~4.17.21", "memoize-one": "~6.0.0", "microsoft-capitalize": "~1.0.5", diff --git a/packages/metascraper-instagram/package.json b/packages/metascraper-instagram/package.json index 30f8fc99b..840d6985f 100644 --- a/packages/metascraper-instagram/package.json +++ b/packages/metascraper-instagram/package.json @@ -24,7 +24,7 @@ ], "dependencies": { "@metascraper/helpers": "^5.45.7", - "jsdom": "~24.0.0", + "jsdom": "~24.1.0", "lodash": "~4.17.21" }, "devDependencies": { diff --git a/packages/metascraper-readability/package.json b/packages/metascraper-readability/package.json index 9fa6cea5e..dc882db19 100644 --- a/packages/metascraper-readability/package.json +++ b/packages/metascraper-readability/package.json @@ -25,7 +25,7 @@ "dependencies": { "@metascraper/helpers": "^5.45.7", "@mozilla/readability": "~0.5.0", - "jsdom": "~24.0.0" + "jsdom": "~24.1.0" }, "devDependencies": { "ava": "5", diff --git a/packages/metascraper/test/integration/reuters/snapshots/index.js.md b/packages/metascraper/test/integration/reuters/snapshots/index.js.md index 48a7ef18a..0aa557177 100644 --- a/packages/metascraper/test/integration/reuters/snapshots/index.js.md +++ b/packages/metascraper/test/integration/reuters/snapshots/index.js.md @@ -15,7 +15,7 @@ Generated by [AVA](https://avajs.dev). description: 'Venture capitalists are raising money at the fastest rate in a decade, raking in about $13 billion in the first quarter of 2016.', image: 'http://s4.reutersmedia.net/resources/r/?m=02&d=20160513&t=2&i=1137169522&w=&fh=545px&fw=&ll=&pl=&sq=&r=LYNXNPEC4C0SU', lang: 'en', - logo: 'https://s3.reutersmedia.net/resources_v2/images/favicon/favicon-96x96.png', + logo: 'https://www.reuters.com/favicon.ico', publisher: 'Reuters', title: 'Silicon Valley venture capitalists raise more money, give less away', url: 'http://www.reuters.com/article/us-venture-fundraising-idUSKCN0Y41DQ', diff --git a/packages/metascraper/test/integration/reuters/snapshots/index.js.snap b/packages/metascraper/test/integration/reuters/snapshots/index.js.snap index 124ea6d14..891879eb1 100644 Binary files a/packages/metascraper/test/integration/reuters/snapshots/index.js.snap and b/packages/metascraper/test/integration/reuters/snapshots/index.js.snap differ diff --git a/packages/metascraper/test/integration/segment/index.js b/packages/metascraper/test/integration/segment/index.js index fd6e52a5f..fcbf5a124 100644 --- a/packages/metascraper/test/integration/segment/index.js +++ b/packages/metascraper/test/integration/segment/index.js @@ -25,6 +25,8 @@ const url = 'https://segment.com/blog/scaling-nsq' test('segment', async t => { const html = await readFile(resolve(__dirname, 'input.html')) - const metadata = await metascraper({ html, url }) + const { logo, ...metadata } = await metascraper({ html, url }) t.snapshot(metadata) + t.is(typeof logo, 'string') + t.true(new URL(logo).hostname.endsWith('.gstatic.com'), logo) }) diff --git a/packages/metascraper/test/integration/segment/snapshots/index.js.md b/packages/metascraper/test/integration/segment/snapshots/index.js.md index 8dc3c947c..89d1d3d4b 100644 --- a/packages/metascraper/test/integration/segment/snapshots/index.js.md +++ b/packages/metascraper/test/integration/segment/snapshots/index.js.md @@ -15,7 +15,6 @@ Generated by [AVA](https://avajs.dev). description: 'Segment is the analytics API you’ve always wanted. It’s the easiest way to install all of your favorite analytics tools at once!', image: 'https://c19f7be2e84987e7904e-bf41efcb49679c193a4ec0f3210da86f.ssl.cf1.rackcdn.com/photos/40528-1-1.jpg', lang: null, - logo: 'https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://segment.com/blog/scaling-nsq&size=128', publisher: 'Segment Blog', title: 'Scaling NSQ to 750 Billion Messages', url: 'https://segment.com/blog/scaling-nsq', diff --git a/packages/metascraper/test/integration/segment/snapshots/index.js.snap b/packages/metascraper/test/integration/segment/snapshots/index.js.snap index 8063f72b8..8536468b0 100644 Binary files a/packages/metascraper/test/integration/segment/snapshots/index.js.snap and b/packages/metascraper/test/integration/segment/snapshots/index.js.snap differ