diff --git a/README.md b/README.md index 727f96a..b7d4e02 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,6 @@ You can add options on the initial Sitemapper object when instantiating it. + `debug`: (Boolean) - Enables/Disables debug console logging. Default: False + `concurrency`: (Number) - Sets the maximum number of concurrent sitemap crawling threads. Default: 10 + `retries`: (Number) - Sets the maximum number of retries to attempt in case of an error response (e.g. 404 or Timeout). Default: 0 -+ `requestHeaders`: (Object) - Additional Request Headers + `insecure`: (Boolean) - Ignore invalid certificates ```javascript diff --git a/src/assets/sitemapper.js b/src/assets/sitemapper.js index 164a588..831c959 100644 --- a/src/assets/sitemapper.js +++ b/src/assets/sitemapper.js @@ -41,6 +41,8 @@ export default class Sitemapper { this.concurrency = settings.concurrency || 10; this.retries = settings.retries || 0; this.insecure = settings.insecure || false; + this.concurrency = settings.concurrency || 10; + this.retries = settings.retries || 0; } /**