xml-sitemap
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
82866
1730
0