From da9de7fd9c66d52faca5e6c07e4efa80bc2738ff Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Tue, 12 Nov 2024 09:15:59 +0000 Subject: [PATCH] Revert "Upgrade PDF.js to v4.8.69 (#21711)" (#21798) This reverts commit 91e0298467034b651d013d73bc41a9efcae7a729. GitOrigin-RevId: 35830409e1d58371922d58ca50932e1752351403 --- package-lock.json | 20 ++++++++++---------- services/web/package.json | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index e35f7eb5ce..dbfce4fffe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41600,7 +41600,7 @@ "mock-fs": "^5.1.2", "nvd3": "^1.8.6", "overleaf-editor-core": "*", - "pdfjs-dist": "4.8.69", + "pdfjs-dist": "4.6.82", "pirates": "^4.0.1", "postcss": "^8.4.31", "postcss-loader": "^7.3.3", @@ -43803,15 +43803,15 @@ } }, "services/web/node_modules/pdfjs-dist": { - "version": "4.8.69", - "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.8.69.tgz", - "integrity": "sha512-IHZsA4T7YElCKNNXtiLgqScw4zPd3pG9do8UrznC757gMd7UPeHSL2qwNNMJo4r79fl8oj1Xx+1nh2YkzdMpLQ==", + "version": "4.6.82", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.6.82.tgz", + "integrity": "sha512-BUOryeRFwvbLe0lOU6NhkJNuVQUp06WxlJVVCsxdmJ4y5cU3O3s3/0DunVdK1PMm7v2MUw52qKYaidhDH1Z9+w==", "dev": true, "engines": { "node": ">=18" }, "optionalDependencies": { - "canvas": "^3.0.0-rc2", + "canvas": "^2.11.2", "path2d": "^0.2.1" } }, @@ -51191,7 +51191,7 @@ "passport-local": "^1.0.0", "passport-oauth2": "^1.5.0", "passport-orcid": "0.0.4", - "pdfjs-dist": "4.8.69", + "pdfjs-dist": "4.6.82", "pirates": "^4.0.1", "postcss": "^8.4.31", "postcss-loader": "^7.3.3", @@ -52801,12 +52801,12 @@ "dev": true }, "pdfjs-dist": { - "version": "4.8.69", - "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.8.69.tgz", - "integrity": "sha512-IHZsA4T7YElCKNNXtiLgqScw4zPd3pG9do8UrznC757gMd7UPeHSL2qwNNMJo4r79fl8oj1Xx+1nh2YkzdMpLQ==", + "version": "4.6.82", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.6.82.tgz", + "integrity": "sha512-BUOryeRFwvbLe0lOU6NhkJNuVQUp06WxlJVVCsxdmJ4y5cU3O3s3/0DunVdK1PMm7v2MUw52qKYaidhDH1Z9+w==", "dev": true, "requires": { - "canvas": "^3.0.0-rc2", + "canvas": "^2.11.2", "path2d": "^0.2.1" } }, diff --git a/services/web/package.json b/services/web/package.json index c758a167e0..8f28101e1a 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -325,7 +325,7 @@ "mock-fs": "^5.1.2", "nvd3": "^1.8.6", "overleaf-editor-core": "*", - "pdfjs-dist": "4.8.69", + "pdfjs-dist": "4.6.82", "pirates": "^4.0.1", "postcss": "^8.4.31", "postcss-loader": "^7.3.3",