From fa1aafa26a823d40126a8abfe9d3886d86043812 Mon Sep 17 00:00:00 2001 From: Matteo Cargnelutti Date: Tue, 1 Aug 2023 10:20:02 -0400 Subject: [PATCH] Update glob imports to account for ESM --- app/utils/TwitterCapture.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/TwitterCapture.js b/app/utils/TwitterCapture.js index bb3cad5..4c416b0 100644 --- a/app/utils/TwitterCapture.js +++ b/app/utils/TwitterCapture.js @@ -10,7 +10,7 @@ import { chromium } from "playwright"; import { v4 as uuidv4 } from "uuid"; import { PDFDocument } from "pdf-lib"; -import glob from "glob"; +import { globSync } from "glob"; import { CERTS_PATH, TMP_PATH, EXECUTABLES_FOLDER, TEMPLATES_PATH, APP_VERSION } from "../const.js"; @@ -560,7 +560,7 @@ export class TwitterCapture { throw new Error(result.stderr); } - const videos = glob.sync(filepathOut.replace("%(autonumber)d", "*")) + const videos = globSync(filepathOut.replace("%(autonumber)d", "*")) if (!videos) { return;