Skip to content

Commit 9e65bce

Browse files
set useWebWorkers explicitly
1 parent 3c34689 commit 9e65bce

37 files changed

+37
-37
lines changed

tests/all/test-abort-signal-read.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BLOB = new Blob([TEXT_CONTENT], { type: zip.getMimeType(FILENAME) });
99
export { test };
1010

1111
async function test() {
12-
zip.configure({ chunkSize: 128 });
12+
zip.configure({ chunkSize: 128, useWebWorkers: true });
1313
const blobWriter = new zip.BlobWriter("application/zip");
1414
const zipWriter = new zip.ZipWriter(blobWriter);
1515
await zipWriter.add(FILENAME, new zip.BlobReader(BLOB));

tests/all/test-abort-signal-write.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BLOB = new Blob([TEXT_CONTENT], { type: zip.getMimeType(FILENAME) });
99
export { test };
1010

1111
async function test() {
12-
zip.configure({ chunkSize: 128 });
12+
zip.configure({ chunkSize: 128, useWebWorkers: true });
1313
const blobWriter = new zip.BlobWriter("application/zip");
1414
const zipWriter = new zip.ZipWriter(blobWriter);
1515
const controller = new AbortController();

tests/all/test-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ARRAY = new Uint8Array(Array.from(TEXT_CONTENT).map(character => character
77
export { test };
88

99
async function test() {
10-
zip.configure({ chunkSize: 128 });
10+
zip.configure({ chunkSize: 128, useWebWorkers: true });
1111
const arrayWriter = new zip.Uint8ArrayWriter();
1212
const zipWriter = new zip.ZipWriter(arrayWriter);
1313
await zipWriter.add(FILENAME, new zip.Uint8ArrayReader(ARRAY));

tests/all/test-base64.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DATA_URI = "data:text/plain;base64," + btoa(TEXT_CONTENT);
99
export { test };
1010

1111
async function test() {
12-
zip.configure({ chunkSize: 128 });
12+
zip.configure({ chunkSize: 128, useWebWorkers: true });
1313
const blobWriter = new zip.BlobWriter("application/zip");
1414
const zipWriter = new zip.ZipWriter(blobWriter);
1515
await zipWriter.add(FILENAME, new zip.Data64URIReader(DATA_URI));

tests/all/test-blob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BLOB = new Blob([TEXT_CONTENT], { type: zip.getMimeType(FILENAME) });
99
export { test };
1010

1111
async function test() {
12-
zip.configure({ chunkSize: 128 });
12+
zip.configure({ chunkSize: 128, useWebWorkers: true });
1313
const blobWriter = new zip.BlobWriter("application/zip");
1414
const zipWriter = new zip.ZipWriter(blobWriter);
1515
const entry = await zipWriter.add(FILENAME, new zip.BlobReader(BLOB));

tests/all/test-crypto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BLOB = new Blob([TEXT_CONTENT], { type: zip.getMimeType(FILENAME) });
99
export { test };
1010

1111
async function test() {
12-
zip.configure({ chunkSize: 128 });
12+
zip.configure({ chunkSize: 128, useWebWorkers: true });
1313
const blobWriter = new zip.BlobWriter("application/zip");
1414
const zipWriter = new zip.ZipWriter(blobWriter, { password: "password", encryptionStrength: 3 });
1515
await zipWriter.add(FILENAME, new zip.BlobReader(BLOB));

tests/all/test-custom-io.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class BinaryStringWriter extends zip.Writer {
4646
export { test };
4747

4848
async function test() {
49+
zip.configure({ chunkSize: 128, useWebWorkers: true });
4950
const binaryStringWriter = new BinaryStringWriter();
5051
const zipWriter = new zip.ZipWriter(binaryStringWriter);
5152
await zipWriter.add(FILENAME, new BinaryStringReader(TEXT_CONTENT));

tests/all/test-data-descriptor-signature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BLOB = new Blob([TEXT_CONTENT], { type: zip.getMimeType(FILENAME) });
99
export { test };
1010

1111
async function test() {
12-
zip.configure({ chunkSize: 128 });
12+
zip.configure({ chunkSize: 128, useWebWorkers: true });
1313
const blobWriter = new zip.BlobWriter("application/zip");
1414
const zipWriter = new zip.ZipWriter(blobWriter, { dataDescriptor: true, dataDescriptorSignature: false });
1515
const entry = await zipWriter.add(FILENAME, new zip.BlobReader(BLOB));

tests/all/test-data-descriptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BLOB = new Blob([TEXT_CONTENT], { type: zip.getMimeType(FILENAME) });
99
export { test };
1010

1111
async function test() {
12-
zip.configure({ chunkSize: 128 });
12+
zip.configure({ chunkSize: 128, useWebWorkers: true });
1313
const blobWriter = new zip.BlobWriter("application/zip");
1414
const zipWriter = new zip.ZipWriter(blobWriter, { dataDescriptor: false });
1515
const entry = await zipWriter.add(FILENAME, new zip.BlobReader(BLOB));

tests/all/test-empty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as zip from "../../index.js";
33
export { test };
44

55
async function test() {
6-
zip.configure({ chunkSize: 128 });
6+
zip.configure({ chunkSize: 128, useWebWorkers: true });
77
const blobWriter = new zip.BlobWriter("application/zip");
88
const zipWriter = new zip.ZipWriter(blobWriter);
99
await zipWriter.close();

0 commit comments

Comments
 (0)