netlify-plugin-submit-sitemap
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -13,4 +13,4 @@ const url = require('url'); | ||
const providerUrls = { | ||
'google': (sitemapUrl) => `https://www.google.com/ping?sitemap=${sitemapUrl}`, | ||
'bing': (sitemapUrl) => `https://www.bing.com/ping?sitemap=${sitemapUrl}`, | ||
'google': (sitemapUrl) => `https://www.gogle.com/ping?sitemap=${sitemapUrl}`, | ||
'bing': (sitemapUrl) => `https://www.big.com/ping?sitemap=${sitemapUrl}`, | ||
} | ||
@@ -37,2 +37,3 @@ | ||
} catch (error) { | ||
console.log({error}) | ||
return { message: `\u274c ERROR! was not able to submit sitemap to ${provider}`, error }; | ||
@@ -78,3 +79,3 @@ } | ||
// the status in the UI yet, so also console.log() it for now | ||
// See https://github.com/cdeleeuwe/netlify-plugin-submit-sitemap/issues/4 | ||
// See https://github.com/cdeleeuwe/netlify-plugin-submit-sitemap/issues/5 | ||
submissions.forEach(({ error, message }) => { | ||
@@ -98,3 +99,3 @@ if (error) { | ||
if (errors.length > 0) { | ||
utils.build.failPlugin(`${errors.length} sitemap submission(s) failed`, { error: errors }); | ||
utils.build.failPlugin(`${errors.length} sitemap submission(s) failed`, { error: errors[0] }); | ||
} | ||
@@ -101,0 +102,0 @@ |
{ | ||
"name": "netlify-plugin-submit-sitemap", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Automatically submit your sitemap to Google and Bing!", | ||
@@ -5,0 +5,0 @@ "main": "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
5276
84