Socket
Socket
Sign inDemoInstall

gatsby-plugin-no-index

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "gatsby-plugin-no-index",
"version": "0.2.0",
"version": "0.3.0",
"description": "Gatsby plugin for not indexing your website on search engine",

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

@@ -1,14 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.onRenderBody = void 0;
var React = _interopRequireWildcard(require("react"));
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
/**

@@ -19,13 +6,11 @@ * Implement Gatsby's SSR (Server Side Rendering) APIs in this file.

*/
// You can delete this file if you're not using it
const onRenderBody = ({
setHeadComponents
}) => {
const NoFollow = /*#__PURE__*/React.createElement("meta", {
name: "robots",
content: "noindex, nofollow, noimageindex"
});
setHeadComponents([NoFollow]);
};
import * as React from "react"
exports.onRenderBody = onRenderBody;
export const onRenderBody = ({ setHeadComponents }) => {
const NoFollow = (
<meta name="robots" content="noindex, nofollow, noimageindex" />
)
setHeadComponents([NoFollow])
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc