feat(classes.smartarchive): Support URL web streams, add recursive archive unpacking and filesystem export, and improve ZIP decompression robustness

This commit is contained in:
2025-08-18 01:01:02 +00:00
parent b5a3793ed5
commit a32ed0facd
6 changed files with 85 additions and 4 deletions

View File

@@ -60,7 +60,12 @@ export class SmartArchive {
return this.sourceStream;
}
if (this.sourceUrl) {
const urlStream = await plugins.smartrequest.getStream(this.sourceUrl);
const response = await plugins.smartrequest.SmartRequest.create()
.url(this.sourceUrl)
.get();
const webStream = response.stream();
// @ts-ignore - Web stream to Node.js stream conversion
const urlStream = plugins.stream.Readable.fromWeb(webStream);
return urlStream;
}
if (this.sourceFilePath) {