diff --git a/package-lock.json b/package-lock.json index be365b5..4383fef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.1.0", "license": "MIT", "dependencies": { - "pdfjs-dist": "^4.4.168" + "pdfjs-dist": "^4.6.82" }, "devDependencies": { "@tsconfig/node20": "^20.1.4", @@ -4104,15 +4104,15 @@ } }, "node_modules/pdfjs-dist": { - "version": "4.4.168", - "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.4.168.tgz", - "integrity": "sha512-MbkAjpwka/dMHaCfQ75RY1FXX3IewBVu6NGZOcxerRFlaBiIkZmUoR0jotX5VUzYZEXAGzSFtknWs5xRKliXPA==", + "version": "4.6.82", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.6.82.tgz", + "integrity": "sha512-BUOryeRFwvbLe0lOU6NhkJNuVQUp06WxlJVVCsxdmJ4y5cU3O3s3/0DunVdK1PMm7v2MUw52qKYaidhDH1Z9+w==", "engines": { "node": ">=18" }, "optionalDependencies": { "canvas": "^2.11.2", - "path2d": "^0.2.0" + "path2d": "^0.2.1" } }, "node_modules/picocolors": { diff --git a/package.json b/package.json index 4142596..d8c3bbe 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "format": "prettier . --write --ignore-path .gitignore" }, "dependencies": { - "pdfjs-dist": "^4.4.168" + "pdfjs-dist": "^4.6.82" }, "devDependencies": { "@tsconfig/node20": "^20.1.4", diff --git a/vite.config.ts b/vite.config.ts index 50dea6f..df1c3ea 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,12 +22,12 @@ export default defineConfig({ hook: 'writeBundle', targets: Object.entries({ textLayer: [ - [2546, 2555], - [231, 349], + [2933, 2942], + [440, 560], ], annotationLayer: [ - [2546, 2555], - [350, 712], + [2933, 2942], + [561, 925], ], }).map(([key, ranges]) => ({ src: 'node_modules/pdfjs-dist/web/pdf_viewer.css',