Skip to content

build: update dependencies #703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 19, 2024
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
4 changes: 2 additions & 2 deletions packages/metascraper-clearbit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"metascraper"
],
"dependencies": {
"@keyvhq/memoize": "~2.1.0",
"@keyvhq/memoize": "~2.1.1",
"@metascraper/helpers": "^5.45.0",
"async-memoize-one": "~1.1.7",
"async-memoize-one": "~1.1.8",
"got": "~11.8.6",
"lodash": "~4.17.21"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/metascraper-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"audio-extensions": "0.0.0",
"chrono-node": "~2.7.5",
"condense-whitespace": "~2.0.0",
"data-uri-utils": "~1.0.7",
"data-uri-utils": "~1.0.8",
"entities": "~4.5.0",
"file-extension": "~4.0.5",
"has-values": "~2.0.1",
Expand All @@ -40,9 +40,9 @@
"microsoft-capitalize": "~1.0.5",
"mime": "~3.0.0",
"normalize-url": "~6.1.0",
"re2": "~1.20.9",
"re2": "~1.20.11",
"smartquotes": "~2.3.2",
"tldts": "~6.1.11",
"tldts": "~6.1.20",
"url-regex-safe": "~4.0.0",
"video-extensions": "~1.2.0"
},
Expand Down
425 changes: 352 additions & 73 deletions packages/metascraper-iframe/test/fixtures/genially.html

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions packages/metascraper-iframe/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ const createMetascraper = (...args) =>
require('metascraper')([createMetascraperIframe(...args)])

test('provide `gotOpts`', async t => {
console.log('running')
const dnsCache = new CacheableLookup()
const html = await readFile(resolve(__dirname, 'fixtures/genially.html'))
const url = 'https://view.genial.ly/5dc53cfa759d2a0f4c7db5f4'
const url = 'https://view.genially.com/5dc53cfa759d2a0f4c7db5f4'
const metascraper = createMetascraper({ gotOpts: { dnsCache } })

const metadataOne = await metascraper({
Expand All @@ -26,7 +25,7 @@ test('provide `gotOpts`', async t => {
})
t.truthy(metadataOne.iframe)

t.is(dnsCache._cache.size, 2)
t.is(dnsCache._cache.size, 1)

const metadataTwo = await metascraper({
url,
Expand All @@ -35,7 +34,7 @@ test('provide `gotOpts`', async t => {
})

t.truthy(metadataTwo.iframe)
t.is(dnsCache._cache.size, 2)
t.is(dnsCache._cache.size, 1)
})

test('provide `iframe`', async t => {
Expand All @@ -55,7 +54,7 @@ commonProviders.forEach(url => {

test('get iframe from markup', async t => {
const html = await readFile(resolve(__dirname, 'fixtures/genially.html'))
const url = 'https://view.genial.ly/5dc53cfa759d2a0f4c7db5f4'
const url = 'https://view.genially.com/5dc53cfa759d2a0f4c7db5f4'
const rules = [createMetascraperIframe()]
const metascraper = createMetascraper(rules)
const metadata = await metascraper({ url, html })
Expand Down
2 changes: 1 addition & 1 deletion packages/metascraper-iframe/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test('false', t => {

test('from markup', async t => {
const html = await readFile(resolve(__dirname, 'fixtures/genially.html'))
const url = 'https://view.genial.ly/5dc53cfa759d2a0f4c7db5f4'
const url = 'https://view.genially.com/5dc53cfa759d2a0f4c7db5f4'
const htmlDom = cheerio.load(html)
t.true(validator(url, htmlDom))
})
4 changes: 2 additions & 2 deletions packages/metascraper-logo-favicon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"metascraper"
],
"dependencies": {
"@keyvhq/memoize": "~2.1.0",
"@keyvhq/memoize": "~2.1.1",
"@metascraper/helpers": "^5.45.0",
"lodash": "~4.17.21",
"reachable-url": "~1.8.0"
"reachable-url": "~1.8.1"
},
"devDependencies": {
"async-listen": "latest",
Expand Down
4 changes: 2 additions & 2 deletions packages/metascraper-manifest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"pwa"
],
"dependencies": {
"@keyvhq/memoize": "~2.1.0",
"@keyvhq/memoize": "~2.1.1",
"@metascraper/helpers": "^5.45.0",
"async-memoize-one": "~1.1.7",
"async-memoize-one": "~1.1.8",
"data-uri-to-buffer": "~5.0.1",
"got": "~11.8.6",
"lodash": "~4.17.21"
Expand Down
4 changes: 2 additions & 2 deletions packages/metascraper-media-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
],
"dependencies": {
"@metascraper/helpers": "^5.45.0",
"async-memoize-one": "~1.1.7",
"async-memoize-one": "~1.1.8",
"debug-logfmt": "~1.2.2",
"got": "~11.8.6",
"lodash": "~4.17.21",
"p-reflect": "~2.1.0",
"p-retry": "~4.6.1",
"p-timeout": "~4.1.0",
"serialize-error": "~8.1.0",
"youtube-dl-exec": "~2.5.7"
"youtube-dl-exec": "~3.0.2"
},
"devDependencies": {
"@kikobeats/time-span": "latest",
Expand Down
6 changes: 3 additions & 3 deletions packages/metascraper-spotify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"spotify"
],
"dependencies": {
"@keyvhq/memoize": "~2.1.0",
"@keyvhq/memoize": "~2.1.1",
"@metascraper/helpers": "^5.45.0",
"async-memoize-one": "~1.1.7",
"async-memoize-one": "~1.1.8",
"got": "~11.8.6",
"spotify-url-info": "~3.2.13"
"spotify-url-info": "~3.2.14"
},
"devDependencies": {
"ava": "5",
Expand Down
4 changes: 2 additions & 2 deletions packages/metascraper-telegram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"telegram"
],
"dependencies": {
"@keyvhq/memoize": "~2.1.0",
"@keyvhq/memoize": "~2.1.1",
"@metascraper/helpers": "^5.45.0",
"css-urls": "~2.0.43",
"css-urls": "~2.0.44",
"got": "~11.8.6",
"p-reflect": "~2.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/metascraper-youtube/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@metascraper/helpers": "^5.45.0",
"get-video-id": "~3.6.5",
"p-locate": "~5.0.0",
"reachable-url": "~1.8.0"
"reachable-url": "~1.8.1"
},
"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: 'Robotics companies are transforming business operations. Explore the top 7 robotics companies leading the industry, their products & services.',
image: 'https://www.eweek.com/wp-content/uploads/2024/02/ew_20240207-robotics-companies.png',
lang: 'en',
logo: 'https://www.eweek.com/wp-content/uploads/2021/01/eweek_logo_Favicon.png',
logo: 'https://assets.eweek.com/uploads/2021/01/eweek_logo_Favicon.png',
publisher: 'eWEEK',
title: '7 Top Robotics Companies in 2024',
url: 'https://www.eweek.com/artificial-intelligence/robotics-companies/',
Expand Down
Binary file not shown.