refactor to share downloading code across all formats
This commit is contained in:
@@ -101,7 +101,7 @@ const pump = (zipObj: ZipObj) => zipObj.reader ? zipObj.reader.read().then(chunk
|
||||
}
|
||||
}) : undefined;
|
||||
|
||||
export default function ZIP(underlyingSource: UnderlyingSource) {
|
||||
export default function streamToZIP(underlyingSource: UnderlyingSource) {
|
||||
const files = Object.create(null);
|
||||
const filenames: string[] = [];
|
||||
const encoder = new TextEncoder();
|
||||
|
||||
Reference in New Issue
Block a user