@zip.js/zip.js 2.7.54 → 2.7.56
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/deno.json +1 -1
- package/dist/zip-fs-full.js +89 -56
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +89 -48
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +81 -51
- 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 +81 -43
- package/dist/zip.min.js +1 -1
- package/eslint.config.mjs +44 -0
- package/index.cjs +89 -56
- package/index.d.ts +21 -4
- package/index.min.js +1 -1
- package/lib/core/codec-pool.js +2 -1
- package/lib/core/codec-worker.js +10 -5
- package/lib/core/configuration.js +2 -1
- package/lib/core/constants.js +4 -0
- package/lib/core/streams/aes-crypto-stream.js +4 -2
- package/lib/core/streams/codecs/deflate.js +0 -4
- package/lib/core/streams/codecs/inflate.js +0 -4
- package/lib/core/streams/zip-entry-stream.js +4 -2
- package/lib/core/z-worker-core.js +4 -2
- package/lib/core/zip-entry.js +5 -4
- package/lib/core/zip-fs-core.js +8 -5
- package/lib/core/zip-reader.js +27 -11
- package/lib/core/zip-writer.js +30 -17
- package/lib/zip-data-uri.js +2 -1
- package/lib/zip-fs.js +2 -1
- package/lib/zip-full-fflate.js +2 -1
- package/lib/zip-full.js +2 -1
- package/lib/zip.js +2 -1
- package/package.json +87 -84
package/package.json
CHANGED
|
@@ -1,86 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
"name": "@zip.js/zip.js",
|
|
3
|
+
"description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
|
|
4
|
+
"author": "Gildas Lormeau",
|
|
5
|
+
"license": "BSD-3-Clause",
|
|
6
|
+
"version": "2.7.56",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"zip",
|
|
10
|
+
"unzip",
|
|
11
|
+
"browser",
|
|
12
|
+
"web",
|
|
13
|
+
"aes-256",
|
|
14
|
+
"aes-192",
|
|
15
|
+
"aes-128",
|
|
16
|
+
"zip-crypto",
|
|
17
|
+
"encryption",
|
|
18
|
+
"zip64",
|
|
19
|
+
"web-streams",
|
|
20
|
+
"compression-streams",
|
|
21
|
+
"web-crypto",
|
|
22
|
+
"web-workers",
|
|
23
|
+
"deno",
|
|
24
|
+
"node.js",
|
|
25
|
+
"multi-core",
|
|
26
|
+
"split-zip",
|
|
27
|
+
"usdz"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"deno": ">=1.0.0",
|
|
31
|
+
"node": ">=16.5.0",
|
|
32
|
+
"bun": ">=0.7.0"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "npx rollup -c",
|
|
36
|
+
"build-dev": "npx rollup -c rollup.config.dev.js",
|
|
37
|
+
"build-fflate": "npm i --no-save fflate && npx rollup -c rollup-fflate.config.js",
|
|
38
|
+
"build-fflate-dev": "npm i --no-save fflate && npx rollup -c rollup-fflate.config.dev.js",
|
|
39
|
+
"build-doc-api": "npx typedoc",
|
|
40
|
+
"build-markdown-docs": "npx typedoc --plugin typedoc-plugin-markdown --out ./docs",
|
|
41
|
+
"test-deno": "cd ./tests && deno test --allow-read ./deno-runner.js",
|
|
42
|
+
"test-node": "cd ./tests && node ./node-runner.js",
|
|
43
|
+
"test-bun": "cd ./tests && bun test ./bun-runner.js",
|
|
44
|
+
"test-firefox": "firefox http://localhost:8081/tests/ & npx http-server -p=8081 & wait $!",
|
|
45
|
+
"test-chrome": "google-chrome http://localhost:8081/tests/ & npx http-server -p=8081 & wait $!"
|
|
46
|
+
},
|
|
47
|
+
"main": "./index.cjs",
|
|
48
|
+
"module": "./index.js",
|
|
49
|
+
"types": "./index.d.ts",
|
|
50
|
+
"exports": {
|
|
51
|
+
"./package.json": "./package.json",
|
|
52
|
+
"./index.min.js": "./index.min.js",
|
|
53
|
+
".": {
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./index.d.ts",
|
|
56
|
+
"default": "./index.js"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./index.d.ts",
|
|
60
|
+
"default": "./index.cjs"
|
|
61
|
+
}
|
|
33
62
|
},
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
"./data-uri.js": "./lib/zip-data-uri.js",
|
|
63
|
-
"./lib/zip-fs.js": "./lib/zip-fs.js",
|
|
64
|
-
"./lib/zip-full.js": "./lib/zip-full.js",
|
|
65
|
-
"./lib/zip-no-worker-deflate.js": "./lib/zip-no-worker-deflate.js",
|
|
66
|
-
"./lib/zip-no-worker-inflate.js": "./lib/zip-no-worker-inflate.js",
|
|
67
|
-
"./lib/zip-no-worker.js": "./lib/zip-no-worker.js",
|
|
68
|
-
"./lib/zip.js": "./lib/zip.js"
|
|
69
|
-
},
|
|
70
|
-
"repository": {
|
|
71
|
-
"type": "git",
|
|
72
|
-
"url": "git+https://github.com/gildas-lormeau/zip.js.git"
|
|
73
|
-
},
|
|
74
|
-
"bugs": {
|
|
75
|
-
"url": "https://github.com/gildas-lormeau/zip.js/issues"
|
|
76
|
-
},
|
|
77
|
-
"homepage": "https://gildas-lormeau.github.io/zip.js",
|
|
78
|
-
"devDependencies": {
|
|
79
|
-
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
80
|
-
"@rollup/plugin-replace": "^6.0.1",
|
|
81
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
82
|
-
"http-server": "^14.1.1",
|
|
83
|
-
"rollup": "^4.28.0",
|
|
84
|
-
"typedoc": "^0.27.3"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
63
|
+
"./data-uri.js": "./lib/zip-data-uri.js",
|
|
64
|
+
"./lib/zip-fs.js": "./lib/zip-fs.js",
|
|
65
|
+
"./lib/zip-full.js": "./lib/zip-full.js",
|
|
66
|
+
"./lib/zip-no-worker-deflate.js": "./lib/zip-no-worker-deflate.js",
|
|
67
|
+
"./lib/zip-no-worker-inflate.js": "./lib/zip-no-worker-inflate.js",
|
|
68
|
+
"./lib/zip-no-worker.js": "./lib/zip-no-worker.js",
|
|
69
|
+
"./lib/zip.js": "./lib/zip.js"
|
|
70
|
+
},
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "git+https://github.com/gildas-lormeau/zip.js.git"
|
|
74
|
+
},
|
|
75
|
+
"bugs": {
|
|
76
|
+
"url": "https://github.com/gildas-lormeau/zip.js/issues"
|
|
77
|
+
},
|
|
78
|
+
"homepage": "https://gildas-lormeau.github.io/zip.js",
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
81
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
82
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
83
|
+
"eslint": "^9.19.0",
|
|
84
|
+
"http-server": "^14.1.1",
|
|
85
|
+
"rollup": "^4.28.0",
|
|
86
|
+
"typedoc": "^0.27.4",
|
|
87
|
+
"typedoc-plugin-markdown": "^4.3.2"
|
|
88
|
+
}
|
|
89
|
+
}
|