fix: node-22 runtime again, bum-1.1 not working

This commit is contained in:
2026-01-23 00:21:19 +01:00
parent e34cfe5af1
commit 575a06a41b
10 changed files with 152 additions and 78 deletions

View File

@@ -18,7 +18,7 @@ export default async ({ req, res, log, error }: any) => {
throw new Error(`Error! status: ${response.status}`);
}
const decoder = new TextDecoder('iso-8859-1'); // It should be iso-8859-15 but Bun 1.1 does not support it
const decoder = new TextDecoder('iso-8859-15');
let xml = decoder.decode(await response.arrayBuffer())
const parser = new XMLParser();