You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the described options, the `field` value was wrong. When looked into the `sitempaper.d.ts` type decleration, you can see that key `fields` is used.
Co-authored-by: Sean Thomas Burke <965298+seantomburke@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ You can add options on the initial Sitemapper object when instantiating it.
82
82
-`lastmod`: (Number) - Timestamp of the minimum lastmod value allowed for returned urls
83
83
-`proxyAgent`: (HttpProxyAgent|HttpsProxyAgent) - instance of npm "hpagent" HttpProxyAgent or HttpsProxyAgent to be passed to npm "got"
84
84
-`exclusions`: (Array<RegExp>) - Array of regex patterns to exclude URLs from being processed
85
-
-`field`: (Object) - An object of fields to be returned from the sitemap. Leaving a field out has the same effect as `<field>: false`. If not specified sitemapper defaults to returning the 'classic' array of urls. Available fields:
85
+
-`fields`: (Object) - An object of fields to be returned from the sitemap. Leaving a field out has the same effect as `<field>: false`. If not specified sitemapper defaults to returning the 'classic' array of urls. Available fields:
86
86
-`loc`: (Boolean) - The URL location of the page
87
87
-`lastmod`: (Boolean) - The date of last modification of the page
88
88
-`changefreq`: (Boolean) - How frequently the page is likely to change
@@ -97,7 +97,7 @@ You can add options on the initial Sitemapper object when instantiating it.
97
97
For Example:
98
98
99
99
```
100
-
field: {
100
+
fields: {
101
101
loc: true,
102
102
lastmod: true,
103
103
changefreq: true,
@@ -121,7 +121,7 @@ const sitemapper = new Sitemapper({
0 commit comments