@getflip/swirl-components 0.194.0 → 0.194.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.json +1 -1
- package/dist/cjs/swirl-file-viewer_7.cjs.entry.js +3 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf.js +3 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-file-viewer-pdf2.js +3 -1
- package/dist/esm/swirl-file-viewer_7.entry.js +3 -1
- package/dist/swirl-components/{p-405aa8bd.entry.js → p-9097097a.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/package.json +1 -1
package/components.json
CHANGED
|
@@ -29985,7 +29985,9 @@ const SwirlFileViewerPdf = class {
|
|
|
29985
29985
|
if (Boolean(this.doc)) {
|
|
29986
29986
|
this.doc.destroy();
|
|
29987
29987
|
}
|
|
29988
|
-
|
|
29988
|
+
// Don't remove the isEvalSupported property. https://github.com/advisories/GHSA-wgrm-67xf-hhpq
|
|
29989
|
+
this.doc = await pdf.getDocument({ isEvalSupported: false, url: this.file })
|
|
29990
|
+
.promise;
|
|
29989
29991
|
const pages = [];
|
|
29990
29992
|
for (let i = 1; i <= this.doc.numPages; i++) {
|
|
29991
29993
|
pages.push(this.doc.getPage(i));
|
|
@@ -143,7 +143,9 @@ export class SwirlFileViewerPdf {
|
|
|
143
143
|
if (Boolean(this.doc)) {
|
|
144
144
|
this.doc.destroy();
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
// Don't remove the isEvalSupported property. https://github.com/advisories/GHSA-wgrm-67xf-hhpq
|
|
147
|
+
this.doc = await getDocument({ isEvalSupported: false, url: this.file })
|
|
148
|
+
.promise;
|
|
147
149
|
const pages = [];
|
|
148
150
|
for (let i = 1; i <= this.doc.numPages; i++) {
|
|
149
151
|
pages.push(this.doc.getPage(i));
|