Refactor code structure for improved readability and maintainability
Some checks failed
CI / lint (push) Failing after 10s
CI / test-backend (push) Has been skipped
CI / test-frontend (push) Has been skipped
CI / test-e2e (push) Has been skipped

This commit is contained in:
2026-03-22 11:34:38 +01:00
parent 5eaf320fc5
commit 2667e11284
46 changed files with 4949 additions and 157 deletions

View File

@@ -114,7 +114,12 @@ async function streamArchiveEntry(filePath, entryPath, logger = console) {
}
catch (e) { }
}
resolve(proc.stdout);
if (proc.stdout) {
resolve(proc.stdout);
}
else {
resolve(null);
}
};
proc.once('error', onProcError);
if (proc.stdout && proc.stdout.once) {
@@ -152,7 +157,11 @@ async function streamArchiveEntry(filePath, entryPath, logger = console) {
// Fallback for zip
if (ext === 'zip') {
try {
const proc2 = (0, child_process_1.spawn)('unzip', ['-p', filePath, entryPath]);
const proc2 = (0, child_process_1.spawn)('unzip', [
'-p',
filePath,
entryPath,
]);
const stream2 = await waitForStreamOrError(proc2);
if (stream2)
return stream2;