Update glob imports to account for ESM

pull/34/head
Matteo Cargnelutti 2023-08-01 10:20:02 -04:00
rodzic 72f424abca
commit fa1aafa26a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;