Function
getCompressionMethod
(options: { compression?: Compression | null })
Source from the content-addressed store, hash-verified
| 156 | export type JSZipObject = JSZippZipObject; |
| 157 | |
| 158 | function getCompressionMethod(options: { compression?: Compression | null }): ZipCompressionMethod | undefined { |
| 159 | switch (options.compression) { |
| 160 | case "STORE": |
| 161 | return "store"; |
| 162 | case "DEFLATE": |
| 163 | return "deflate"; |
| 164 | default: |
| 165 | return undefined; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | function getLevel(options: { compression?: Compression | null; compressionOptions?: CompressionOptions | null }) { |
| 170 | if (options.compression === "STORE") { |
Tested by
no test coverage detected