easy-sitemap-generator 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/sitemapGenerator.js +1 -1
- package/package.json +5 -5
- package/services/axios.js +1 -1
package/README.md
CHANGED
|
@@ -4,10 +4,10 @@ Improve your search engine rankings effortlessly! All you need is Node.js instal
|
|
|
4
4
|
|
|
5
5
|
<a href="https://www.npmjs.com/package/easy-sitemap-generator" target="_blank" title="easy-sitemap-generator - npm" style="text-decoration:none">
|
|
6
6
|
<img src="https://img.shields.io/npm/dt/easy-sitemap-generator.svg?maxAge=3600" alt="The number of downloads">
|
|
7
|
-
<img src="https://img.shields.io/github/issues/
|
|
8
|
-
<img src="https://img.shields.io/github/last-commit/
|
|
9
|
-
<img src="https://img.shields.io/github/commit-activity/w/
|
|
10
|
-
<img src="https://img.shields.io/github/languages/code-size/
|
|
7
|
+
<img src="https://img.shields.io/github/issues/sefinek/easy-sitemap-generator" alt="Issues">
|
|
8
|
+
<img src="https://img.shields.io/github/last-commit/sefinek/easy-sitemap-generator" alt="Last commit">
|
|
9
|
+
<img src="https://img.shields.io/github/commit-activity/w/sefinek/easy-sitemap-generator" alt="Commit activity">
|
|
10
|
+
<img src="https://img.shields.io/github/languages/code-size/sefinek/easy-sitemap-generator" alt="Code size">
|
|
11
11
|
</a>
|
|
12
12
|
|
|
13
13
|
## 🤔 How to use it?
|
package/lib/sitemapGenerator.js
CHANGED
|
@@ -86,7 +86,7 @@ const generateSitemap = async (baseUrl, destination = 'sitemap.xml') => {
|
|
|
86
86
|
.sort((a, b) => b.priority - a.priority);
|
|
87
87
|
|
|
88
88
|
const sitemapContent = `<?xml version="1.0" encoding="UTF-8"?>
|
|
89
|
-
<!-- Generated by https://github.com/
|
|
89
|
+
<!-- Generated by https://github.com/sefinek/easy-sitemap-generator v${version} at ${new Date().toISOString()} -->
|
|
90
90
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
|
91
91
|
${urls.map(({ url, priority, lastmod }) => ` <url>
|
|
92
92
|
<loc>${escapeXml(url)}</loc>
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-sitemap-generator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Easy and free sitemap.xml file generator without any restrictions for your website.",
|
|
5
|
-
"homepage": "https://github.com/
|
|
5
|
+
"homepage": "https://github.com/sefinek/easy-sitemap-generator#readme",
|
|
6
6
|
"bugs": {
|
|
7
|
-
"url": "https://github.com/
|
|
7
|
+
"url": "https://github.com/sefinek/easy-sitemap-generator/issues"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/sefinek/easy-sitemap-generator.git"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Sefinek <contact@nekosia.cat> (https://sefinek.net)",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"kleur": "^4.1.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@eslint/js": "^9.
|
|
33
|
+
"@eslint/js": "^9.13.0",
|
|
34
34
|
"globals": "^15.11.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/services/axios.js
CHANGED
|
@@ -2,6 +2,6 @@ const axios = require('axios');
|
|
|
2
2
|
const { version } = require('../package.json');
|
|
3
3
|
|
|
4
4
|
axios.defaults.timeout = 24000;
|
|
5
|
-
axios.defaults.headers.common['User-Agent'] = `Mozilla/5.0 (compatible; EasySitemapGen/${version}; +https://github.com/
|
|
5
|
+
axios.defaults.headers.common['User-Agent'] = `Mozilla/5.0 (compatible; EasySitemapGen/${version}; +https://github.com/sefinek/easy-sitemap-generator)`;
|
|
6
6
|
|
|
7
7
|
module.exports = { axios, version };
|