@mr-hope/vuepress-plugin-sitemap
Advanced tools
Comparing version 1.28.3 to 1.28.5
@@ -49,4 +49,8 @@ "use strict"; | ||
})); | ||
const sitemapInfo = Object.assign(Object.assign({ changefreq, | ||
links }, (lastmodifyTime ? { lastmod: lastmodifyTime } : {})), frontmatterOptions); | ||
const sitemapInfo = { | ||
changefreq, | ||
links, | ||
...(lastmodifyTime ? { lastmod: lastmodifyTime } : {}), | ||
...frontmatterOptions, | ||
}; | ||
pagesMap.set(page.path, sitemapInfo); | ||
@@ -71,3 +75,3 @@ }); | ||
if (!exclude.includes(url)) | ||
sitemap.write(Object.assign({ url: `${base}${url}` }, page)); | ||
sitemap.write({ url: `${base}${url}`, ...page }); | ||
}); | ||
@@ -74,0 +78,0 @@ urls.forEach((item) => sitemap.write(item)); |
{ | ||
"name": "@mr-hope/vuepress-plugin-sitemap", | ||
"version": "1.28.3", | ||
"version": "1.28.5", | ||
"description": "Sitemap plugin for vuepress", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"chalk": "^4.1.2", | ||
"fs-extra": "^10.0.1", | ||
"fs-extra": "^10.1.0", | ||
"sitemap": "^7.1.1" | ||
@@ -42,3 +42,3 @@ }, | ||
}, | ||
"gitHead": "a9ca511baf42c85209acfae89d34bbce585f32f7" | ||
"gitHead": "62667f4e82dc16fd2f055e50a00b46cfbb977ec3" | ||
} |
Sorry, the diff of this file is not supported yet
20575
383
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addeddata-view-buffer@1.0.2(transitive)
+ Addeddata-view-byte-length@1.0.2(transitive)
+ Addeddata-view-byte-offset@1.0.1(transitive)
+ Addedes-set-tostringtag@2.1.0(transitive)
+ Addedes-to-primitive@1.3.0(transitive)
+ Addedfunction.prototype.name@1.1.8(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedpinkie@2.0.4(transitive)
Updatedfs-extra@^10.1.0