Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves issue #133: Add option to parse lastmod and changefreq and priority #135

Conversation

tijevlam
Copy link
Contributor

@tijevlam tijevlam commented Jan 31, 2024

I needed the option to parse more than just the urls in the ourput also. Decided to add it myself and create this pull request. I've added it to the Readme and tests as well. All tests were passed.

It actually gives the user to specify the fields to be included in the output by providing fields , a new object, available in the settings/constructor. I've not limited it to lastmod, changefreq and priority because technically you are allowed to have more and other fields as well in a sitemap.xml. The loc can even be excluded by either leaving it out of the fields parameter or by setting it to false.

Copy link
Owner

@seantomburke seantomburke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@seantomburke seantomburke merged commit 0ddd7e0 into seantomburke:master Feb 1, 2024
6 checks passed
@tijevlam
Copy link
Contributor Author

tijevlam commented Feb 1, 2024

Thanks for the merge. I just thought of the fact that i didn't include the lib folder. So it wont be automatically in the npm release without rebuilding your branch first. Just letting you know 😉

@adiologydev
Copy link

@tijevlam think it got released without the lib folder, @seantomburke can we have a fix for this?

@seantomburke
Copy link
Owner

@tijevlam think it got released without the lib folder, @seantomburke can we have a fix for this?

Oh good call, yes need to include the lib folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants