Socket
Socket
Sign inDemoInstall

sitemap

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

4

CHANGELOG.md
# Changelog
## 6.1.1
- Fix #286 sitemapindex tag not closing for deprecated createSitemapsAndIndex
## 6.1.0

@@ -4,0 +8,0 @@

10

dist/lib/sitemap-index-stream.js

@@ -102,10 +102,12 @@ "use strict";

}
chunk.forEach(smi => sms.write(smi));
chunk.forEach((smi) => sms.write(smi));
sms.end();
pipe.on('finish', () => resolve(true));
pipe.on('error', e => reject(e));
pipe.on('error', (e) => reject(e));
});
});
indexWS.end();
return Promise.all(smPromises).then(() => true);
return Promise.all(smPromises).then(() => {
indexStream.end();
return true;
});
}

@@ -112,0 +114,0 @@ exports.createSitemapsAndIndex = createSitemapsAndIndex;

@@ -58,3 +58,3 @@ "use strict";

}
item.video.forEach(video => {
item.video.forEach((video) => {
this.push(sitemap_xml_1.otag(types_1.TagNames['video:video']));

@@ -124,3 +124,3 @@ this.push(sitemap_xml_1.element(types_1.TagNames['video:thumbnail_loc'], video.thumbnail_loc));

});
item.links.forEach(link => {
item.links.forEach((link) => {
this.push(sitemap_xml_1.element(types_1.TagNames['xhtml:link'], {

@@ -127,0 +127,0 @@ rel: 'alternate',

@@ -63,3 +63,3 @@ "use strict";

this.smiStream = new sitemap_item_stream_1.SitemapItemStream({ level: opts.level });
this.smiStream.on('data', data => this.push(data));
this.smiStream.on('data', (data) => this.push(data));
this.lastmodDateOnly = opts.lastmodDateOnly || false;

@@ -66,0 +66,0 @@ this.xmlNS = opts.xmlns || defaultXMLNS;

@@ -176,3 +176,3 @@ "use strict";

// Every time there's data, push it into the internal buffer.
this._source.on('line', chunk => {
this._source.on('line', (chunk) => {
// If push() returns false, then stop reading from source.

@@ -179,0 +179,0 @@ if (!this.push(chunk))

{
"name": "sitemap",
"version": "6.1.0",
"version": "6.1.1",
"description": "Sitemap-generating lib/cli",

@@ -142,3 +142,3 @@ "keywords": [

"dependencies": {
"@types/node": "^13.9.1",
"@types/node": "^13.11.1",
"@types/sax": "^1.2.1",

@@ -149,12 +149,12 @@ "arg": "^4.1.3",

"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
"@babel/plugin-transform-typescript": "^7.8.7",
"@babel/preset-env": "^7.8.7",
"@babel/preset-typescript": "^7.8.3",
"@types/jest": "^25.1.4",
"@typescript-eslint/eslint-plugin": "^2.23.0",
"@typescript-eslint/parser": "^2.23.0",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-transform-typescript": "^7.9.4",
"@babel/preset-env": "^7.9.5",
"@babel/preset-typescript": "^7.9.0",
"@types/jest": "^25.2.1",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"babel-eslint": "^10.1.0",

@@ -164,11 +164,11 @@ "babel-polyfill": "^6.26.0",

"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.1.3",
"express": "^4.17.1",
"husky": "^4.2.3",
"jest": "^25.1.0",
"lint-staged": "^10.0.8",
"prettier": "^1.19.1",
"sort-package-json": "^1.40.0",
"husky": "^4.2.5",
"jest": "^25.3.0",
"lint-staged": "^10.1.3",
"prettier": "^2.0.0",
"sort-package-json": "^1.41.0",
"source-map": "~0.7.3",

@@ -175,0 +175,0 @@ "stats-lite": "^2.2.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