Alternatively, load it from a CDN:
-<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.2/jspdf.umd.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.0/jspdf.umd.min.js"></script>
Or always get latest version via unpkg
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"></script>
@@ -181,7 +181,7 @@ Polyfills
Alternatively, you can load the prebundled polyfill file. This is not recommended, since you might end up
loading polyfills multiple times. Might still be nifty for small applications or quick POCs.
-<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.2/polyfills.umd.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.0/polyfills.umd.js"></script>
Use of Unicode Characters / UTF-8:
The 14 standard fonts in PDF are limited to the ASCII-codepage. If you want to use UTF-8 you have to integrate a
@@ -280,7 +280,7 @@
License (MIT)
diff --git a/docs/jsPDF-API.GState.html b/docs/jsPDF-API.GState.html
index af218598f..4d1ef97e3 100644
--- a/docs/jsPDF-API.GState.html
+++ b/docs/jsPDF-API.GState.html
@@ -219,7 +219,7 @@ Parameters:
diff --git a/docs/jsPDF-API.ShadingPattern.html b/docs/jsPDF-API.ShadingPattern.html
index 00ee0bb7b..f6db25d31 100644
--- a/docs/jsPDF-API.ShadingPattern.html
+++ b/docs/jsPDF-API.ShadingPattern.html
@@ -380,7 +380,7 @@ Extends
diff --git a/docs/jsPDF-API.TilingPattern.html b/docs/jsPDF-API.TilingPattern.html
index d320c875c..43cf8cf13 100644
--- a/docs/jsPDF-API.TilingPattern.html
+++ b/docs/jsPDF-API.TilingPattern.html
@@ -378,7 +378,7 @@ Extends
diff --git a/docs/jsPDF.html b/docs/jsPDF.html
index a39b4ebab..13944b92a 100644
--- a/docs/jsPDF.html
+++ b/docs/jsPDF.html
@@ -15276,7 +15276,7 @@ (inner)
diff --git a/docs/jspdf.js.html b/docs/jspdf.js.html
index a5009dc29..925d94231 100644
--- a/docs/jspdf.js.html
+++ b/docs/jspdf.js.html
@@ -6171,7 +6171,7 @@ jspdf.js
diff --git a/docs/libs_BMPDecoder.js.html b/docs/libs_BMPDecoder.js.html
index edb74344e..f967fc12f 100644
--- a/docs/libs_BMPDecoder.js.html
+++ b/docs/libs_BMPDecoder.js.html
@@ -335,7 +335,7 @@ libs/BMPDecoder.js
diff --git a/docs/libs_Blob.js.html b/docs/libs_Blob.js.html
index 99cfa5635..1a1a17946 100644
--- a/docs/libs_Blob.js.html
+++ b/docs/libs_Blob.js.html
@@ -459,26 +459,6 @@ libs/Blob.js
}
function fixFileAndXHR() {
- var isIE =
- !!global.ActiveXObject ||
- ("-ms-scroll-limit" in document.documentElement.style &&
- "-ms-ime-align" in document.documentElement.style);
-
- // Monkey patched
- // IE don't set Content-Type header on XHR whose body is a typed Blob
- // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6047383
- var _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send;
- if (isIE && _send) {
- XMLHttpRequest.prototype.send = function(data) {
- if (data instanceof Blob) {
- this.setRequestHeader("Content-Type", data.type);
- _send.call(this, data);
- } else {
- _send.call(this, data);
- }
- };
- }
-
try {
new File([], "");
} catch (e) {
@@ -542,7 +522,7 @@ libs/Blob.js
diff --git a/docs/libs_WebPDecoder.js.html b/docs/libs_WebPDecoder.js.html
index 5074b21e7..ecb2fea2c 100644
--- a/docs/libs_WebPDecoder.js.html
+++ b/docs/libs_WebPDecoder.js.html
@@ -5508,7 +5508,7 @@ libs/WebPDecoder.js
diff --git a/docs/libs_bidiEngine.js.html b/docs/libs_bidiEngine.js.html
index c07120fb7..296bc6dfa 100644
--- a/docs/libs_bidiEngine.js.html
+++ b/docs/libs_bidiEngine.js.html
@@ -2746,7 +2746,7 @@ libs/bidiEngine.js
diff --git a/docs/libs_md5.js.html b/docs/libs_md5.js.html
index b6196e0c2..acefd15b3 100644
--- a/docs/libs_md5.js.html
+++ b/docs/libs_md5.js.html
@@ -280,7 +280,7 @@ libs/md5.js
diff --git a/docs/libs_pdfname.js.html b/docs/libs_pdfname.js.html
index 659926f09..6f8369ef8 100644
--- a/docs/libs_pdfname.js.html
+++ b/docs/libs_pdfname.js.html
@@ -105,7 +105,7 @@ libs/pdfname.js
diff --git a/docs/libs_pdfsecurity.js.html b/docs/libs_pdfsecurity.js.html
index 0a9b12865..76a7a09dc 100644
--- a/docs/libs_pdfsecurity.js.html
+++ b/docs/libs_pdfsecurity.js.html
@@ -218,7 +218,7 @@ libs/pdfsecurity.js
diff --git a/docs/libs_rc4.js.html b/docs/libs_rc4.js.html
index 286c419eb..df81afae2 100644
--- a/docs/libs_rc4.js.html
+++ b/docs/libs_rc4.js.html
@@ -115,7 +115,7 @@ libs/rc4.js
diff --git a/docs/libs_rgbcolor.js.html b/docs/libs_rgbcolor.js.html
index dbec04d6e..71a521ac3 100644
--- a/docs/libs_rgbcolor.js.html
+++ b/docs/libs_rgbcolor.js.html
@@ -295,7 +295,7 @@ libs/rgbcolor.js
diff --git a/docs/module-AcroForm-AcroFormButton.html b/docs/module-AcroForm-AcroFormButton.html
index bc0fe1d5f..9feb6369f 100644
--- a/docs/module-AcroForm-AcroFormButton.html
+++ b/docs/module-AcroForm-AcroFormButton.html
@@ -1841,7 +1841,7 @@ Type:
diff --git a/docs/module-AcroForm-AcroFormCheckBox.html b/docs/module-AcroForm-AcroFormCheckBox.html
index 0a28d3219..565fa9c4e 100644
--- a/docs/module-AcroForm-AcroFormCheckBox.html
+++ b/docs/module-AcroForm-AcroFormCheckBox.html
@@ -2318,7 +2318,7 @@ Type:
diff --git a/docs/module-AcroForm-AcroFormChoiceField.html b/docs/module-AcroForm-AcroFormChoiceField.html
index 0ed1212bb..7a2269ea9 100644
--- a/docs/module-AcroForm-AcroFormChoiceField.html
+++ b/docs/module-AcroForm-AcroFormChoiceField.html
@@ -1841,7 +1841,7 @@ Type:
diff --git a/docs/module-AcroForm-AcroFormComboBox.html b/docs/module-AcroForm-AcroFormComboBox.html
index dc3e7082e..0cae609f7 100644
--- a/docs/module-AcroForm-AcroFormComboBox.html
+++ b/docs/module-AcroForm-AcroFormComboBox.html
@@ -2975,7 +2975,7 @@ Parameters:
diff --git a/docs/module-AcroForm-AcroFormEditBox.html b/docs/module-AcroForm-AcroFormEditBox.html
index f0fdc2e69..518e25d86 100644
--- a/docs/module-AcroForm-AcroFormEditBox.html
+++ b/docs/module-AcroForm-AcroFormEditBox.html
@@ -2977,7 +2977,7 @@ Parameters:
diff --git a/docs/module-AcroForm-AcroFormField.html b/docs/module-AcroForm-AcroFormField.html
index 6bc8e0e5f..d710c1e9c 100644
--- a/docs/module-AcroForm-AcroFormField.html
+++ b/docs/module-AcroForm-AcroFormField.html
@@ -184,7 +184,7 @@ new Acro
diff --git a/docs/module-AcroForm-AcroFormListBox.html b/docs/module-AcroForm-AcroFormListBox.html
index da32b2196..b30421e70 100644
--- a/docs/module-AcroForm-AcroFormListBox.html
+++ b/docs/module-AcroForm-AcroFormListBox.html
@@ -2973,7 +2973,7 @@ Parameters:
diff --git a/docs/module-AcroForm-AcroFormPDFObject.html b/docs/module-AcroForm-AcroFormPDFObject.html
index 7830f3a63..7fba16f21 100644
--- a/docs/module-AcroForm-AcroFormPDFObject.html
+++ b/docs/module-AcroForm-AcroFormPDFObject.html
@@ -180,7 +180,7 @@ new
diff --git a/docs/module-AcroForm-AcroFormPasswordField.html b/docs/module-AcroForm-AcroFormPasswordField.html
index e70970c18..de68e204c 100644
--- a/docs/module-AcroForm-AcroFormPasswordField.html
+++ b/docs/module-AcroForm-AcroFormPasswordField.html
@@ -2468,7 +2468,7 @@ Type:
diff --git a/docs/module-AcroForm-AcroFormPushButton.html b/docs/module-AcroForm-AcroFormPushButton.html
index b12eada5d..54216fc58 100644
--- a/docs/module-AcroForm-AcroFormPushButton.html
+++ b/docs/module-AcroForm-AcroFormPushButton.html
@@ -2318,7 +2318,7 @@ Type:
diff --git a/docs/module-AcroForm-AcroFormRadioButton.html b/docs/module-AcroForm-AcroFormRadioButton.html
index 9ae1da303..bf0695baa 100644
--- a/docs/module-AcroForm-AcroFormRadioButton.html
+++ b/docs/module-AcroForm-AcroFormRadioButton.html
@@ -2318,7 +2318,7 @@ Type:
diff --git a/docs/module-AcroForm-AcroFormTextField.html b/docs/module-AcroForm-AcroFormTextField.html
index f9fbc0385..4428bbc2b 100644
--- a/docs/module-AcroForm-AcroFormTextField.html
+++ b/docs/module-AcroForm-AcroFormTextField.html
@@ -1841,7 +1841,7 @@ Type:
diff --git a/docs/module-AcroForm.html b/docs/module-AcroForm.html
index 7570a3eb2..4ec004b83 100644
--- a/docs/module-AcroForm.html
+++ b/docs/module-AcroForm.html
@@ -937,7 +937,7 @@ (inner)
diff --git a/docs/module-addImage.html b/docs/module-addImage.html
index 89bc7b730..f6b89a5dc 100644
--- a/docs/module-addImage.html
+++ b/docs/module-addImage.html
@@ -2292,7 +2292,7 @@ Type:
diff --git a/docs/module-annotations.html b/docs/module-annotations.html
index d7c643b7b..305857b63 100644
--- a/docs/module-annotations.html
+++ b/docs/module-annotations.html
@@ -945,7 +945,7 @@ Returns:
diff --git a/docs/module-arabic.html b/docs/module-arabic.html
index 63125823d..3dc7c9003 100644
--- a/docs/module-arabic.html
+++ b/docs/module-arabic.html
@@ -327,7 +327,7 @@ Returns:
diff --git a/docs/module-autoprint.html b/docs/module-autoprint.html
index 66a3820bf..e5e879c3a 100644
--- a/docs/module-autoprint.html
+++ b/docs/module-autoprint.html
@@ -258,7 +258,7 @@ Returns:
diff --git a/docs/module-bmp_support.html b/docs/module-bmp_support.html
index 15960e67d..f33f40f4b 100644
--- a/docs/module-bmp_support.html
+++ b/docs/module-bmp_support.html
@@ -173,7 +173,7 @@ bmp_support
diff --git a/docs/module-canvas-Canvas.html b/docs/module-canvas-Canvas.html
index ef6c30d10..645b46ae0 100644
--- a/docs/module-canvas-Canvas.html
+++ b/docs/module-canvas-Canvas.html
@@ -180,7 +180,7 @@ new Canvas
diff --git a/docs/module-canvas.html b/docs/module-canvas.html
index 743a8cdce..f12a68d26 100644
--- a/docs/module-canvas.html
+++ b/docs/module-canvas.html
@@ -564,7 +564,7 @@ (inner) toD
diff --git a/docs/module-cell.html b/docs/module-cell.html
index 2b0ddf95e..7de3bfb9f 100644
--- a/docs/module-cell.html
+++ b/docs/module-cell.html
@@ -1619,7 +1619,7 @@ Returns:
diff --git a/docs/module-context2d.html b/docs/module-context2d.html
index df809bef5..469219c19 100644
--- a/docs/module-context2d.html
+++ b/docs/module-context2d.html
@@ -6082,7 +6082,7 @@ Parameters:
diff --git a/docs/module-fileloading.html b/docs/module-fileloading.html
index 53cc167b0..33a789c6d 100644
--- a/docs/module-fileloading.html
+++ b/docs/module-fileloading.html
@@ -477,7 +477,7 @@ Parameters:
diff --git a/docs/module-gif_support.html b/docs/module-gif_support.html
index c66bc8157..a2e23a3a5 100644
--- a/docs/module-gif_support.html
+++ b/docs/module-gif_support.html
@@ -173,7 +173,7 @@ gif_support
diff --git a/docs/module-html.html b/docs/module-html.html
index 3d3c60a4d..9db2ec680 100644
--- a/docs/module-html.html
+++ b/docs/module-html.html
@@ -1136,7 +1136,7 @@ Properties:
diff --git a/docs/module-javascript.html b/docs/module-javascript.html
index b3ce5f311..346907f2f 100644
--- a/docs/module-javascript.html
+++ b/docs/module-javascript.html
@@ -327,7 +327,7 @@ Returns:
diff --git a/docs/module-jpeg_support.html b/docs/module-jpeg_support.html
index f9b620320..c2ef36350 100644
--- a/docs/module-jpeg_support.html
+++ b/docs/module-jpeg_support.html
@@ -173,7 +173,7 @@ jpeg_support
diff --git a/docs/module-outline.html b/docs/module-outline.html
index 280adf72d..aca321a05 100644
--- a/docs/module-outline.html
+++ b/docs/module-outline.html
@@ -174,7 +174,7 @@ outline
diff --git a/docs/module-png_support.html b/docs/module-png_support.html
index b4edf223e..f17bc3a9e 100644
--- a/docs/module-png_support.html
+++ b/docs/module-png_support.html
@@ -173,7 +173,7 @@ png_support
diff --git a/docs/module-rgba_support.html b/docs/module-rgba_support.html
index b88005b7e..a68d5201e 100644
--- a/docs/module-rgba_support.html
+++ b/docs/module-rgba_support.html
@@ -173,7 +173,7 @@ rgba_support
diff --git a/docs/module-setLanguage.html b/docs/module-setLanguage.html
index bfdba929a..696a3def9 100644
--- a/docs/module-setLanguage.html
+++ b/docs/module-setLanguage.html
@@ -339,7 +339,7 @@ Returns:
diff --git a/docs/module-split_text_to_size.html b/docs/module-split_text_to_size.html
index f8b6b5e99..a1d919859 100644
--- a/docs/module-split_text_to_size.html
+++ b/docs/module-split_text_to_size.html
@@ -749,7 +749,7 @@ Returns:
diff --git a/docs/module-standard_fonts_metrics.html b/docs/module-standard_fonts_metrics.html
index 44da4c5ce..5ded1dac3 100644
--- a/docs/module-standard_fonts_metrics.html
+++ b/docs/module-standard_fonts_metrics.html
@@ -183,7 +183,7 @@ standard_fonts_metrics
diff --git a/docs/module-svg.html b/docs/module-svg.html
index ee342155a..c04d3fce2 100644
--- a/docs/module-svg.html
+++ b/docs/module-svg.html
@@ -485,7 +485,7 @@ Returns:
diff --git a/docs/module-total_pages.html b/docs/module-total_pages.html
index 4da2a52a8..5fd76bc78 100644
--- a/docs/module-total_pages.html
+++ b/docs/module-total_pages.html
@@ -331,7 +331,7 @@ Returns:
diff --git a/docs/module-ttfsupport.html b/docs/module-ttfsupport.html
index ae03da67f..a4a732658 100644
--- a/docs/module-ttfsupport.html
+++ b/docs/module-ttfsupport.html
@@ -92,7 +92,7 @@ ttfsupport
diff --git a/docs/module-utf8.html b/docs/module-utf8.html
index 8cbe58a36..ee3e239ab 100644
--- a/docs/module-utf8.html
+++ b/docs/module-utf8.html
@@ -92,7 +92,7 @@ utf8
diff --git a/docs/module-vFS.html b/docs/module-vFS.html
index b7f4ba757..e92214e50 100644
--- a/docs/module-vFS.html
+++ b/docs/module-vFS.html
@@ -677,7 +677,7 @@ Returns:
diff --git a/docs/module-viewerpreferences.html b/docs/module-viewerpreferences.html
index 18f32fc0b..841d83b18 100644
--- a/docs/module-viewerpreferences.html
+++ b/docs/module-viewerpreferences.html
@@ -429,7 +429,7 @@ Returns:
diff --git a/docs/module-webp_support.html b/docs/module-webp_support.html
index b81804a86..d2a4fc7bd 100644
--- a/docs/module-webp_support.html
+++ b/docs/module-webp_support.html
@@ -173,7 +173,7 @@ webp_support
diff --git a/docs/module-xmp_metadata.html b/docs/module-xmp_metadata.html
index f1c3effe2..00086cdeb 100644
--- a/docs/module-xmp_metadata.html
+++ b/docs/module-xmp_metadata.html
@@ -277,7 +277,7 @@ Returns:
diff --git a/docs/modules_acroform.js.html b/docs/modules_acroform.js.html
index 36ab00e05..2e17cffb9 100644
--- a/docs/modules_acroform.js.html
+++ b/docs/modules_acroform.js.html
@@ -3233,7 +3233,7 @@ modules/acroform.js
diff --git a/docs/modules_addimage.js.html b/docs/modules_addimage.js.html
index 7498f80c3..45d697a18 100644
--- a/docs/modules_addimage.js.html
+++ b/docs/modules_addimage.js.html
@@ -1080,7 +1080,7 @@ modules/addimage.js
diff --git a/docs/modules_annotations.js.html b/docs/modules_annotations.js.html
index 90252a39b..80a4d8c0b 100644
--- a/docs/modules_annotations.js.html
+++ b/docs/modules_annotations.js.html
@@ -462,7 +462,7 @@ modules/annotations.js
diff --git a/docs/modules_arabic.js.html b/docs/modules_arabic.js.html
index d34cbfec7..1dbea430b 100644
--- a/docs/modules_arabic.js.html
+++ b/docs/modules_arabic.js.html
@@ -434,7 +434,7 @@ modules/arabic.js
diff --git a/docs/modules_autoprint.js.html b/docs/modules_autoprint.js.html
index f8e7f87c9..754839525 100644
--- a/docs/modules_autoprint.js.html
+++ b/docs/modules_autoprint.js.html
@@ -116,7 +116,7 @@ modules/autoprint.js
diff --git a/docs/modules_bmp_support.js.html b/docs/modules_bmp_support.js.html
index 57ac1f8ac..eccaf32f3 100644
--- a/docs/modules_bmp_support.js.html
+++ b/docs/modules_bmp_support.js.html
@@ -94,7 +94,7 @@ modules/bmp_support.js
diff --git a/docs/modules_canvas.js.html b/docs/modules_canvas.js.html
index 2ffd010c8..1fb463de2 100644
--- a/docs/modules_canvas.js.html
+++ b/docs/modules_canvas.js.html
@@ -205,7 +205,7 @@ modules/canvas.js
diff --git a/docs/modules_cell.js.html b/docs/modules_cell.js.html
index 852b20cf1..0a05848f8 100644
--- a/docs/modules_cell.js.html
+++ b/docs/modules_cell.js.html
@@ -733,7 +733,7 @@ modules/cell.js
diff --git a/docs/modules_context2d.js.html b/docs/modules_context2d.js.html
index 79f40c48b..2e66f9f7a 100644
--- a/docs/modules_context2d.js.html
+++ b/docs/modules_context2d.js.html
@@ -2738,7 +2738,7 @@ modules/context2d.js
diff --git a/docs/modules_fileloading.js.html b/docs/modules_fileloading.js.html
index 0dc1aea64..d5caf1107 100644
--- a/docs/modules_fileloading.js.html
+++ b/docs/modules_fileloading.js.html
@@ -178,7 +178,7 @@ modules/fileloading.js
diff --git a/docs/modules_gif_support.js.html b/docs/modules_gif_support.js.html
index 672578da0..7b9daac1f 100644
--- a/docs/modules_gif_support.js.html
+++ b/docs/modules_gif_support.js.html
@@ -98,7 +98,7 @@ modules/gif_support.js
diff --git a/docs/modules_html.js.html b/docs/modules_html.js.html
index b45def846..31f3f31b8 100644
--- a/docs/modules_html.js.html
+++ b/docs/modules_html.js.html
@@ -1149,7 +1149,7 @@ modules/html.js
diff --git a/docs/modules_javascript.js.html b/docs/modules_javascript.js.html
index d250f42cb..973a550e9 100644
--- a/docs/modules_javascript.js.html
+++ b/docs/modules_javascript.js.html
@@ -123,7 +123,7 @@ modules/javascript.js
diff --git a/docs/modules_jpeg_support.js.html b/docs/modules_jpeg_support.js.html
index 16f661989..a3fffbe79 100644
--- a/docs/modules_jpeg_support.js.html
+++ b/docs/modules_jpeg_support.js.html
@@ -167,7 +167,7 @@ modules/jpeg_support.js
diff --git a/docs/modules_outline.js.html b/docs/modules_outline.js.html
index b662c8310..c4b4d2b7a 100644
--- a/docs/modules_outline.js.html
+++ b/docs/modules_outline.js.html
@@ -331,7 +331,7 @@ modules/outline.js
diff --git a/docs/modules_png_support.js.html b/docs/modules_png_support.js.html
index 1e2927bfd..1fb8def52 100644
--- a/docs/modules_png_support.js.html
+++ b/docs/modules_png_support.js.html
@@ -548,7 +548,7 @@ modules/png_support.js
diff --git a/docs/modules_rgba_support.js.html b/docs/modules_rgba_support.js.html
index 67ff14eaf..39d29658b 100644
--- a/docs/modules_rgba_support.js.html
+++ b/docs/modules_rgba_support.js.html
@@ -137,7 +137,7 @@ modules/rgba_support.js
diff --git a/docs/modules_setlanguage.js.html b/docs/modules_setlanguage.js.html
index eaa141d55..2a05ddacd 100644
--- a/docs/modules_setlanguage.js.html
+++ b/docs/modules_setlanguage.js.html
@@ -307,7 +307,7 @@ modules/setlanguage.js
diff --git a/docs/modules_split_text_to_size.js.html b/docs/modules_split_text_to_size.js.html
index 7a863d8bc..ebdd47438 100644
--- a/docs/modules_split_text_to_size.js.html
+++ b/docs/modules_split_text_to_size.js.html
@@ -451,7 +451,7 @@ modules/split_text_to_size.js
diff --git a/docs/modules_standard_fonts_metrics.js.html b/docs/modules_standard_fonts_metrics.js.html
index 4698e3d58..75e04624a 100644
--- a/docs/modules_standard_fonts_metrics.js.html
+++ b/docs/modules_standard_fonts_metrics.js.html
@@ -363,7 +363,7 @@ modules/standard_fonts_metrics.js
diff --git a/docs/modules_svg.js.html b/docs/modules_svg.js.html
index 34cfdf8b3..fef65af1f 100644
--- a/docs/modules_svg.js.html
+++ b/docs/modules_svg.js.html
@@ -212,7 +212,7 @@ modules/svg.js
diff --git a/docs/modules_total_pages.js.html b/docs/modules_total_pages.js.html
index ddbbeb4d9..363963fa5 100644
--- a/docs/modules_total_pages.js.html
+++ b/docs/modules_total_pages.js.html
@@ -129,7 +129,7 @@ modules/total_pages.js
diff --git a/docs/modules_ttfsupport.js.html b/docs/modules_ttfsupport.js.html
index d162b3f53..67778056a 100644
--- a/docs/modules_ttfsupport.js.html
+++ b/docs/modules_ttfsupport.js.html
@@ -130,7 +130,7 @@ modules/ttfsupport.js
diff --git a/docs/modules_utf8.js.html b/docs/modules_utf8.js.html
index 0bea5383a..bac482de9 100644
--- a/docs/modules_utf8.js.html
+++ b/docs/modules_utf8.js.html
@@ -429,7 +429,7 @@ modules/utf8.js
diff --git a/docs/modules_vfs.js.html b/docs/modules_vfs.js.html
index f92103c0b..f2aa68435 100644
--- a/docs/modules_vfs.js.html
+++ b/docs/modules_vfs.js.html
@@ -133,7 +133,7 @@ modules/vfs.js
diff --git a/docs/modules_viewerpreferences.js.html b/docs/modules_viewerpreferences.js.html
index ed154b2db..3ee204800 100644
--- a/docs/modules_viewerpreferences.js.html
+++ b/docs/modules_viewerpreferences.js.html
@@ -429,7 +429,7 @@ modules/viewerpreferences.js
diff --git a/docs/modules_webp_support.js.html b/docs/modules_webp_support.js.html
index 53c0be24d..5dae862cb 100644
--- a/docs/modules_webp_support.js.html
+++ b/docs/modules_webp_support.js.html
@@ -95,7 +95,7 @@ modules/webp_support.js
diff --git a/docs/modules_xmp_metadata.js.html b/docs/modules_xmp_metadata.js.html
index aa1a12268..1402aaf85 100644
--- a/docs/modules_xmp_metadata.js.html
+++ b/docs/modules_xmp_metadata.js.html
@@ -164,7 +164,7 @@ modules/xmp_metadata.js
diff --git a/examples/PDF.js/build/pdf.js b/examples/PDF.js/build/pdf.js
index a061175b1..6920fbe8f 100644
--- a/examples/PDF.js/build/pdf.js
+++ b/examples/PDF.js/build/pdf.js
@@ -17864,11 +17864,10 @@
var userAgent =
(typeof navigator !== "undefined" && navigator.userAgent) || "";
- var isIE = /Trident/.test(userAgent);
var isIOSChrome = /CriOS/.test(userAgent);
(function checkOnBlobSupport() {
- if (isIE || isIOSChrome) {
+ if (isIOSChrome) {
compatibilityParams.disableCreateObjectURL = true;
}
})();
diff --git a/examples/PDF.js/pdfobject.js b/examples/PDF.js/pdfobject.js
index a218e415b..206cca7b0 100644
--- a/examples/PDF.js/pdfobject.js
+++ b/examples/PDF.js/pdfobject.js
@@ -38,7 +38,6 @@
ua = window.navigator.userAgent,
//declare booleans
supportsPDFs,
- isIE,
supportsPdfMimeType =
typeof navigator.mimeTypes["application/pdf"] !== "undefined",
supportsPdfActiveX,
@@ -85,16 +84,6 @@
return ax;
};
- //IE11 still uses ActiveX for Adobe Reader, but IE 11 doesn't expose
- //window.ActiveXObject the same way previous versions of IE did
- //window.ActiveXObject will evaluate to false in IE 11, but "ActiveXObject" in window evaluates to true
- //so check the first one for older IE, and the second for IE11
- //FWIW, MS Edge (replacing IE11) does not support ActiveX at all, both will evaluate false
- //Constructed as a method (not a prop) to avoid unneccesarry overhead -- will only be evaluated if needed
- isIE = function() {
- return !!(window.ActiveXObject || "ActiveXObject" in window);
- };
-
//If either ActiveX support for "AcroPDF.PDF" or "PDF.PdfCtrl" are found, return true
//Constructed as a method (not a prop) to avoid unneccesarry overhead -- will only be evaluated if needed
supportsPdfActiveX = function() {
@@ -110,9 +99,7 @@
//Modern versions of Firefox come bundled with PDFJS
(isFirefoxWithPDFJS ||
//Browsers that still support the original MIME type check
- supportsPdfMimeType ||
- //Pity the poor souls still using IE
- (isIE() && supportsPdfActiveX()));
+ supportsPdfMimeType);
//Create a fragment identifier for using PDF Open parameters when embedding PDF
buildFragmentString = function(pdfParams) {
diff --git a/examples/js/ace.js b/examples/js/ace.js
index 3fd7cef36..bd0559384 100644
--- a/examples/js/ace.js
+++ b/examples/js/ace.js
@@ -984,19 +984,6 @@
(t.isWin = r == "win"),
(t.isMac = r == "mac"),
(t.isLinux = r == "linux"),
- (t.isIE =
- navigator.appName == "Microsoft Internet Explorer" ||
- navigator.appName.indexOf("MSAppHost") >= 0
- ? parseFloat(
- (i.match(
- /(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/
- ) || [])[1]
- )
- : parseFloat(
- (i.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/) ||
- [])[1]
- )),
- (t.isOldIE = t.isIE && t.isIE < 9),
(t.isGecko = t.isMozilla =
(window.Controllers || window.controllers) &&
window.navigator.product === "Gecko"),
@@ -1167,15 +1154,6 @@
: e.detail > 1
? (o++, o > 4 && (o = 1))
: (o = 1);
- if (i.isIE) {
- var c = Math.abs(e.clientX - u) > 5 || Math.abs(e.clientY - a) > 5;
- if (!f || c) o = 1;
- f && clearTimeout(f),
- (f = setTimeout(function() {
- f = null;
- }, n[o - 1] || 600)),
- o == 1 && ((u = e.clientX), (a = e.clientY));
- }
(e._clicks = o), r[s]("mousedown", e);
if (o > 4) o = 0;
else if (o > 1) return r[s](l[o], e);
@@ -1196,8 +1174,7 @@
l = { 2: "dblclick", 3: "tripleclick", 4: "quadclick" };
Array.isArray(e) || (e = [e]),
e.forEach(function(e) {
- t.addListener(e, "mousedown", c),
- i.isOldIE && t.addListener(e, "dblclick", h);
+ t.addListener(e, "mousedown", c);
});
});
var u =
@@ -1251,7 +1228,7 @@
s || (f(), r(window, "focus", f));
}
});
- if (typeof window == "object" && window.postMessage && !i.isOldIE) {
+ if (typeof window == "object" && window.postMessage) {
var l = 1;
t.nextTick = function(e, n) {
n = n || window;
@@ -1427,7 +1404,6 @@
s = e("../lib/dom"),
o = e("../lib/lang"),
u = i.isChrome < 18,
- a = i.isIE,
f = function(e, t) {
function b(e) {
if (h) return;
@@ -1447,15 +1423,12 @@
}
function R() {
clearTimeout(q),
- (q = setTimeout(
- function() {
- p && ((n.style.cssText = p), (p = "")),
- t.renderer.$keepTextAreaAtCursor == null &&
- ((t.renderer.$keepTextAreaAtCursor = !0),
- t.renderer.$moveTextAreaToCursor());
- },
- i.isOldIE ? 200 : 0
- ));
+ (q = setTimeout(function() {
+ p && ((n.style.cssText = p), (p = "")),
+ t.renderer.$keepTextAreaAtCursor == null &&
+ ((t.renderer.$keepTextAreaAtCursor = !0),
+ t.renderer.$moveTextAreaToCursor());
+ }, 0));
}
var n = s.createElement("textarea");
(n.className = "ace_text-input"),
@@ -1465,7 +1438,6 @@
n.setAttribute("autocapitalize", "off"),
n.setAttribute("spellcheck", !1),
(n.style.opacity = "0"),
- i.isOldIE && (n.style.top = "-1000px"),
e.insertBefore(n, e.firstChild);
var f = "",
l = !1,
@@ -1529,27 +1501,6 @@
} catch (n) {}
return !t || t.parentElement() != e ? !1 : t.text == e.value;
}));
- if (i.isOldIE) {
- var S = !1,
- x = function(e) {
- if (S) return;
- var t = n.value;
- if (h || !t || t == f) return;
- if (e && t == f[0]) return T.schedule();
- A(t), (S = !0), w(), (S = !1);
- },
- T = o.delayedCall(x);
- r.addListener(n, "propertychange", x);
- var N = { 13: 1, 27: 1 };
- r.addListener(n, "keyup", function(e) {
- h && (!n.value || N[e.keyCode]) && setTimeout(F, 0);
- if ((n.value.charCodeAt(0) || 0) < 129) return T.call();
- h ? j() : B();
- }),
- r.addListener(n, "keydown", function(e) {
- T.schedule(50);
- });
- }
var C = function(e) {
l
? (l = !1)
@@ -1591,7 +1542,7 @@
M = function(e, t, n) {
var r = e.clipboardData || window.clipboardData;
if (!r || u) return;
- var i = a || n ? "Text" : "text/plain";
+ var i = n ? "Text" : "text/plain";
try {
return t ? r.setData(i, t) !== !1 : r.getData(i);
} catch (e) {
@@ -1619,9 +1570,7 @@
H = function(e) {
var s = M(e);
typeof s == "string"
- ? (s && t.onPaste(s, e),
- i.isIE && setTimeout(b),
- r.preventDefault(e))
+ ? (s && t.onPaste(s, e), r.preventDefault(e))
: ((n.value = ""), (c = !0));
};
r.addCommandKeyListener(n, t.onCommandKey.bind(t)),
@@ -1723,14 +1672,12 @@
this.moveToMouse(e, !0);
}),
(this.moveToMouse = function(e, o) {
- if (!o && i.isOldIE) return;
p || (p = n.style.cssText),
(n.style.cssText =
(o ? "z-index:100000;" : "") +
"height:" +
n.style.height +
- ";" +
- (i.isIE ? "opacity:0.1;" : ""));
+ ";");
var u = t.container.getBoundingClientRect(),
a = s.computedStyle(t.container),
f = u.top + (parseInt(a.borderTopWidth) || 0),
@@ -1745,7 +1692,7 @@
t.renderer.$keepTextAreaAtCursor &&
(t.renderer.$keepTextAreaAtCursor = null),
clearTimeout(q),
- i.isWin && !i.isOldIE && r.capture(t.container, h, R);
+ i.isWin && r.capture(t.container, h, R);
}),
(this.onContextMenuClose = R);
var q,
@@ -2493,15 +2440,6 @@
}),
(this.onMouseDrag = function(e) {
var t = this.editor.container;
- if (s.isIE && this.state == "dragReady") {
- var n = l(
- this.mousedownEvent.x,
- this.mousedownEvent.y,
- this.x,
- this.y
- );
- n > 3 && t.dragDrop();
- }
if (this.state === "dragWait") {
var n = l(
this.mousedownEvent.x,
@@ -2972,10 +2910,6 @@
),
r.addListener(u, "mousedown", n),
r.addListener(f, "mousedown", n),
- i.isIE &&
- e.renderer.scrollBarV &&
- (r.addListener(e.renderer.scrollBarV.element, "mousedown", n),
- r.addListener(e.renderer.scrollBarH.element, "mousedown", n)),
e.on("mousemove", function(n) {
if (t.state || t.$dragDelay || !t.$dragEnabled) return;
var r = e.renderer.screenToTextCoordinates(n.x, n.y),
@@ -3042,10 +2976,6 @@
f = function() {
s[s.state] && s[s.state](), (s.$mouseMoved = !1);
};
- if (i.isOldIE && e.domEvent.type == "dblclick")
- return setTimeout(function() {
- a(e);
- });
(s.$onCaptureMouseMove = o),
(s.releaseMouse = r.capture(this.editor.container, o, a));
var l = setInterval(f, 20);
@@ -12306,7 +12236,7 @@
(e.visibility = "hidden"),
(e.position = "absolute"),
(e.whiteSpace = "pre"),
- o.isIE < 8 ? (e["font-family"] = "inherit") : (e.font = "inherit"),
+ (e.font = "inherit"),
(e.overflow = t ? "hidden" : "visible");
}),
(this.checkForSizeChanges = function() {
@@ -12416,7 +12346,7 @@
var g = function(e, t) {
var n = this;
(this.container = e || i.createElement("div")),
- (this.$keepTextAreaAtCursor = !o.isOldIE),
+ (this.$keepTextAreaAtCursor = true),
i.addCssClass(this.container, "ace_editor"),
this.setTheme(t),
(this.$gutter = i.createElement("div")),
diff --git a/examples/js/pdfobject.min.js b/examples/js/pdfobject.min.js
index b0b37d7f9..b5a639653 100644
--- a/examples/js/pdfobject.min.js
+++ b/examples/js/pdfobject.min.js
@@ -22,7 +22,6 @@
var pdfobjectversion = "2.1.1",
ua = window.navigator.userAgent,
supportsPDFs,
- isIE,
supportsPdfMimeType =
typeof navigator.mimeTypes["application/pdf"] !== "undefined",
supportsPdfActiveX,
@@ -58,17 +57,7 @@
}
return ax;
};
- isIE = function() {
- return !!(window.ActiveXObject || "ActiveXObject" in window);
- };
- supportsPdfActiveX = function() {
- return !!(createAXO("AcroPDF.PDF") || createAXO("PDF.PdfCtrl"));
- };
- supportsPDFs =
- !isIOS &&
- (isFirefoxWithPDFJS ||
- supportsPdfMimeType ||
- (isIE() && supportsPdfActiveX()));
+ supportsPDFs = !isIOS && (isFirefoxWithPDFJS || supportsPdfMimeType);
buildFragmentString = function(pdfParams) {
var string = "",
prop;
diff --git a/package-lock.json b/package-lock.json
index 78b8f657d..2b83e1721 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,15 +1,15 @@
{
"name": "jspdf",
- "version": "2.5.2",
+ "version": "3.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "jspdf",
- "version": "2.5.2",
+ "version": "3.0.0",
"license": "MIT",
"dependencies": {
- "@babel/runtime": "^7.23.2",
+ "@babel/runtime": "^7.26.0",
"atob": "^2.1.2",
"btoa": "^1.2.1",
"fflate": "^0.8.1"
@@ -37,7 +37,6 @@
"jasmine": "3.5.0",
"jasmine-core": "3.5.0",
"jasmine-expect": "4.0.3",
- "js-yaml": "3.13.1",
"jsdoc": "^3.6.3",
"karma": "5.1.0",
"karma-babel-preprocessor": "8.0.1",
@@ -71,7 +70,7 @@
"optionalDependencies": {
"canvg": "^3.0.6",
"core-js": "^3.6.0",
- "dompurify": "^2.5.4",
+ "dompurify": "^3.2.4",
"html2canvas": "^1.0.0-rc.5"
}
},
@@ -1576,11 +1575,15 @@
}
},
"node_modules/@babel/runtime": {
- "version": "7.23.2",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz",
- "integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==",
+ "version": "7.26.0",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz",
+ "integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==",
+ "license": "MIT",
"dependencies": {
"regenerator-runtime": "^0.14.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
}
},
"node_modules/@babel/runtime-corejs3": {
@@ -1851,6 +1854,13 @@
"@types/node": "*"
}
},
+ "node_modules/@types/trusted-types": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz",
+ "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==",
+ "license": "MIT",
+ "optional": true
+ },
"node_modules/@types/yauzl": {
"version": "2.9.1",
"resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
@@ -4667,10 +4677,14 @@
}
},
"node_modules/dompurify": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.6.tgz",
- "integrity": "sha512-zUTaUBO8pY4+iJMPE1B9XlO2tXVYIcEA4SNGtvDELzTSCQO7RzH+j7S180BmhmJId78lqGU2z19vgVx2Sxs/PQ==",
- "optional": true
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.4.tgz",
+ "integrity": "sha512-ysFSFEDVduQpyhzAob/kkuJjf5zWkZD8/A9ywSp1byueyuCfHamrCBa14/Oc2iiB0e51B+NpxSl5gmzn+Ms/mg==",
+ "license": "(MPL-2.0 OR Apache-2.0)",
+ "optional": true,
+ "optionalDependencies": {
+ "@types/trusted-types": "^2.0.7"
+ }
},
"node_modules/dot-case": {
"version": "3.0.3",
@@ -7098,19 +7112,6 @@
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
"dev": true
},
- "node_modules/js-yaml": {
- "version": "3.13.1",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
- "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
- "dev": true,
- "dependencies": {
- "argparse": "^1.0.7",
- "esprima": "^4.0.0"
- },
- "bin": {
- "js-yaml": "bin/js-yaml.js"
- }
- },
"node_modules/js2xmlparser": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.1.tgz",
@@ -10192,10 +10193,11 @@
"dev": true
},
"node_modules/rollup": {
- "version": "2.21.0",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.21.0.tgz",
- "integrity": "sha512-BEGgy+wSzux7Ycq58pRiWEOBZaXRXTuvzl1gsm7gqmsAHxkWf9nyA5V2LN9fGSHhhDQd0/C13iRzSh4bbIpWZQ==",
+ "version": "2.79.2",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz",
+ "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==",
"dev": true,
+ "license": "MIT",
"bin": {
"rollup": "dist/bin/rollup"
},
@@ -10203,7 +10205,7 @@
"node": ">=10.0.0"
},
"optionalDependencies": {
- "fsevents": "~2.1.2"
+ "fsevents": "~2.3.2"
}
},
"node_modules/rollup-plugin-commonjs": {
@@ -10332,6 +10334,21 @@
"integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==",
"dev": true
},
+ "node_modules/rollup/node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
"node_modules/run-async": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",
diff --git a/package.json b/package.json
index 4eea1bf21..f3844e930 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "jspdf",
- "version": "2.5.2",
+ "version": "3.0.0",
"homepage": "https://github.com/mrrio/jspdf",
"description": "PDF Document creation from JavaScript",
"main": "dist/jspdf.node.min.js",
@@ -23,7 +23,7 @@
"url": "https://github.com/MrRio/jsPDF.git"
},
"dependencies": {
- "@babel/runtime": "^7.23.2",
+ "@babel/runtime": "^7.26.0",
"atob": "^2.1.2",
"btoa": "^1.2.1",
"fflate": "^0.8.1"
@@ -31,7 +31,7 @@
"optionalDependencies": {
"canvg": "^3.0.6",
"core-js": "^3.6.0",
- "dompurify": "^2.5.4",
+ "dompurify": "^3.2.4",
"html2canvas": "^1.0.0-rc.5"
},
"devDependencies": {
@@ -57,7 +57,6 @@
"jasmine": "3.5.0",
"jasmine-core": "3.5.0",
"jasmine-expect": "4.0.3",
- "js-yaml": "3.13.1",
"jsdoc": "^3.6.3",
"karma": "5.1.0",
"karma-babel-preprocessor": "8.0.1",
@@ -111,7 +110,6 @@
"generate-docs": "jsdoc -c jsdoc.json --readme README.md"
},
"browserslist": [
- "last 2 versions",
- "IE 11"
+ "last 2 versions"
]
}
diff --git a/src/libs/Blob.js b/src/libs/Blob.js
index 00e4049cd..2b24189ac 100644
--- a/src/libs/Blob.js
+++ b/src/libs/Blob.js
@@ -415,26 +415,6 @@ if (strTag) {
}
function fixFileAndXHR() {
- var isIE =
- !!global.ActiveXObject ||
- ("-ms-scroll-limit" in document.documentElement.style &&
- "-ms-ime-align" in document.documentElement.style);
-
- // Monkey patched
- // IE don't set Content-Type header on XHR whose body is a typed Blob
- // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6047383
- var _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send;
- if (isIE && _send) {
- XMLHttpRequest.prototype.send = function(data) {
- if (data instanceof Blob) {
- this.setRequestHeader("Content-Type", data.type);
- _send.call(this, data);
- } else {
- _send.call(this, data);
- }
- };
- }
-
try {
new File([], "");
} catch (e) {
diff --git a/test/karma.common.conf.js b/test/karma.common.conf.js
index b5d38546e..924f9d36d 100644
--- a/test/karma.common.conf.js
+++ b/test/karma.common.conf.js
@@ -27,7 +27,7 @@ var karmaConfig = {
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
- browsers: ["Chrome", "Firefox", "IE"],
+ browsers: ["Chrome", "Firefox"],
// Concurrency level
// how many browser should be started simultaneous
diff --git a/test/saucelabs/karma.conf.js b/test/saucelabs/karma.conf.js
index 2a43f93eb..a23cc822a 100644
--- a/test/saucelabs/karma.conf.js
+++ b/test/saucelabs/karma.conf.js
@@ -1,16 +1,8 @@
// Karma configuration
"use strict";
-const yaml = require("js-yaml");
-const fs = require("fs");
const karmaConfig = require("../karma.common.conf.js");
const browsers = {
- sl_ie_11: {
- base: "SauceLabs",
- browserName: "internet explorer",
- platform: "Windows 10",
- version: "11"
- },
sl_chrome: {
base: "SauceLabs",
browserName: "chrome",
@@ -25,7 +17,6 @@ const browsers = {
};
module.exports = config => {
- // Use ENV vars or .sauce.yml to get credentials
if (
!(
process.env.SAUCE_USERNAME &&
@@ -33,16 +24,9 @@ module.exports = config => {
process.env.SAUCE_ACCESS_KEY.length > 5
)
) {
- if (!fs.existsSync(".sauce.yml")) {
// eslint-disable-next-line no-console
- console.log("Create a .sauce.yml with your credentials");
+ console.error("Saucelabs credentials are missing. Define the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables.");
process.exit(1);
- } else {
- let sauceConfig = yaml.safeLoad(fs.readFileSync(".sauce.yml", "utf8"));
- process.env.SAUCE_USERNAME = sauceConfig.addons.sauce_connect.username;
- process.env.SAUCE_ACCESS_KEY =
- sauceConfig.addons.sauce_connect.access_key;
- }
}
config.set({
...karmaConfig,
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: