File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments