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

multi-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-sitemap - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

4

CHANGELOG.md
# 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 @@ ]

2

dist/SitemapWriterXml.js

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

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