From c4fea2251606fb0b3d0d761a544dac578f3d9048 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 27 Feb 2024 07:14:20 -0500 Subject: Update to zip.js for tests (#698) * Use zip.js * Set compression level to 0 * Update comments --- dev/lib/zip.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'dev/lib') diff --git a/dev/lib/zip.js b/dev/lib/zip.js index 62d0784c..ee603c25 100644 --- a/dev/lib/zip.js +++ b/dev/lib/zip.js @@ -15,4 +15,18 @@ * along with this program. If not, see . */ +/** + * This script is importing a file within the '@zip.js/zip.js' dependency rather than + * simply importing '@zip.js/zip.js'. + * + * This is done in order to only import the subset of functionality that the extension needs. + * + * In this case, this subset only includes the components to support decompression using web workers. + * + * Therefore, if this file or the built library file is imported in a development, testing, or + * benchmark script, it will not be able to properly decompress the data of compressed zip files. + * + * As a workaround, testing zip data can be generated using {level: 0} compression. + */ + export * from '@zip.js/zip.js/lib/zip.js'; -- cgit v1.2.3