TagSpaces is an offline, open source, document manager with tagging support
chore: updating the pdf.js lib
Ilian Sapundshievf72f9731f51a
diff --git a/package-lock.json b/package-lock.jsonindex b714057c9..95f6c4252 100644--- a/package-lock.json+++ b/package-lock.json@@ -53,7 +53,7 @@"open-location-code": "^1.0.3","open-location-code-typescript": "^1.5.0","papaparse": "^5.4.1",- "pdfjs-dist": "2.4.456",+ "pdfjs-dist": "^4.3.136","picomatch": "^3.0.1","qrcode.react": "^3.1.0","rc-table": "^7.8.0",@@ -196,7 +196,7 @@"yarn": "please-use-npm"},"optionalDependencies": {- "@tagspacespro/tagspacespro": "5.0.40"+ "@tagspacespro/tagspacespro": "5.0.41"}},"node_modules/@aashutoshrathi/word-wrap": {@@ -10155,9 +10155,7 @@"version": "1.0.11","resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz","integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==",- "dev": true,"optional": true,- "peer": true,"dependencies": {"detect-libc": "^2.0.0","https-proxy-agent": "^5.0.0",@@ -10177,18 +10175,14 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz","integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",- "dev": true,- "optional": true,- "peer": true+ "optional": true},"node_modules/@mapbox/node-pre-gyp/node_modules/are-we-there-yet": {"version": "2.0.0","resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz","integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==","deprecated": "This package is no longer supported.",- "dev": true,"optional": true,- "peer": true,"dependencies": {"delegates": "^1.0.0","readable-stream": "^3.6.0"@@ -10202,9 +10196,7 @@"resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz","integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==","deprecated": "This package is no longer supported.",- "dev": true,"optional": true,- "peer": true,"dependencies": {"aproba": "^1.0.3 || ^2.0.0","color-support": "^1.1.2",@@ -10224,9 +10216,7 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz","integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",- "dev": true,"optional": true,- "peer": true,"dependencies": {"semver": "^6.0.0"},@@ -10241,9 +10231,7 @@"version": "6.3.1","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz","integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "dev": true,"optional": true,- "peer": true,"bin": {"semver": "bin/semver.js"}@@ -10252,9 +10240,7 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz","integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",- "dev": true,"optional": true,- "peer": true,"dependencies": {"abbrev": "1"},@@ -10270,9 +10256,7 @@"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz","integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==","deprecated": "This package is no longer supported.",- "dev": true,"optional": true,- "peer": true,"dependencies": {"are-we-there-yet": "^2.0.0","console-control-strings": "^1.1.0",@@ -10285,9 +10269,7 @@"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz","integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==","deprecated": "Rimraf versions prior to v4 are no longer supported",- "dev": true,"optional": true,- "peer": true,"dependencies": {"glob": "^7.1.3"},@@ -10302,9 +10284,7 @@"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz","integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,"optional": true,- "peer": true,"dependencies": {"ansi-regex": "^5.0.1"},@@ -13690,9 +13670,9 @@}},"node_modules/@tagspacespro/tagspacespro": {- "version": "5.0.40",- "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.40/cb415cd060915314b57ab0b8d9dc4e0c398e633f",- "integrity": "sha512-M5mJgLemNSYukQXvdORsuA5i1h1CQBHJhw6D+/pggD6atRu6wmzJZ9NZXquzoV+U8W1tSZlyIssHe6TsXBr6cA==",+ "version": "5.0.41",+ "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.41/ba4fc8219ce8341cb7921f11ec059f7b6b4ba51d",+ "integrity": "sha512-bY1O/u4ig64VJ7YAmpl0F8aKdpDJaghV19fRplEl9EaRR87FonY2H6tcScDlH5KIZKCHBdjXge+FgDcNv/DbTw==","license": "Proprietary","optional": true},@@ -15338,7 +15318,7 @@"version": "6.0.2","resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz","integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",- "dev": true,+ "devOptional": true,"dependencies": {"debug": "4"},@@ -15800,7 +15780,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz","integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==",- "dev": true+ "devOptional": true},"node_modules/archiver": {"version": "5.3.2",@@ -17414,10 +17394,8 @@"version": "2.11.2","resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.2.tgz","integrity": "sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==",- "dev": true,"hasInstallScript": true,"optional": true,- "peer": true,"dependencies": {"@mapbox/node-pre-gyp": "^1.0.0","nan": "^2.17.0",@@ -17514,7 +17492,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz","integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",- "dev": true,+ "devOptional": true,"engines": {"node": ">=10"}@@ -17922,7 +17900,7 @@"version": "1.1.3","resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz","integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",- "dev": true,+ "devOptional": true,"bin": {"color-support": "bin.js"}@@ -18496,7 +18474,7 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz","integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",- "dev": true+ "devOptional": true},"node_modules/content-disposition": {"version": "0.5.4",@@ -20079,7 +20057,7 @@"version": "1.0.0","resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz","integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",- "dev": true+ "devOptional": true},"node_modules/denodeify": {"version": "1.2.1",@@ -20130,7 +20108,7 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz","integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==",- "dev": true,+ "devOptional": true,"engines": {"node": ">=8"}@@ -24845,7 +24823,7 @@"version": "2.0.1","resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz","integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",- "dev": true+ "devOptional": true},"node_modules/has-value": {"version": "1.0.0",@@ -25351,7 +25329,7 @@"version": "5.0.1","resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz","integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",- "dev": true,+ "devOptional": true,"dependencies": {"agent-base": "6","debug": "4"@@ -36052,7 +36030,7 @@"version": "2.1.2","resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz","integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",- "dev": true,+ "devOptional": true,"dependencies": {"minipass": "^3.0.0","yallist": "^4.0.0"@@ -36065,7 +36043,7 @@"version": "3.3.6","resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz","integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",- "dev": true,+ "devOptional": true,"dependencies": {"yallist": "^4.0.0"},@@ -36077,7 +36055,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz","integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "dev": true+ "devOptional": true},"node_modules/mixin-deep": {"version": "1.3.2",@@ -36150,9 +36128,7 @@"version": "2.19.0","resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz","integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==",- "dev": true,- "optional": true,- "peer": true+ "optional": true},"node_modules/nanoid": {"version": "4.0.2",@@ -40264,10 +40240,26 @@"node": ">=8"}},+ "node_modules/path2d": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/path2d/-/path2d-0.2.0.tgz",+ "integrity": "sha512-KdPAykQX6kmLSOO6Jpu2KNcCED7CKjmaBNGGNuctOsG0hgYO1OdYQaan6cYXJiG0WmXOwZZPILPBimu5QAIw3A==",+ "optional": true,+ "engines": {+ "node": ">=6"+ }+ },"node_modules/pdfjs-dist": {- "version": "2.4.456",- "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-2.4.456.tgz",- "integrity": "sha512-yckJEHq3F48hcp6wStEpbN9McOj328Ib09UrBlGAKxvN2k+qYPN5iq6TH6jD1C0pso7zTep+g/CKsYgdrQd5QA=="+ "version": "4.3.136",+ "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.3.136.tgz",+ "integrity": "sha512-gzfnt1qc4yA+U46golPGYtU4WM2ssqP2MvFjKga8GEKOrEnzRPrA/9jogLLPYHiA3sGBPJ+p7BdAq+ytmw3jEg==",+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "canvas": "^2.11.2",+ "path2d": "^0.2.0"+ }},"node_modules/pend": {"version": "1.2.0",@@ -44684,7 +44676,6 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz","integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",- "dev": true,"funding": [{"type": "github",@@ -44699,16 +44690,13 @@"url": "https://feross.org/support"}],- "optional": true,- "peer": true+ "optional": true},"node_modules/simple-get": {"version": "3.1.1","resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz","integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==",- "dev": true,"optional": true,- "peer": true,"dependencies": {"decompress-response": "^4.2.0","once": "^1.3.1",@@ -44719,9 +44707,7 @@"version": "4.2.1","resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz","integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==",- "dev": true,"optional": true,- "peer": true,"dependencies": {"mimic-response": "^2.0.0"},@@ -44733,9 +44719,7 @@"version": "2.1.0","resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz","integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",- "dev": true,"optional": true,- "peer": true,"engines": {"node": ">=8"},@@ -46171,7 +46155,7 @@"version": "6.2.0","resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz","integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==",- "dev": true,+ "devOptional": true,"dependencies": {"chownr": "^2.0.0","fs-minipass": "^2.0.0",@@ -46205,7 +46189,7 @@"version": "2.1.0","resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz","integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",- "dev": true,+ "devOptional": true,"dependencies": {"minipass": "^3.0.0"},@@ -46217,7 +46201,7 @@"version": "3.3.6","resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz","integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",- "dev": true,+ "devOptional": true,"dependencies": {"yallist": "^4.0.0"},@@ -46229,7 +46213,7 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz","integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",- "dev": true,+ "devOptional": true,"engines": {"node": ">=8"}@@ -46238,7 +46222,7 @@"version": "1.0.4","resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz","integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",- "dev": true,+ "devOptional": true,"bin": {"mkdirp": "bin/cmd.js"},@@ -46250,7 +46234,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz","integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "dev": true+ "devOptional": true},"node_modules/tcp-port-used": {"version": "1.0.2",@@ -48851,7 +48835,7 @@"version": "1.1.5","resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz","integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",- "dev": true,+ "devOptional": true,"dependencies": {"string-width": "^1.0.2 || 2 || 3 || 4"}@@ -57373,9 +57357,7 @@"version": "1.0.11","resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz","integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==",- "dev": true,"optional": true,- "peer": true,"requires": {"detect-libc": "^2.0.0","https-proxy-agent": "^5.0.0",@@ -57392,17 +57374,13 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz","integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",- "dev": true,- "optional": true,- "peer": true+ "optional": true},"are-we-there-yet": {"version": "2.0.0","resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz","integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",- "dev": true,"optional": true,- "peer": true,"requires": {"delegates": "^1.0.0","readable-stream": "^3.6.0"@@ -57412,9 +57390,7 @@"version": "3.0.2","resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz","integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",- "dev": true,"optional": true,- "peer": true,"requires": {"aproba": "^1.0.3 || ^2.0.0","color-support": "^1.1.2",@@ -57431,9 +57407,7 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz","integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",- "dev": true,"optional": true,- "peer": true,"requires": {"semver": "^6.0.0"},@@ -57442,9 +57416,7 @@"version": "6.3.1","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz","integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "dev": true,- "optional": true,- "peer": true+ "optional": true}}},@@ -57452,9 +57424,7 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz","integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",- "dev": true,"optional": true,- "peer": true,"requires": {"abbrev": "1"}@@ -57463,9 +57433,7 @@"version": "5.0.1","resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz","integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",- "dev": true,"optional": true,- "peer": true,"requires": {"are-we-there-yet": "^2.0.0","console-control-strings": "^1.1.0",@@ -57477,9 +57445,7 @@"version": "3.0.2","resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz","integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",- "dev": true,"optional": true,- "peer": true,"requires": {"glob": "^7.1.3"}@@ -57488,9 +57454,7 @@"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz","integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,"optional": true,- "peer": true,"requires": {"ansi-regex": "^5.0.1"}@@ -59805,9 +59769,9 @@}},"@tagspacespro/tagspacespro": {- "version": "5.0.40",- "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.40/cb415cd060915314b57ab0b8d9dc4e0c398e633f",- "integrity": "sha512-M5mJgLemNSYukQXvdORsuA5i1h1CQBHJhw6D+/pggD6atRu6wmzJZ9NZXquzoV+U8W1tSZlyIssHe6TsXBr6cA==",+ "version": "5.0.41",+ "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.41/ba4fc8219ce8341cb7921f11ec059f7b6b4ba51d",+ "integrity": "sha512-bY1O/u4ig64VJ7YAmpl0F8aKdpDJaghV19fRplEl9EaRR87FonY2H6tcScDlH5KIZKCHBdjXge+FgDcNv/DbTw==","optional": true},"@teamsupercell/typings-for-css-modules-loader": {@@ -61168,7 +61132,7 @@"version": "6.0.2","resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz","integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",- "dev": true,+ "devOptional": true,"requires": {"debug": "4"}@@ -61531,7 +61495,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz","integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==",- "dev": true+ "devOptional": true},"archiver": {"version": "5.3.2",@@ -62809,9 +62773,7 @@"version": "2.11.2","resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.2.tgz","integrity": "sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==",- "dev": true,"optional": true,- "peer": true,"requires": {"@mapbox/node-pre-gyp": "^1.0.0","nan": "^2.17.0",@@ -62879,7 +62841,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz","integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",- "dev": true+ "devOptional": true},"chrome-launcher": {"version": "0.15.2",@@ -63180,7 +63142,7 @@"version": "1.1.3","resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz","integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",- "dev": true+ "devOptional": true},"colord": {"version": "2.9.3",@@ -63643,7 +63605,7 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz","integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",- "dev": true+ "devOptional": true},"content-disposition": {"version": "0.5.4",@@ -64782,7 +64744,7 @@"version": "1.0.0","resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz","integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",- "dev": true+ "devOptional": true},"denodeify": {"version": "1.2.1",@@ -64820,7 +64782,7 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz","integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==",- "dev": true+ "devOptional": true},"detect-newline": {"version": "3.1.0",@@ -68391,7 +68353,7 @@"version": "2.0.1","resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz","integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",- "dev": true+ "devOptional": true},"has-value": {"version": "1.0.0",@@ -68788,7 +68750,7 @@"version": "5.0.1","resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz","integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",- "dev": true,+ "devOptional": true,"requires": {"agent-base": "6","debug": "4"@@ -76013,7 +75975,7 @@"version": "2.1.2","resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz","integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",- "dev": true,+ "devOptional": true,"requires": {"minipass": "^3.0.0","yallist": "^4.0.0"@@ -76023,7 +75985,7 @@"version": "3.3.6","resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz","integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",- "dev": true,+ "devOptional": true,"requires": {"yallist": "^4.0.0"}@@ -76032,7 +75994,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz","integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "dev": true+ "devOptional": true}}},@@ -76089,9 +76051,7 @@"version": "2.19.0","resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz","integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==",- "dev": true,- "optional": true,- "peer": true+ "optional": true},"nanoid": {"version": "4.0.2",@@ -79071,10 +79031,20 @@"resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz","integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="},+ "path2d": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/path2d/-/path2d-0.2.0.tgz",+ "integrity": "sha512-KdPAykQX6kmLSOO6Jpu2KNcCED7CKjmaBNGGNuctOsG0hgYO1OdYQaan6cYXJiG0WmXOwZZPILPBimu5QAIw3A==",+ "optional": true+ },"pdfjs-dist": {- "version": "2.4.456",- "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-2.4.456.tgz",- "integrity": "sha512-yckJEHq3F48hcp6wStEpbN9McOj328Ib09UrBlGAKxvN2k+qYPN5iq6TH6jD1C0pso7zTep+g/CKsYgdrQd5QA=="+ "version": "4.3.136",+ "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.3.136.tgz",+ "integrity": "sha512-gzfnt1qc4yA+U46golPGYtU4WM2ssqP2MvFjKga8GEKOrEnzRPrA/9jogLLPYHiA3sGBPJ+p7BdAq+ytmw3jEg==",+ "requires": {+ "canvas": "^2.11.2",+ "path2d": "^0.2.0"+ }},"pend": {"version": "1.2.0",@@ -82250,17 +82220,13 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz","integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",- "dev": true,- "optional": true,- "peer": true+ "optional": true},"simple-get": {"version": "3.1.1","resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz","integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==",- "dev": true,"optional": true,- "peer": true,"requires": {"decompress-response": "^4.2.0","once": "^1.3.1",@@ -82271,9 +82237,7 @@"version": "4.2.1","resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz","integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==",- "dev": true,"optional": true,- "peer": true,"requires": {"mimic-response": "^2.0.0"}@@ -82282,9 +82246,7 @@"version": "2.1.0","resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz","integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",- "dev": true,- "optional": true,- "peer": true+ "optional": true}}},@@ -83435,7 +83397,7 @@"version": "6.2.0","resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz","integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==",- "dev": true,+ "devOptional": true,"requires": {"chownr": "^2.0.0","fs-minipass": "^2.0.0",@@ -83449,7 +83411,7 @@"version": "2.1.0","resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz","integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",- "dev": true,+ "devOptional": true,"requires": {"minipass": "^3.0.0"},@@ -83458,7 +83420,7 @@"version": "3.3.6","resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz","integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",- "dev": true,+ "devOptional": true,"requires": {"yallist": "^4.0.0"}@@ -83469,19 +83431,19 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz","integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",- "dev": true+ "devOptional": true},"mkdirp": {"version": "1.0.4","resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz","integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",- "dev": true+ "devOptional": true},"yallist": {"version": "4.0.0","resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz","integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "dev": true+ "devOptional": true}}},@@ -85473,7 +85435,7 @@"version": "1.1.5","resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz","integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",- "dev": true,+ "devOptional": true,"requires": {"string-width": "^1.0.2 || 2 || 3 || 4"}diff --git a/package.json b/package.jsonindex d434d6e0c..48d56c7e1 100644--- a/package.json+++ b/package.json@@ -54,7 +54,7 @@"dev-open-file": "git apply run-with-args.patch && npm run dev","generate-extensions": "node -r ts-node/register scripts/generateExtensionsConfig.ts","generate-jwt": "node scripts/jwt_generate.js",- "postinstall": "ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run prepare-node && node -r ts-node/register ./.erb/scripts/link-modules.ts && npm run build:dll",+ "postinstall": "electron-builder install-app-deps && npm run prepare-node && node -r ts-node/register ./.erb/scripts/link-modules.ts && npm run build:dll","install-ext-node": "rimraf release/app/node_modules && cd ./release/app && npm install && cd ../.. && npm run generate-extensions","install-ext-node-check": "npx cross-env PD_PLATFORM=node node scripts/checkWSinstalled.js","install-ext-node-linux": "rimraf release/app/node_modules && npm install --prefix ./release/app --platform=linux --arch=x64 && npm run generate-extensions",@@ -193,7 +193,7 @@"open-location-code": "^1.0.3","open-location-code-typescript": "^1.5.0","papaparse": "^5.4.1",- "pdfjs-dist": "2.4.456",+ "pdfjs-dist": "^4.3.136","picomatch": "^3.0.1","qrcode.react": "^3.1.0","rc-table": "^7.8.0",@@ -228,7 +228,7 @@"uuid": "^9.0.0"},"optionalDependencies": {- "@tagspacespro/tagspacespro": "5.0.40"+ "@tagspacespro/tagspacespro": "5.0.41"},"devDependencies": {"@electron/notarize": "^2.3.2",diff --git a/src/renderer/services/thumbsgenerator.ts b/src/renderer/services/thumbsgenerator.tsindex 21157fc9b..c30799868 100644--- a/src/renderer/services/thumbsgenerator.ts+++ b/src/renderer/services/thumbsgenerator.ts@@ -23,9 +23,13 @@ import {import AppConfig from '-/AppConfig';import { Pro } from '../pro';import { FileTypeGroups } from '-/services/search';-import pdfjsLib from 'pdfjs-dist/build/pdf.min.js';+import * as pdfjsModule from 'pdfjs-dist/legacy/build/pdf.min.mjs';-import('pdfjs-dist/build/pdf.worker.min.js');+const pdfjs = (+ 'default' in pdfjsModule ? pdfjsModule['default'] : pdfjsModule+) as typeof pdfjsModule;++import('pdfjs-dist/build/pdf.worker.mjs');let maxSize = AppConfig.maxThumbSize;const thumbnailBackgroundColor = AppConfig.thumbBgColor;@@ -198,7 +202,7 @@ export function generatePDFThumbnail(let canvas: HTMLCanvasElement = document.createElement('canvas');const ctx = canvas.getContext('2d');// ensurePDFJS().then(pdfjsLib => {- const loadingTask = pdfjsLib.getDocument(fileURL);+ const loadingTask = pdfjs.getDocument(fileURL);loadingTask.promise.then((pdf) => {