diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-27 07:14:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 12:14:20 +0000 |
commit | c4fea2251606fb0b3d0d761a544dac578f3d9048 (patch) | |
tree | 3dbd85877f0d7b3d9de78ace7809e809a7a212d4 /dev/lib | |
parent | 2e9ea19207a7410f929bb908759d48cb2340f29c (diff) |
Update to zip.js for tests (#698)
* Use zip.js
* Set compression level to 0
* Update comments
Diffstat (limited to 'dev/lib')
-rw-r--r-- | dev/lib/zip.js | 14 |
1 files changed, 14 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. */ +/** + * 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'; |