Update vue-pdf-embed library to overcome the vulnerability CVE-2024-4367
I'm trying to update vue-pdf-embed library to overcome the vulnerability CVE-2024-4367.
I'm using versions below:
"pdfjs-dist": "^5.4.394",
"vue-pdf-embed": "^2.1.3",
"vue": "^3.5.21",
and seeing below error while npm run serve:
ERROR Failed to compile with 68 errors 7:21:41 PM
error in ./node_modules/vue-pdf-embed/dist/index.mjs
Module parse failed: Unexpected token (4583:74)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| for (const F of c(this, fl).values())
| F.editorType === U && F.show(l);
> (((Z = c(this, zs)) == null ? void 0 : Z.get(Vl.HIGHLIGHT_SHOW_ALL)) ?? !0) !== l && h(this, C, Jt).call(this, [[Vl.HIGHLIGHT_SHOW_ALL, l]]);
| }
| enableWaiting(U = !1) {
@ ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib??ref--14!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/RegulatoryPdf.vue?vue&type=script&lang=js 3:0-40 7:17-28
@ ./src/components/RegulatoryPdf.vue?vue&type=script&lang=js
@ ./src/components/RegulatoryPdf.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://10.119.111.99:8081&sockPath=/sockjs-node ./node_modules/@vue/cli-service/node_modules/webpack/hot/dev-server.js ./src/main.js