@zip.js/zip.js 2.8.53 → 2.8.54
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/README.md +1 -1
- package/deno.json +2 -1
- package/dist/zip-core-external.js +691 -482
- package/dist/zip-core-external.min.js +1 -1
- package/dist/zip-core.js +698 -481
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core-external.js +729 -511
- package/dist/zip-fs-core-external.min.js +1 -1
- package/dist/zip-fs-core.js +691 -496
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-external.js +729 -511
- package/dist/zip-fs-external.min.js +1 -1
- package/dist/zip-fs-native.js +743 -512
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +742 -511
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +700 -483
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +700 -483
- package/dist/zip-native.min.js +1 -1
- package/dist/zip-web-worker-native.js +1 -1
- package/dist/zip-web-worker.js +1 -1
- package/dist/zip.js +699 -482
- package/dist/zip.min.js +1 -1
- package/eslint.config.mjs +1 -0
- package/index-native.cjs +743 -512
- package/index-native.min.js +1 -1
- package/index.cjs +742 -511
- package/index.d.cts +398 -42
- package/index.d.ts +398 -42
- package/index.min.js +1 -1
- package/lib/core/configuration.js +62 -21
- package/lib/core/constants.js +11 -1
- package/lib/core/io.js +33 -27
- package/lib/core/options.js +44 -2
- package/lib/core/streams/aes-crypto-stream.js +12 -12
- package/lib/core/util/decode-text.js +11 -2
- package/lib/core/web-worker-base.js +3 -2
- package/lib/core/web-worker-inline-native.js +1 -1
- package/lib/core/web-worker-inline-wasm.js +1 -1
- package/lib/core/zip-fs.js +38 -27
- package/lib/core/zip-reader.js +58 -26
- package/lib/core/zip-writer.js +293 -177
- package/lib/zip-core-base.js +6 -1
- package/lib/zip-core-reader.js +1 -0
- package/lib/zip-core-writer.js +4 -0
- package/package.json +8 -2
package/lib/zip-core-base.js
CHANGED
|
@@ -56,12 +56,17 @@ export {
|
|
|
56
56
|
ERR_ITERATOR_COMPLETED_TOO_SOON,
|
|
57
57
|
ERR_WRITER_NOT_INITIALIZED
|
|
58
58
|
} from "./core/io.js";
|
|
59
|
+
export {
|
|
60
|
+
ERR_INVALID_FUNCTION_OPTION,
|
|
61
|
+
ERR_INVALID_SIGNAL
|
|
62
|
+
} from "./core/options.js";
|
|
59
63
|
export {
|
|
60
64
|
getMimeType
|
|
61
65
|
} from "./core/util/default-mime-type.js";
|
|
62
66
|
export {
|
|
63
67
|
configure,
|
|
64
|
-
resetConfiguration
|
|
68
|
+
resetConfiguration,
|
|
69
|
+
ERR_INVALID_MAX_WORKERS
|
|
65
70
|
} from "./core/configuration.js";
|
|
66
71
|
export {
|
|
67
72
|
registerCodec,
|
package/lib/zip-core-reader.js
CHANGED
package/lib/zip-core-writer.js
CHANGED
|
@@ -36,8 +36,12 @@ export {
|
|
|
36
36
|
ERR_INVALID_COMMENT_TYPE,
|
|
37
37
|
ERR_INVALID_ENTRY_NAME,
|
|
38
38
|
ERR_INVALID_ENTRY_COMMENT,
|
|
39
|
+
ERR_INVALID_ENTRY_COMMENT_TYPE,
|
|
40
|
+
ERR_INVALID_DATE,
|
|
39
41
|
ERR_INVALID_VERSION,
|
|
42
|
+
ERR_INVALID_EXTRAFIELD,
|
|
40
43
|
ERR_INVALID_EXTRAFIELD_TYPE,
|
|
44
|
+
ERR_INVALID_EXTRAFIELD_DATA_TYPE,
|
|
41
45
|
ERR_INVALID_EXTRAFIELD_DATA,
|
|
42
46
|
ERR_INVALID_ENCRYPTION_STRENGTH,
|
|
43
47
|
ERR_UNSUPPORTED_ENCRYPTION_USDZ,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
|
|
4
4
|
"author": "Gildas Lormeau",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
|
-
"version": "2.8.
|
|
6
|
+
"version": "2.8.54",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"zip",
|
|
@@ -34,8 +34,13 @@
|
|
|
34
34
|
"bun": ">=0.7.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
+
"version": "node ./sync-deno-version.js && git add deno.json",
|
|
38
|
+
"bump-patch": "npm version patch --no-git-tag-version && npm run bump-commit",
|
|
39
|
+
"bump-minor": "npm version minor --no-git-tag-version && npm run bump-commit",
|
|
40
|
+
"bump-major": "npm version major --no-git-tag-version && npm run bump-commit",
|
|
41
|
+
"bump-commit": "git commit -m \"bump up version\" package.json package-lock.json deno.json",
|
|
37
42
|
"lint": "npx eslint . && deno lint",
|
|
38
|
-
"test": "npm run test-node && npm run test-deno && npm run test-bun && npm run test-node-dist && npm run test-deno-dist && npm run test-bun-dist && npm run test-web-streams-polyfill && npm run test-types && npm run test-api-symmetry && npm run test-api-shape",
|
|
43
|
+
"test": "npm run test-node && npm run test-deno && npm run test-bun && npm run test-node-dist && npm run test-deno-dist && npm run test-bun-dist && npm run test-web-streams-polyfill && npm run test-types && npm run test-api-symmetry && npm run test-api-shape && npm run test-api-mangling",
|
|
39
44
|
"test-browsers": "npm run test-chrome && npm run test-firefox && npm run test-safari",
|
|
40
45
|
"serve-tests": "http-server -p 8888 -c-1 .",
|
|
41
46
|
"test-all": "npm run lint && npm run test && npm run test-browsers",
|
|
@@ -53,6 +58,7 @@
|
|
|
53
58
|
"test-types": "tsc -p ./tests/types/tsconfig.json",
|
|
54
59
|
"test-api-symmetry": "node ./tests/api-symmetry/audit.js",
|
|
55
60
|
"test-api-shape": "node ./tests/api-symmetry/shape.js",
|
|
61
|
+
"test-api-mangling": "node ./tests/api-symmetry/mangling.js",
|
|
56
62
|
"test-firefox": "node ./tests/browser-runner.js firefox",
|
|
57
63
|
"test-chrome": "node ./tests/browser-runner.js chrome",
|
|
58
64
|
"test-safari": "node ./tests/browser-runner.js safari"
|