@zip.js/zip.js 2.6.28 → 2.6.30
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/dist/z-worker-fflate.js +1 -1
- package/dist/z-worker-pako.js +1 -1
- package/dist/z-worker.js +1 -1
- package/dist/zip-fs-full.js +229 -109
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +230 -109
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +230 -109
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker-inflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +1 -4507
- package/dist/zip.min.js +1 -1
- package/index-fflate.js +3 -1
- package/index.cjs +10459 -0
- package/index.d.ts +8 -2
- package/index.js +3 -1
- package/lib/core/codec-pool-worker.js +14 -3
- package/lib/core/io.js +54 -2
- package/lib/core/streams/codec-stream.js +1 -4
- package/lib/core/streams/zip-crypto-stream.js +0 -2
- package/lib/core/zip-reader.js +119 -67
- package/lib/core/zip-writer.js +45 -32
- package/lib/z-worker-inline.js +1 -1
- package/package.json +1 -1
- package/rollup-fflate.config.dev.js +5 -2
- package/rollup-fflate.config.js +5 -2
- package/rollup.config.dev.js +5 -2
- package/rollup.config.js +8 -5
- package/tests/all/test-common-js.cjs +31 -0
- package/tests/all/test-split-zip.js +37 -0
- package/tests/data/lorem-split.z01 +0 -0
- package/tests/data/lorem-split.z02 +0 -0
- package/tests/data/lorem-split.z03 +0 -0
- package/tests/data/lorem-split.z04 +0 -0
- package/tests/data/lorem-split.z05 +0 -0
- package/tests/data/lorem-split.z06 +0 -0
- package/tests/data/lorem-split.z07 +0 -0
- package/tests/data/lorem-split.zip +0 -0
- package/tests/tests-data.js +2 -0
- package/tests/web-runner.js +4 -1
|
Binary file
|
|
Binary file
|
package/tests/tests-data.js
CHANGED
|
@@ -5,6 +5,7 @@ export default ([
|
|
|
5
5
|
{ title: "Base 64", script: "./test-base64.js" },
|
|
6
6
|
{ title: "Blob", script: "./test-blob.js" },
|
|
7
7
|
{ title: "Codecs interoperability", script: "./test-codecs-interoperability.js", env: ["browser"] },
|
|
8
|
+
{ title: "Common JS", script: "./test-common-js.cjs", env: ["node"] },
|
|
8
9
|
{ title: "Crypto", script: "./test-crypto.js" },
|
|
9
10
|
{ title: "Custom IO classes", script: "./test-custom-io.js" },
|
|
10
11
|
{ title: "Data descriptor signature", script: "./test-data-descriptor-signature.js" },
|
|
@@ -40,6 +41,7 @@ export default ([
|
|
|
40
41
|
{ title: "Safe closing", script: "./test-safe-closing.js" },
|
|
41
42
|
{ title: "Service worker", script: "./test-sw.js", env: ["browser"] },
|
|
42
43
|
{ title: "Signature CRC32", script: "./test-crc.js" },
|
|
44
|
+
{ title: "Split files", script: "./test-split-zip.js", env: ["deno", "browser"] },
|
|
43
45
|
{ title: "Store", script: "./test-store.js" },
|
|
44
46
|
{ title: "Streams", script: "./test-streams.js" },
|
|
45
47
|
{ title: "Worker timeout", script: "./test-worker-timeout.js" },
|
package/tests/web-runner.js
CHANGED
|
@@ -8,7 +8,10 @@ const table = document.createElement("table");
|
|
|
8
8
|
const MAX_TESTS = 16;
|
|
9
9
|
let indexTest;
|
|
10
10
|
for (indexTest = 0; indexTest < Math.min(MAX_TESTS, tests.length); indexTest++) {
|
|
11
|
-
|
|
11
|
+
const test = tests[indexTest];
|
|
12
|
+
if (!test.env || test.env.includes("browser")) {
|
|
13
|
+
addTest(test);
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
document.body.appendChild(table);
|
|
14
17
|
if (!location.search.startsWith("?keepTests")) {
|