Skip to content

Commit dc9c3b8

Browse files
authored
Release 1.1.1 (#59)
* Fix default value for options in build method #56 * Update version to 1.1.1
1 parent e10c2e0 commit dc9c3b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Convert array of paths to sitemap.
9797
**Parameters**
9898

9999
- `hostname` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The root name of your site.
100-
- `$1` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
100+
- `$1` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{}`)
101101
- `$1.limitCountPaths` (optional, default `49999`)
102102

103103
## save

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Sitemap {
109109
* @description Convert array of paths to sitemap.
110110
* @param {String} hostname - The root name of your site.
111111
*/
112-
build(hostname, { limitCountPaths = 49999 }) {
112+
build(hostname, { limitCountPaths = 49999 } = {}) {
113113
this.hostname = hostname;
114114
this.splitted = splitPaths(this.paths, limitCountPaths);
115115
this.sitemaps = this.splitted.map(paths => buildSitemap(hostname, paths));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-sitemap",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Module to generate a sitemap for react-router configuration",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)