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

netlify-plugin-submit-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-plugin-submit-sitemap - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

9

index.js

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

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