@ai-ecoverse/wasm-zip 3.0.0-2 → 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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- ==> LICENSE <==
1
+ ==> zip-3.0-LICENSE <==
2
2
 
3
3
  This is version 2007-Mar-4 of the Info-ZIP license.
4
4
  The definitive version of this document should be available at
@@ -61,7 +61,7 @@ freely, subject to the above disclaimer and the following restrictions:
61
61
  "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" for its
62
62
  own source and binary releases.
63
63
 
64
- ==> LICENSE <==
64
+ ==> unzip-6.0-LICENSE <==
65
65
 
66
66
  This is version 2009-Jan-02 of the Info-ZIP license.
67
67
  The definitive version of this document should be available at
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
- linkloop: for (var nlinks = 0; nlinks < 40; nlinks++) {
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
- linkloop: for (var nlinks = 0; nlinks < 40; nlinks++) {
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-2",
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
  }