Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sitemap-generator-custom-volodzya

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-generator-custom-volodzya - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

examples/examples.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc