Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/metascraper-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"isostring": "0.0.1",
"jsdom": "~27.4.0",
"jsonrepair": "~3.13.2",
"lodash": "~4.17.23",
"lodash": "~4.18.0",
"memoize-one": "~6.0.0",
"microsoft-capitalize": "~1.0.6",
"mime": "3",
Expand Down
12 changes: 5 additions & 7 deletions packages/metascraper-helpers/test/load-iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ test('wait `load` event', async t => {
t.true($iframe.html().includes('twitter:player'))
})

const normalizeTransistorAssetUrls = html =>
html.replace(
/(https:\/\/assets\.transistor\.fm\/assets\/[a-z-]+)-[a-f0-9]{64}(\.[a-z]+)/g,
'$1-[cache-busting-hash]$2'
)

test('markup is correct', async t => {
const url =
'https://saas.transistor.fm/episodes/paul-jarvis-gaining-freedom-by-building-an-indie-business'
Expand All @@ -39,7 +33,11 @@ test('markup is correct', async t => {
url,
cheerio.load(`<iframe src="${src}"></iframe>`)
)
t.snapshot(normalizeTransistorAssetUrls($.html()))
const html = $.html()
t.true(html.includes('<html'), 'should contain html element')
t.true(html.includes('<audio'), 'should contain audio element')
t.true(html.includes('transistor.fm'), 'should reference transistor.fm')
t.true(html.includes('Paul Jarvis'), 'should contain episode title')
})

test('worker does not keep process alive after resolving', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/metascraper-iframe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"@metascraper/helpers": "workspace:*",
"got": "~11.8.6",
"lodash": "~4.17.23",
"lodash": "~4.18.0",
"oembed-spec": "~1.3.33",
"p-reflect": "~2.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/metascraper-logo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"dependencies": {
"@metascraper/helpers": "workspace:*",
"lodash": "~4.17.23"
"lodash": "~4.18.0"
},
"engines": {
"node": ">= 22"
Expand Down
Loading