@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-05-07T12:48:03",
2
+ "timestamp": "2024-05-08T08:02:00",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "3.3.1",
@@ -29985,7 +29985,9 @@ const SwirlFileViewerPdf = class {
29985
29985
  if (Boolean(this.doc)) {
29986
29986
  this.doc.destroy();
29987
29987
  }
29988
- this.doc = await pdf.getDocument(this.file).promise;
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
- this.doc = await getDocument(this.file).promise;
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));