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

xml-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-sitemap - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

11

lib/option-handling/set-and-get.js

@@ -115,8 +115,9 @@ 'use strict';

self.linkFile(url, options[opt]);
}
const value = self.handleOption(opt, options[opt]);
if (value === null) {
delete urlNode[opt];
} else {
urlNode[opt] = value;
const value = self.handleOption(opt, options[opt]);
if (value === null) {
delete urlNode[opt];
} else {
urlNode[opt] = value;
}
}

@@ -123,0 +124,0 @@ });

@@ -111,2 +111,6 @@ 'use strict';

if (self.hasUrl(urlStr)) {
console.log('has url.', urlStr);
if (urlStr === self.host) {
return self.setOptionValues(url, urlOptions);
}
throw new Error(urlStr + ' is already in tree. To update options use the setOptionValue or setOptionValues methods.');

@@ -237,2 +241,3 @@ }

}
url = urlUtil.resolve(url, '');
self.host = url;

@@ -239,0 +244,0 @@ try {

{
"name": "xml-sitemap",
"version": "0.3.0",
"version": "0.3.1",
"description": "Utilities for quickly writing XML sitemaps",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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