Skip to content

Commit 1639539

Browse files
authored
Merge pull request microlinkhq#779 from microlinkhq/next
chore: update dependencies
2 parents eab30ef + 9d3f67d commit 1639539

File tree

11 files changed

+110
-17
lines changed

11 files changed

+110
-17
lines changed

packages/metascraper-helpers/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@
2626
"chrono-node": "2.9.0",
2727
"condense-whitespace": "~2.0.0",
2828
"data-uri-utils": "~1.0.9",
29-
"debug-logfmt": "~1.4.6",
29+
"debug-logfmt": "~1.4.7",
3030
"entities": "~6.0.1",
3131
"file-extension": "~4.0.5",
3232
"has-values": "~2.0.1",
3333
"image-extensions": "~1.1.0",
3434
"is-relative-url": "~3.0.0",
35-
"is-uri": "~1.2.11",
35+
"is-uri": "~1.2.12",
3636
"iso-639-3": "~2.2.0",
3737
"isostring": "0.0.1",
38-
"jsdom": "~27.0.0",
38+
"jsdom": "~27.2.0",
3939
"lodash": "~4.17.21",
4040
"memoize-one": "~6.0.0",
4141
"microsoft-capitalize": "~1.0.5",
4242
"mime": "3",
4343
"normalize-url": "~6.1.0",
44-
"re2": "~1.22.1",
44+
"re2": "~1.22.3",
4545
"smartquotes": "~2.3.2",
46-
"tldts": "~7.0.17",
46+
"tldts": "~7.0.19",
4747
"url-regex-safe": "~4.0.0",
4848
"video-extensions": "1"
4949
},

packages/metascraper-helpers/test/snapshots/load-iframe.js.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Generated by [AVA](https://avajs.dev).
99
> Snapshot 1
1010
1111
`<html lang="en"><head>␊
12-
<script src="https://assets.transistor.fm/assets/embed-9952928d653ae77356ecb4ff51acf1f7d48a7df09a0b638a08bf105c497c5982.js" defer="defer"></script>␊
12+
<script src="https://assets.transistor.fm/assets/embed-57d993c0d841d6753aa7388877757e3395555a56b61c74f2a7b0fbf92082f779.js" defer="defer"></script>␊
1313
<meta content="nofollow" name="robots">␊
1414
<title>Paul Jarvis: gaining freedom by building an indie business - Audio player</title>␊
1515
<meta content="width=device-width, initial-scale=1.0" name="viewport">␊
1616
<link rel="icon" type="image/x-icon" href="https://assets.transistor.fm/assets/favicon-636b619b27c8932b15adac78178e70ebdf1f2c3a33de896176872b88cb3a5e48.ico">␊
17-
<link rel="stylesheet" href="https://assets.transistor.fm/assets/embeds-d304bf3114a4b2ceb486cdcdf5d7f2ae2d213dd4b253ab941139375209175977.css" media="all">␊
17+
<link rel="stylesheet" href="https://assets.transistor.fm/assets/embeds-3e433b2e613ff5adc3163cd8c0d28b4abd48d3f512ed0e913f3c98a2a16a3db0.css" media="all">␊
1818
</head>␊
1919
2020
<body>␊
@@ -579,7 +579,7 @@ Generated by [AVA](https://avajs.dev).
579579
<span x-show="show.website &amp;&amp; !show.unlisted &amp;&amp; !show.private"><a title="View Podcast Website" :href="show.website" target="_website" class="font-medium cursor-pointer" href="https://saas.transistor.fm">View the website</a></span>␊
580580
</div>␊
581581
582-
<div class="episode-description" x-html="selectedEpisode?.description"><div>Justin catches up with his old internet friend Paul Jarvis. Today, Paul co-founded <a href="https://usefathom.com/" target="_blank">Fathom Analytics</a> with <a href="https://twitter.com/JackEllis" target="_blank">Jack Ellis</a>: a simple alternative to Google Analytics. Paul is also the author of the book "<a href="https://www.amazon.com/Company-One-Staying-Small-Business/dp/1328972356/" target="_blank">Company of One</a>," which has influenced a whole generation of indie entrepreneurs (and has been reviewed by Cal Newport, Chris Guillebeau, Ben Chestnut, Tiago Forte, and more). Previously, Justin and Paul did a <a href="https://justinjackson.ca/mastermind" target="_blank">weekly mastermind</a>, where they supported and encouraged each other around our indie businesses. They decided to do a catch-up call and recorded it so you could listen in. 👍<br><br><strong>Highlights:</strong><br><div>🎙️ <em>Podcast hosting is provided by</em> <a href="https://transistor.fm/?via=rubyblend" target="_blank"><em>Transistor.fm</em></a><em>.<br>📺 Learn </em><a href="https://transistor.fm/how-to-start-a-podcast/" target="_blank"><em>how to start your own podcast</em></a><em>!</em></div><br><strong>Links:</strong></div><ul><li><a href="https://usefathom.com/ref/EJPZOB" target="_blank">Fathom Analytics</a> (get $10 off)</li><li>Book: <a href="https://www.amazon.com/Company-One-Staying-Small-Business/dp/1328972356" target="_blank">Company of One</a></li><li>Article: <a href="https://justinjackson.ca/mastermind" target="_blank">How to Start a Mastermind</a></li><li>Wayback Machine: <a href="https://web.archive.org/web/20061101221801/http://haveamint.com/" target="_blank">Mint Analytics</a></li><li>Article: <a href="https://justinjackson.ca/new-saas" target="_blank">Why we moved from courses to SaaS</a></li><li><a href="https://justinjackson.ca/self-publishing-hangout" target="_blank">Self-Publishing Hangout</a>: Paul Jarvis, Nathan Barry, Sacha Greif, Justin Jackson</li></ul><div><br></div>␊
582+
<div x-html="selectedEpisode?.description" x-effect="selectedEpisode?.description &amp;&amp; $nextTick(() => updateDescriptionLinks($el))" class="episode-description"><div>Justin catches up with his old internet friend Paul Jarvis. Today, Paul co-founded <a href="https://usefathom.com/">Fathom Analytics</a> with <a href="https://twitter.com/JackEllis">Jack Ellis</a>: a simple alternative to Google Analytics. Paul is also the author of the book "<a href="https://www.amazon.com/Company-One-Staying-Small-Business/dp/1328972356/">Company of One</a>," which has influenced a whole generation of indie entrepreneurs (and has been reviewed by Cal Newport, Chris Guillebeau, Ben Chestnut, Tiago Forte, and more). Previously, Justin and Paul did a <a href="https://justinjackson.ca/mastermind">weekly mastermind</a>, where they supported and encouraged each other around our indie businesses. They decided to do a catch-up call and recorded it so you could listen in. 👍<br><br><strong>Highlights:</strong><br><div>🎙️ <em>Podcast hosting is provided by</em> <a href="https://transistor.fm/?via=rubyblend"><em>Transistor.fm</em></a><em>.<br>📺 Learn </em><a href="https://transistor.fm/how-to-start-a-podcast/"><em>how to start your own podcast</em></a><em>!</em></div><br><strong>Links:</strong></div><ul><li><a href="https://usefathom.com/ref/EJPZOB">Fathom Analytics</a> (get $10 off)</li><li>Book: <a href="https://www.amazon.com/Company-One-Staying-Small-Business/dp/1328972356">Company of One</a></li><li>Article: <a href="https://justinjackson.ca/mastermind">How to Start a Mastermind</a></li><li>Wayback Machine: <a href="https://web.archive.org/web/20061101221801/http://haveamint.com/">Mint Analytics</a></li><li>Article: <a href="https://justinjackson.ca/new-saas">Why we moved from courses to SaaS</a></li><li><a href="https://justinjackson.ca/self-publishing-hangout">Self-Publishing Hangout</a>: Paul Jarvis, Nathan Barry, Sacha Greif, Justin Jackson</li></ul><div><br></div>␊
583583
<strong>Thanks to our monthly supporters</strong>␊
584584
<ul>␊
585585
<li>Rewardful.com</li>␊
@@ -597,7 +597,6 @@ Generated by [AVA](https://avajs.dev).
597597
<strong>␊
598598
<a href="https://www.patreon.com/jonjustin" target="_donate" rel="payment" title="★ Support this podcast on Patreon ★">★ Support this podcast on Patreon ★</a>␊
599599
</strong></div>␊
600-
601600
</div>␊
602601
</article>␊
603602
21 Bytes
Binary file not shown.

packages/metascraper-iframe/test/fixtures/youtube.html

Lines changed: 84 additions & 0 deletions
Large diffs are not rendered by default.

packages/metascraper-iframe/test/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ commonProviders.forEach(url => {
5252
})
5353
})
5454

55-
test('get iframe from markup', async t => {
55+
test('get iframe from html (Genially)', async t => {
5656
const html = await readFile(resolve(__dirname, 'fixtures/genially.html'))
5757
const url = 'https://view.genially.com/5dc53cfa759d2a0f4c7db5f4'
5858
const rules = [createMetascraperIframe()]
@@ -61,6 +61,15 @@ test('get iframe from markup', async t => {
6161
t.truthy(metadata.iframe)
6262
})
6363

64+
test('get iframefrom html (YouTube)', async t => {
65+
const html = await readFile(resolve(__dirname, 'fixtures/youtube.html'))
66+
const url = 'https://www.youtube.com/watch?v=fJ9rUzIMcZQ'
67+
const rules = [createMetascraperIframe()]
68+
const metascraper = createMetascraper(rules)
69+
const metadata = await metascraper({ url, html })
70+
t.truthy(metadata.iframe)
71+
})
72+
6473
test('get iframe from twitter player', async t => {
6574
const htmlWithDimensions = await readFile(
6675
resolve(__dirname, 'fixtures/indiehacker-with-dimensions.html')

packages/metascraper-iframe/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test('false', t => {
2222
})
2323
})
2424

25-
test('from markup', async t => {
25+
test('from html', async t => {
2626
const html = await readFile(resolve(__dirname, 'fixtures/genially.html'))
2727
const url = 'https://view.genially.com/5dc53cfa759d2a0f4c7db5f4'
2828
const htmlDom = cheerio.load(html)

packages/metascraper-instagram/test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('code is resilient', async t => {
2525
...metadata,
2626
/* prevent snapshot from failing */
2727
logo: metadata.logo.replace(
28-
/^https:\/\/t[01]\.gstatic\.com/,
28+
/^https:\/\/t\d\.gstatic\.com/,
2929
'https://t2.gstatic.com'
3030
)
3131
})

packages/metascraper-manifest/test/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ test('linkedin.com', async t => {
9696
t.snapshot(metadata)
9797
})
9898

99-
test('medium.com', async t => {
99+
// CloudFlare Captcha is enabled
100+
test.skip('medium.com', async t => {
100101
const metascraper = createMetascraper()
101102
const url =
102103
'https://medium.com/in-fitness-and-in-health/20-hard-won-fitness-lessons-from-my-20-year-fitness-journey-9971a8a8f0e1'

packages/metascraper-media-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"dependencies": {
2727
"@metascraper/helpers": "workspace:*",
2828
"async-memoize-one": "~1.1.9",
29-
"debug-logfmt": "~1.4.6",
29+
"debug-logfmt": "~1.4.7",
3030
"got": "~11.8.6",
3131
"lodash": "~4.17.21",
3232
"p-reflect": "~2.1.0",
3333
"p-retry": "~4.6.1",
3434
"p-timeout": "~4.1.0",
3535
"serialize-error": "~8.1.0",
36-
"youtube-dl-exec": "~3.0.26"
36+
"youtube-dl-exec": "~3.0.27"
3737
},
3838
"devDependencies": {
3939
"@kikobeats/time-span": "latest",

packages/metascraper-readability/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@metascraper/helpers": "workspace:*",
2727
"@mozilla/readability": "~0.6.0",
2828
"async-memoize-one": "~1.1.9",
29-
"happy-dom": "~20.0.2"
29+
"happy-dom": "~20.0.11"
3030
},
3131
"devDependencies": {
3232
"ava": "5"

0 commit comments

Comments
 (0)