1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00
pdf.js/src/shared
Jonas Jenwald 57a307d0cd Update the Node.js compatibility-check in the worker-thread
*Please note:* In Node.js environments a `legacy`-build must be used since only those versions include any polyfills.

Previously we'd only check if `ReadableStream` is natively supported, however since Node.js version 18 that's now been implemented; please see https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#browser_compatibility
Hence we'll also check for the availability of `Path2D`, since that's browser-specific functionality not expected to be available in Node.js environments; please see https://developer.mozilla.org/en-US/docs/Web/API/Path2D#browser_compatibility
2023-03-30 18:36:15 +02:00
..
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
cffStandardStrings.js Fix errors reported by the comma-spacing ESLint rule 2016-12-12 20:35:53 +01:00
compatibility.js Update the Node.js compatibility-check in the worker-thread 2023-03-30 18:36:15 +02:00
fonts_utils.js Remove the isNum helper function 2022-02-22 11:55:34 +01:00
image_utils.js [api-minor] Generate images in the worker instead of the main thread. 2023-03-01 17:40:12 +01:00
is_node.js Use Path2D, if available, when rendering Type3-fonts (bug 810214) 2022-05-01 13:56:35 +02:00
message_handler.js Simplify the wrapReason helper function 2022-02-25 18:31:12 +01:00
murmurhash3.js Remove a couple of unnecessary temporary variables in MurmurHash3_64.hexdigest 2022-11-10 18:27:26 +01:00
scripting_utils.js Fix a bug in the ColorConverters.CMYK_HTML method (PR 12631 follow-up) 2022-06-09 10:03:36 +02:00
util.js Slightly increase the maximum image sizes that we'll cache 2023-03-08 17:06:10 +01:00