AAE-22443 Fix pdfjs-dist vulnerabilities

This commit is contained in:
Diogo Bastos 2024-05-22 16:54:10 +01:00
parent 2d347acda1
commit 1bb511d954
No known key found for this signature in database
GPG Key ID: FE1461D16E03AEB3
3 changed files with 17 additions and 21 deletions

View File

@ -114,8 +114,8 @@
"node_modules/pdfjs-dist/web/pdf_viewer.css" "node_modules/pdfjs-dist/web/pdf_viewer.css"
], ],
"scripts": [ "scripts": [
"node_modules/pdfjs-dist/build/pdf.js", "node_modules/pdfjs-dist/build/pdf.mjs",
"node_modules/pdfjs-dist/web/pdf_viewer.js", "node_modules/pdfjs-dist/web/pdf_viewer.mjs",
"node_modules/raphael/raphael.min.js" "node_modules/raphael/raphael.min.js"
], ],
"vendorChunk": true, "vendorChunk": true,

32
package-lock.json generated
View File

@ -38,7 +38,7 @@
"monaco-editor": "^0.33.0", "monaco-editor": "^0.33.0",
"ng2-charts": "^4.1.1", "ng2-charts": "^4.1.1",
"ngx-monaco-editor-v2": "^14.0.4", "ngx-monaco-editor-v2": "^14.0.4",
"pdfjs-dist": "3.3.122", "pdfjs-dist": "^4.2.67",
"raphael": "2.3.0", "raphael": "2.3.0",
"rxjs": "6.6.6", "rxjs": "6.6.6",
"subscriptions-transport-ws": "^0.11.0", "subscriptions-transport-ws": "^0.11.0",
@ -44092,11 +44092,13 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/path2d-polyfill": { "node_modules/path2d": {
"version": "2.0.1", "version": "0.2.0",
"license": "MIT", "resolved": "https://registry.npmjs.org/path2d/-/path2d-0.2.0.tgz",
"integrity": "sha512-KdPAykQX6kmLSOO6Jpu2KNcCED7CKjmaBNGGNuctOsG0hgYO1OdYQaan6cYXJiG0WmXOwZZPILPBimu5QAIw3A==",
"optional": true,
"engines": { "engines": {
"node": ">=8" "node": ">=6"
} }
}, },
"node_modules/pathval": { "node_modules/pathval": {
@ -44123,14 +44125,15 @@
} }
}, },
"node_modules/pdfjs-dist": { "node_modules/pdfjs-dist": {
"version": "3.3.122", "version": "4.2.67",
"license": "Apache-2.0", "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.2.67.tgz",
"dependencies": { "integrity": "sha512-rJmuBDFpD7cqC8WIkQUEClyB4UAH05K4AsyewToMTp2gSy3Rrx8c1ydAVqlJlGv3yZSOrhEERQU/4ScQQFlLHA==",
"path2d-polyfill": "^2.0.1", "engines": {
"web-streams-polyfill": "^3.2.1" "node": ">=18"
}, },
"optionalDependencies": { "optionalDependencies": {
"canvas": "^2.11.0" "canvas": "^2.11.2",
"path2d": "^0.2.0"
} }
}, },
"node_modules/performance-now": { "node_modules/performance-now": {
@ -53077,13 +53080,6 @@
"url": "https://github.com/sponsors/wooorm" "url": "https://github.com/sponsors/wooorm"
} }
}, },
"node_modules/web-streams-polyfill": {
"version": "3.2.1",
"license": "MIT",
"engines": {
"node": ">= 8"
}
},
"node_modules/webdriver-js-extender": { "node_modules/webdriver-js-extender": {
"version": "2.1.0", "version": "2.1.0",
"dev": true, "dev": true,

View File

@ -83,7 +83,7 @@
"monaco-editor": "^0.33.0", "monaco-editor": "^0.33.0",
"ng2-charts": "^4.1.1", "ng2-charts": "^4.1.1",
"ngx-monaco-editor-v2": "^14.0.4", "ngx-monaco-editor-v2": "^14.0.4",
"pdfjs-dist": "3.3.122", "pdfjs-dist": "^4.2.67",
"raphael": "2.3.0", "raphael": "2.3.0",
"rxjs": "6.6.6", "rxjs": "6.6.6",
"subscriptions-transport-ws": "^0.11.0", "subscriptions-transport-ws": "^0.11.0",