From 7339a6e77123d48d39b6adc103476d79c6f48eaf Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Mon, 24 Jul 2023 13:07:26 -0400 Subject: [PATCH] fix: deps upgrade --- .github/scripts/markdown_example.mjs | 2 +- source/app/metrics/utils.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/markdown_example.mjs b/.github/scripts/markdown_example.mjs index 3074d39e..2859015b 100644 --- a/.github/scripts/markdown_example.mjs +++ b/.github/scripts/markdown_example.mjs @@ -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"], diff --git a/source/app/metrics/utils.mjs b/source/app/metrics/utils.mjs index 464e0d58..6a10bd0a 100644 --- a/source/app/metrics/utils.mjs +++ b/source/app/metrics/utils.mjs @@ -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"], }