multi-sitemap
Advanced tools
Comparing version 0.4.0 to 0.4.1
# Changelog | ||
## 0.4.1 | ||
- Fix priority tag ([#17](https://github.com/amannn/multi-sitemap/pull/17)). | ||
## 0.4.0 | ||
- Added support for [special sitemap index syntax](https://www.sitemaps.org/protocol.html#index). |
@@ -131,5 +131,11 @@ "use strict"; | ||
_a.sent(); | ||
return [4 /*yield*/, stream.end()]; | ||
return [4 /*yield*/, stream.add([{ url: '/baz', priority: 1 }])]; | ||
case 4: | ||
_a.sent(); | ||
return [4 /*yield*/, stream.add([{ url: '/bag', changeFrequency: "daily" }])]; | ||
case 5: | ||
_a.sent(); | ||
return [4 /*yield*/, stream.end()]; | ||
case 6: | ||
_a.sent(); | ||
expect(fileStreamWriter.chunksByName).toEqual({ | ||
@@ -147,2 +153,6 @@ './tmp/first.xml': [ | ||
'\n', | ||
'<sitemap><loc>/baz</loc><priority>1</priority></sitemap>', | ||
'\n', | ||
'<sitemap><loc>/bag</loc><changefreq>daily</changefreq></sitemap>', | ||
'\n', | ||
'</sitemapindex>' | ||
@@ -149,0 +159,0 @@ ] |
@@ -111,3 +111,3 @@ "use strict"; | ||
"<changefreq>" + entry.changeFrequency + "</changefreq>", | ||
entry.priority && "<changefreq>" + entry.priority + "</changefreq>", | ||
entry.priority && "<priority>" + entry.priority + "</priority>", | ||
isIndex ? '</sitemap>' : '</url>' | ||
@@ -114,0 +114,0 @@ ] |
{ | ||
"name": "multi-sitemap", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Painless creation of large dynamic sitemaps that consist of multiple files.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/amannn/multi-sitemap", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55582
1062