kopia lustrzana https://github.com/harvard-lil/archive.social
Update glob imports to account for ESM
rodzic
72f424abca
commit
fa1aafa26a
|
@ -10,7 +10,7 @@ import { chromium } from "playwright";
|
||||||
|
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import { PDFDocument } from "pdf-lib";
|
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";
|
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);
|
throw new Error(result.stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
const videos = glob.sync(filepathOut.replace("%(autonumber)d", "*"))
|
const videos = globSync(filepathOut.replace("%(autonumber)d", "*"))
|
||||||
|
|
||||||
if (!videos) {
|
if (!videos) {
|
||||||
return;
|
return;
|
||||||
|
|
Ładowanie…
Reference in New Issue