@ai-ecoverse/wasm-zip 3.0.0-3 → 3.0.0-4
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 +2 -0
- package/bin/unzip +4 -2
- package/bin/unzip.wasm +0 -0
- package/bin/zip +4 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -15,3 +15,5 @@ unzip -l out.zip
|
|
|
15
15
|
shows them and reads Info-ZIP's Unicode path field.
|
|
16
16
|
- `zip - … > file` and `zip - … | …` write valid archives, and `zip -s 0`
|
|
17
17
|
merges split archives (`zip -s 1m`) back with every byte.
|
|
18
|
+
- `zipinfo` is unzip's zipinfo mode, the same as `unzip -Z`.
|
|
19
|
+
- unzip carries Debian's unzip 6.0 security patches.
|
package/bin/unzip
CHANGED
|
@@ -2033,8 +2033,10 @@ async function createWasm() {
|
|
|
2033
2033
|
path = FS.cwd() + '/' + path;
|
|
2034
2034
|
}
|
|
2035
2035
|
|
|
2036
|
-
// limit max consecutive symlinks to 40 (SYMLOOP_MAX)
|
|
2037
|
-
|
|
2036
|
+
// limit max consecutive symlinks to 40 (SYMLOOP_MAX): pass 0 follows
|
|
2037
|
+
// none, so 40 follows take 41 passes and the 41st follow is ELOOP, as
|
|
2038
|
+
// on Linux (homescoop#461).
|
|
2039
|
+
linkloop: for (var nlinks = 0; nlinks <= 40; nlinks++) {
|
|
2038
2040
|
// split the absolute path
|
|
2039
2041
|
var parts = path.split('/').filter((p) => !!p);
|
|
2040
2042
|
|
package/bin/unzip.wasm
CHANGED
|
Binary file
|
package/bin/zip
CHANGED
|
@@ -2034,8 +2034,10 @@ async function createWasm() {
|
|
|
2034
2034
|
path = FS.cwd() + '/' + path;
|
|
2035
2035
|
}
|
|
2036
2036
|
|
|
2037
|
-
// limit max consecutive symlinks to 40 (SYMLOOP_MAX)
|
|
2038
|
-
|
|
2037
|
+
// limit max consecutive symlinks to 40 (SYMLOOP_MAX): pass 0 follows
|
|
2038
|
+
// none, so 40 follows take 41 passes and the 41st follow is ELOOP, as
|
|
2039
|
+
// on Linux (homescoop#461).
|
|
2040
|
+
linkloop: for (var nlinks = 0; nlinks <= 40; nlinks++) {
|
|
2039
2041
|
// split the absolute path
|
|
2040
2042
|
var parts = path.split('/').filter((p) => !!p);
|
|
2041
2043
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/wasm-zip",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-4",
|
|
4
4
|
"description": "Info-ZIP zip 3.0 + unzip 6.0 for wasm / slicc (emscripten)",
|
|
5
5
|
"license": "Info-ZIP",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"abi": "emscripten",
|
|
18
18
|
"commands": {
|
|
19
19
|
"zip": { "glue": "bin/zip", "wasm": "bin/zip.wasm" },
|
|
20
|
-
"unzip": { "glue": "bin/unzip", "wasm": "bin/unzip.wasm" }
|
|
20
|
+
"unzip": { "glue": "bin/unzip", "wasm": "bin/unzip.wasm" },
|
|
21
|
+
"zipinfo": { "glue": "bin/unzip", "wasm": "bin/unzip.wasm", "argv0": "zipinfo" }
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
}
|