Chore: many changes

- Move `parse-filter.test.ts`
- Add more kwfilter bail out to parse filter
This commit is contained in:
SukkaW
2025-02-23 22:45:48 +08:00
parent 3952e27d64
commit be063f09a7
3 changed files with 15 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ export async function fetchAssets(url: string, fallbackUrls: null | undefined |
}
const res = await $$fetch(url, { signal: controller.signal, ...defaultRequestInit });
let stream = nullthrow(res.body).pipeThrough(new TextDecoderStream()).pipeThrough(new TextLineStream());
let stream = nullthrow(res.body, url + ' has an empty body').pipeThrough(new TextDecoderStream()).pipeThrough(new TextLineStream());
if (processLine) {
stream = stream.pipeThrough(new ProcessLineStream());
}