fix: deps upgrade

This commit is contained in:
Simon Lecoq
2023-07-24 13:07:26 -04:00
parent 34cb7a96b6
commit 7339a6e771
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import puppeteer from "puppeteer"
//Setup browser
const browser = await puppeteer.launch({
headless: true,
headless: "new",
executablePath: process.env.PUPPETEER_BROWSER_PATH,
args: ["--no-sandbox", "--disable-extensions", "--disable-setuid-sandbox", "--disable-dev-shm-usage"],
ignoreDefaultArgs: ["--disable-extensions"],

View File

@@ -13,7 +13,7 @@ import fs from "fs/promises"
import { JSDOM } from "jsdom"
import linguist from "linguist-js"
import { marked } from "marked"
import minimatch from "minimatch"
import { minimatch } from "minimatch"
import fetch from "node-fetch"
import opengraph from "open-graph-scraper"
import os from "os"
@@ -51,7 +51,7 @@ export const puppeteer = {
ignoreDefaultArgs: ["--disable-extensions"],
})
},
headless: true,
headless: "new",
events: ["load", "domcontentloaded", "networkidle2"],
}