sitemap-generator-custom-volodzya
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,4 +0,4 @@ | ||
const SitemapGenerator = require('../src/SitemapGenerator'); | ||
const InvalidDataException = require('../src/exceptions/InvalidDataException'); | ||
const FileAccessException = require('../src/exceptions/FileAccessException'); | ||
const SitemapGenerator = require('sitemap-generator-custom-volodzya'); | ||
const InvalidDataException = require('sitemap-generator-custom-volodzya/src/exceptions/InvalidDataException'); | ||
const FileAccessException = require('sitemap-generator-custom-volodzya/src/exceptions/FileAccessException'); | ||
@@ -20,4 +20,4 @@ const pages = [ | ||
const fileType = 'xml'; | ||
const filePath = '/var/www/site.ru/upload/sitemap.xml'; | ||
const fileType = 'xml'; // можно использовать 'csv' или 'json' | ||
const filePath = './sitemap.xml'; // обновите путь в зависимости от вашей структуры | ||
@@ -24,0 +24,0 @@ try { |
{ | ||
"name": "sitemap-generator-custom-volodzya", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A library to generate sitemaps in various formats", | ||
@@ -5,0 +5,0 @@ "main": "src/SitemapGenerator.js", |
@@ -53,3 +53,3 @@ const fs = require('fs'); | ||
for (const page of this.pages) { | ||
urls += `<url>\n<loc>${page.loc}</loc>\n<lastmod>${page.lastmod}</lastmod>\n<priority>${page.priority}</priority>\n<changefreq>${page.changefreq}</changefreq>\n</url>\n`; | ||
urls += `<url>\n<loc>${page.loc}</loc>\n<lastmod>${page.lastmod}</lastmod>\n<priority>${page.priority}</priority>\n<changefreq>${page.changefreq}\n</url>\n`; | ||
} | ||
@@ -56,0 +56,0 @@ |
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
4759