@cocreate/sitemap 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.2.2](https://github.com/CoCreate-app/CoCreate-sitemap/compare/v1.2.1...v1.2.2) (2024-09-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * uncomment lastmod compare ([23c74cf](https://github.com/CoCreate-app/CoCreate-sitemap/commit/23c74cfeb20c7bb6dec07ae08a30daa2d8e0ab59))
7
+
1
8
  ## [1.2.1](https://github.com/CoCreate-app/CoCreate-sitemap/compare/v1.2.0...v1.2.1) (2024-09-01)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/sitemap",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A simple sitemap component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "sitemap",
package/src/index.js CHANGED
@@ -46,8 +46,8 @@ class CoCreateSitemap {
46
46
 
47
47
  // Compare the lastmod date in the sitemap with the modified.on date
48
48
  if (file.sitemap && file.sitemap.lastmod && file.modified.on) {
49
- // if (new Date(file.sitemap.lastmod) >= new Date(file.modified.on))
50
- // return;
49
+ if (new Date(file.sitemap.lastmod) >= new Date(file.modified.on))
50
+ return;
51
51
  }
52
52
 
53
53
  // Logic to update the sitemap