multi-sitemap
Advanced tools
Comparing version 0.3.1-alpha.2 to 0.3.1-alpha.3
@@ -69,3 +69,3 @@ "use strict"; | ||
_a.sent(); | ||
return [4 /*yield*/, stream.add([{ url: '/bar', lastModified: new Date(2017, 12, 26) }])]; | ||
return [4 /*yield*/, stream.add([{ url: '/bar', lastModified: new Date(2018, 0, 14) }])]; | ||
case 3: | ||
@@ -95,3 +95,3 @@ _a.sent(); | ||
'\n', | ||
'<url><loc>/bar</loc><lastmod>2018-1-26</lastmod></url>', | ||
'<url><loc>/bar</loc><lastmod>2018-01-14</lastmod></url>', | ||
'\n', | ||
@@ -98,0 +98,0 @@ '</urlset>' |
@@ -52,3 +52,9 @@ "use strict"; | ||
if (date === void 0) { date = new Date(); } | ||
return date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate(); | ||
var month = (date.getMonth() + 1).toString(); | ||
if (month.length < 2) | ||
month = '0' + month; | ||
var day = date.getDate().toString(); | ||
if (day.length < 2) | ||
day = '0' + day; | ||
return date.getFullYear() + "-" + month + "-" + day; | ||
} | ||
@@ -55,0 +61,0 @@ var SitemapWriterXml = /** @class */ (function (_super) { |
{ | ||
"name": "multi-sitemap", | ||
"version": "0.3.1-alpha.2", | ||
"version": "0.3.1-alpha.3", | ||
"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
52788
1008