Skip to content
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

build: update dependencies #360

Merged
merged 2 commits into from
Sep 30, 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
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@
"@keyvhq/multi": "~2.1.5",
"@keyvhq/redis": "~2.1.5",
"@kikobeats/time-span": "~1.0.5",
"@microlink/mql": "~0.13.6",
"@microlink/mql": "~0.13.7",
"@microlink/ping-url": "~1.4.15",
"@microlink/ua": "~1.2.4",
"@microlink/ua": "~1.2.5",
"async-memoize-one": "~1.1.8",
"browserless": "~10.6.0",
"cacheable-lookup": "~6.1.0",
Expand All @@ -129,9 +129,9 @@
"p-cancelable": "2.1.1",
"p-reflect": "~2.1.0",
"p-timeout": "~4.1.0",
"puppeteer": "~23.4.0",
"puppeteer": "~23.4.1",
"rate-limiter-flexible": "~5.0.3",
"router-http": "~1.0.8",
"router-http": "~1.0.10",
"send-http": "~1.0.6",
"serve-static": "~1.16.2",
"srcset": "~4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const cheerio = require('cheerio')
const getHTML = require('../util/html-get')

module.exports = PCancelable.fn(async function telegram ({ input }, onCancel) {
const promise = getHTML(`https://t.me/${input}`, { prerender: false })
const promise = getHTML(`https://t.me/${input}`)
const { html } = await promise
onCancel(() => promise.onCancel())
const $ = cheerio.load(html)
Expand Down
2 changes: 1 addition & 1 deletion src/util/html-get.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ module.exports = async (url, { puppeteerOpts, ...opts } = {}) => {
const browserContext = await browser.createContext()

const result = await getHTML(url, {
prerender: false,
...opts,
getBrowserless: () => browserContext,
puppeteerOpts: {
abortTypes: ['image', 'stylesheet', 'font', 'script'],
timeout: AVATAR_TIMEOUT,
...puppeteerOpts
},
Expand Down