chore: atualiza dependencias e build de PDF

This commit is contained in:
Felipe Coutinho
2026-06-06 16:31:42 -03:00
parent 811a035cb0
commit 2cead626ab
6 changed files with 1263 additions and 1263 deletions

View File

@@ -32,7 +32,7 @@ function PdfCanvas({ url }: PdfCanvasProps) {
let pdf: Awaited<ReturnType<typeof pdfjsLib.getDocument>["promise"]>;
try {
pdf = await pdfjsLib.getDocument(url).promise;
pdf = await pdfjsLib.getDocument({ url }).promise;
} catch (err) {
if ((err as { name?: string }).name === "PasswordException") {
if (!cancelled) setLocked(true);