Skip to content

Commit

Permalink
fix #331
Browse files Browse the repository at this point in the history
  • Loading branch information
derduher committed Sep 20, 2020
1 parent 769f23d commit 4d836d0
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 201 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 6.3.1

- fix #331 incorrect type on sourceData in simpleSitemapAndIndex.

## 6.3.0

- simpleSitemap will create the dest directory if it doesn't exist
Expand Down
2 changes: 1 addition & 1 deletion lib/sitemap-simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const simpleSitemapAndIndex = async ({
}: {
hostname: string;
sitemapHostname?: string;
sourceData: SitemapItemLoose | string | Readable | string[];
sourceData: SitemapItemLoose[] | string | Readable | string[];
destinationDir: string;
limit?: number;
gzip?: boolean;
Expand Down
Loading

0 comments on commit 4d836d0

Please sign in to comment.