Skip to content

Commit

Permalink
Merge pull request #707 from microlinkhq/next
Browse files Browse the repository at this point in the history
build: update dependencies
  • Loading branch information
Kikobeats committed May 28, 2024
2 parents ddd759e + fc551b1 commit c385bdd
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/metascraper-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/metascraper-instagram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"dependencies": {
"@metascraper/helpers": "^5.45.7",
"jsdom": "~24.0.0",
"jsdom": "~24.1.0",
"lodash": "~4.17.21"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/metascraper-readability/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Binary file not shown.
4 changes: 3 additions & 1 deletion packages/metascraper/test/integration/segment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Binary file not shown.

0 comments on commit c385bdd

Please sign in to comment.