A fast, helpful, and open-source document parser
lint + format
Logan Markewich066129aad221
diff --git a/src/engines/pdf/pdfjsImporter.ts b/src/engines/pdf/pdfjsImporter.tsindex 3a826eb..b1fc103 100644--- a/src/engines/pdf/pdfjsImporter.ts+++ b/src/engines/pdf/pdfjsImporter.ts@@ -6,7 +6,12 @@ import { dirname } from "node:path";const g = globalThis as Record<string, unknown>;if (typeof g.DOMMatrix === "undefined") {g.DOMMatrix = class DOMMatrix {- a = 1; b = 0; c = 0; d = 1; e = 0; f = 0;+ a = 1;+ b = 0;+ c = 0;+ d = 1;+ e = 0;+ f = 0;constructor(init?: number[]) {if (init && init.length >= 6) {[this.a, this.b, this.c, this.d, this.e, this.f] = init;@@ -19,8 +24,13 @@ if (typeof g.Path2D === "undefined") {}if (typeof g.ImageData === "undefined") {g.ImageData = class ImageData {- width = 0; height = 0; data = new Uint8ClampedArray(0);- constructor(w?: number, h?: number) { this.width = w ?? 0; this.height = h ?? 0; }+ width = 0;+ height = 0;+ data = new Uint8ClampedArray(0);+ constructor(w?: number, h?: number) {+ this.width = w ?? 0;+ this.height = h ?? 0;+ }};}