Skip to content

Commit 073590b

Browse files
committed
Compatibility with the latest patches to xmlp.
1. SAXParser.parse now expects a ReadableStream. 2. SAXParser.parse now works on the input stream directly and closes it at the end
1 parent 1fd644a commit 073590b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/project/types/website/website-sitemap.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ async function readSitemap(sitemapPath: string): Promise<Urlset> {
165165
}
166166
});
167167
const reader = await Deno.open(sitemapPath);
168-
await parser.parse(reader);
169-
reader.close();
168+
await parser.parse(reader.readable);
170169
return urlset;
171170
}
172171

0 commit comments

Comments
 (0)