Skip to content

Commit

Permalink
Merge pull request #360 from microlinkhq/next
Browse files Browse the repository at this point in the history
build: update dependencies
  • Loading branch information
Kikobeats authored Sep 30, 2024
2 parents a216270 + a0fcdd3 commit 2bc1091
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 2bc1091

Please sign in to comment.