single-file-core 1.5.110 → 1.5.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.5.110",
3
+ "version": "1.5.111",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -750,7 +750,7 @@ async function addPageResources(zipWriter, pageData, options, prefixName, url) {
750
750
  ]);
751
751
  }
752
752
 
753
- async function addFile(zipWriter, prefixName, data, disableCompresson) {
753
+ async function addFile(zipWriter, prefixName, data, disableCompression) {
754
754
  const dataReader = typeof data.content == "string" ? new TextReader(data.content) : new BlobReader(new Blob([new Uint8Array(data.content)]));
755
755
  const options = { password: data.password, bufferedWrite: true };
756
756
  if (!data.password) {
@@ -758,7 +758,7 @@ async function addFile(zipWriter, prefixName, data, disableCompresson) {
758
758
  // password the resource URLs would be readable while the same map in manifest.json is not
759
759
  options.comment = data.url && data.url.startsWith("data:") ? "data:" : data.url;
760
760
  }
761
- if (NO_COMPRESSION_EXTENSIONS.includes(data.extension) || disableCompresson) {
761
+ if (NO_COMPRESSION_EXTENSIONS.includes(data.extension) || disableCompression) {
762
762
  options.level = 0;
763
763
  }
764
764
  await zipWriter.add(prefixName + data.name, dataReader, options);