Skip to content

Commit

Permalink
Updated pdfjs version
Browse files Browse the repository at this point in the history
  • Loading branch information
devopvoid committed Dec 1, 2023
1 parent 4e617c3 commit 2e7ee69
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"janus-gateway": "^1.2.0",
"lit": "^2.8.0",
"mobx": "^6.12.0",
"pdfjs-dist": "^3.10.111",
"pdfjs-dist": "^4.0.269",
"typescript-event-target": "^1.1.0"
}
}
2 changes: 1 addition & 1 deletion src/render/pdf.annotation.renderer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as pdfViever from "pdfjs-dist/web/pdf_viewer";
import * as pdfViever from "pdfjs-dist/web/pdf_viewer.mjs";
import { PDFPageProxy } from "pdfjs-dist/types/src/display/api";
// import { AnnotationLayer } from "pdfjs-dist";

Expand Down
2 changes: 1 addition & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
patterns: [
// Copy pdf-worker to build.
{
from: path.resolve(__dirname, "node_modules/pdfjs-dist/build/pdf.worker.min.js"),
from: path.resolve(__dirname, "node_modules/pdfjs-dist/build/pdf.worker.min.mjs"),
to: path.resolve(__dirname, `${build_dir}/js/pdf.worker.js`)
},
// Copy icons to build/icons.
Expand Down

0 comments on commit 2e7ee69

Please sign in to comment.