From fef19d05c7cdb381f03f4b3427fb1cccd7d9b3ab Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Tue, 17 Aug 2021 11:28:02 +0200 Subject: [PATCH] Update to pdfjs 2.10.377 to fix the preview with firefox 68 The previous release had some regex features in the legacy build that resulted in a syntax error with firefox 68. To be exact this: new RegExp("([\\p{N}\\p{L}\\p{M}]+)|([^\\p{N}\\p{L}\\p{M}]+)", "gu") which is only supported since firefox 78: https://caniuse.com/mdn-javascript_builtins_regexp_property_escapes --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4ab9ad9..bb94422 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "jszip": "^3.5.0", "lit-element": "^2.3.1", "lit-html": "^1.2.1", - "pdfjs-dist": "2.9.359", + "pdfjs-dist": "2.10.377", "universal-router": "^9.0.1" }, "scripts": { diff --git a/yarn.lock b/yarn.lock index 86e745d..7d44846 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5040,10 +5040,10 @@ pathval@^1.1.1: resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== -pdfjs-dist@2.9.359: - version "2.9.359" - resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.9.359.tgz#e67bafebf20e50fc41f1a5c189155ad008ac4f81" - integrity sha512-P2nYtkacdlZaNNwrBLw1ZyMm0oE2yY/5S/GDCAmMJ7U4+ciL/D0mrlEC/o4HZZc/LNE3w8lEVzBEyVgEQlPVKQ== +pdfjs-dist@2.10.377: + version "2.10.377" + resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.10.377.tgz#feadc9f31bf1790795994e54b18930974cf4970a" + integrity sha512-i0jRShtvgfsVQUNCoFYH4SVhPO3U0yhtiFLfZ0RR0B+68N+Vnwq+8B3cjWjLEwWGh8wg1XQ/sYMYKUlHn/Qpsw== performance-now@^2.1.0: version "2.1.0" -- GitLab