feat: using Bun instead of Node.js\!

This commit is contained in:
2026-01-22 20:18:06 +01:00
parent 01fb0aedf5
commit e34cfe5af1
10 changed files with 80 additions and 154 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-15');
const decoder = new TextDecoder('iso-8859-1'); // It should be iso-8859-15 but Bun 1.1 does not support it
let xml = decoder.decode(await response.arrayBuffer())
const parser = new XMLParser();