06b5b61620
chore(tests): include case for zip version validation
2025-01-10 10:36:30 +00:00
d834b35278
fix: correctly error on mismatch with EoCD file count
2025-01-10 08:03:54 +00:00
2a742aca59
style: apply stylua formatter
2025-01-10 07:42:19 +00:00
ecace02e7f
feat: add ZipEntry:unixMode()
to get unix mode values as octals
...
Updates tests, and makes the `tour` example display the perms instead of
the raw external attributes.
2025-01-09 16:16:38 +00:00
6c1f517b75
feat: add compressedSize
and :compressionEfficiency()
...
Adds a field for getting the compressed size of a zip entry and a method
to get the compression efficiency as a percentage.
2025-01-09 15:11:18 +00:00
d93f1f2383
feat: add path safety and sanitization methods to ZipEntry
...
* Added `ZipEntry:getSafePath` which returns the path of the entry if it
was safe, or nil
* Added `ZipEntry:sanitizePath` which converts a potentially unsafe path
to a safe one, although it can change the meaning of the paths
* Updated path utility with functions `isSafe` and `sanitize`
* Path utility now always uses `/` as a path separator, converting `\\`
to `/` when needed
* Included tests for path utility
2025-01-09 07:25:59 +00:00
1db315c943
feat: add versionMadeBy
to ZipEntry
...
Also updates the metadata test suite to test for this.
2025-01-08 18:11:13 +00:00
d88091ea5a
feat: rename extraction option field isString
->type
2025-01-08 16:21:27 +00:00
eb7aa1d010
chore(tests): add test for utf8 encoded filenames
2025-01-08 14:40:51 +00:00
ecdae4155e
chore(tests): add case for garbage after comment
2025-01-08 14:22:46 +00:00
03320fe090
style: apply stylua formatter
2025-01-08 14:14:30 +00:00
26ce364f1f
chore(tests): remove old FIXME comment
2025-01-07 18:55:57 +00:00
9b6216c0a7
fix: entry metadata not including method
...
Also updates metadata tests to test for correct method detection.
2025-01-07 18:55:50 +00:00
b1fa805363
chore(tests): add TODO comment for extended datetime support
2025-01-07 18:46:09 +00:00
d329a3f273
feat: support following symlinks
...
* Added new extraction option: `followSymlinks`
* Added method for querying whether an entry is a symlink using
`ZipEntry:isSymlink`
* Include tests for symlinks
2025-01-07 18:45:06 +00:00
77d1a75996
chore(gitignore): include zip test data
2025-01-07 13:43:15 +00:00
2f06690667
chore(tests): rename misaligned_comment
test suite
2025-01-07 13:31:21 +00:00
98c23ece3e
fix: correctly parse EoCD for misaligned comment sizes
...
Also adds a test case for the same.
2025-01-07 13:29:39 +00:00
48a66800b7
chore: remove pkg
alias
2025-01-06 06:08:34 +00:00
0687c87951
chore: implement testing framework pw by frktest
2025-01-06 05:46:08 +00:00