Skip to content

Commit

Permalink
Compatibility with the latest patches to xmlp.
Browse files Browse the repository at this point in the history
1. SAXParser.parse now expects a ReadableStream.
2. SAXParser.parse now works on the input stream directly and closes it
   at the end
  • Loading branch information
tjni committed Jan 3, 2025
1 parent 1fd644a commit 073590b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/project/types/website/website-sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ async function readSitemap(sitemapPath: string): Promise<Urlset> {
}
});
const reader = await Deno.open(sitemapPath);
await parser.parse(reader);
reader.close();
await parser.parse(reader.readable);
return urlset;
}

Expand Down

0 comments on commit 073590b

Please sign in to comment.