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

gatsby-plugin-wpgraphql-seo

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-wpgraphql-seo - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

dist/gatsby-plugin-wpgraphql-seo.cjs.development.js

@@ -132,3 +132,3 @@ 'use strict';

encodeSpecialCharacters: false
}, postSchema && React__default.createElement("script", {
}, fullSchema && React__default.createElement("script", {
type: "application/ld+json"

@@ -135,0 +135,0 @@ }, JSON.stringify(_extends({}, fullSchema), null, 2)));

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),n=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,i=require("react-helmet");function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var r=t.createContext({}),a=function(e){var a,l,c=e.post,p=e.meta,s=void 0===p?[]:p,u=e.title,d=e.postSchema,m=(void 0===c?{}:c).seo,v=d||JSON.parse(null==m||null==(a=m.schema)?void 0:a.raw),y=t.useContext(r).global,f=null==y||null==(l=y.schema)?void 0:l.inLanguage,g=null==y?void 0:y.schema,h=null==y?void 0:y.webmaster,w=null==y?void 0:y.social,x=[];(null==h?void 0:h.baiduVerify)&&x.push({name:"baidu-site-verification",content:h.baiduVerify}),(null==h?void 0:h.googleVerify)&&x.push({name:"google-site-verification",content:h.googleVerify}),(null==h?void 0:h.msVerify)&&x.push({name:"msvalidate.01",content:h.msVerify}),(null==h?void 0:h.yandexVerify)&&x.push({name:"yandex-verification",content:h.yandexVerify}),(null==w?void 0:w.pinterest)&&w.pinterest.metaTag&&x.push({name:"p:domain_verify",content:w.pinterest.metaTag});var b=u||m.title,V=(null==m?void 0:m.metaDesc)?m.metaDesc:"";return n.createElement(i.Helmet,{htmlAttributes:{lang:f},title:b,meta:[{name:"robots",content:"max-snippet:-1, max-image-preview:large, max-video-preview:-1"},{name:"description",content:V},{property:"og:site_name",content:null==g?void 0:g.companyName},{property:"og:title",content:(null==m?void 0:m.opengraphTitle)||b},{property:"og:description",content:null==m?void 0:m.opengraphDescription},{property:"og:locale",content:"en_GB"},{property:"og:type",content:"website"},{name:"twitter:card",content:null==w?void 0:w.twitter.cardType},{name:"twitter:creator",content:null==w?void 0:w.twitter.username},{name:"twitter:title",content:(null==m?void 0:m.twitterTitle)||b},{name:"twitter:description",content:(null==m?void 0:m.twitterDescription)||V}].filter((function(e){return!!e.content})).concat(s,x),encodeSpecialCharacters:!1},d&&n.createElement("script",{type:"application/ld+json"},JSON.stringify(o({},v),null,2)))};exports.SEOContext=r,exports.Seo=a,exports.default=a;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),n=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,i=require("react-helmet");function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var r=t.createContext({}),a=function(e){var a,l,c=e.post,p=e.meta,s=void 0===p?[]:p,u=e.title,d=(void 0===c?{}:c).seo,m=e.postSchema||JSON.parse(null==d||null==(a=d.schema)?void 0:a.raw),v=t.useContext(r).global,y=null==v||null==(l=v.schema)?void 0:l.inLanguage,f=null==v?void 0:v.schema,g=null==v?void 0:v.webmaster,h=null==v?void 0:v.social,w=[];(null==g?void 0:g.baiduVerify)&&w.push({name:"baidu-site-verification",content:g.baiduVerify}),(null==g?void 0:g.googleVerify)&&w.push({name:"google-site-verification",content:g.googleVerify}),(null==g?void 0:g.msVerify)&&w.push({name:"msvalidate.01",content:g.msVerify}),(null==g?void 0:g.yandexVerify)&&w.push({name:"yandex-verification",content:g.yandexVerify}),(null==h?void 0:h.pinterest)&&h.pinterest.metaTag&&w.push({name:"p:domain_verify",content:h.pinterest.metaTag});var x=u||d.title,b=(null==d?void 0:d.metaDesc)?d.metaDesc:"";return n.createElement(i.Helmet,{htmlAttributes:{lang:y},title:x,meta:[{name:"robots",content:"max-snippet:-1, max-image-preview:large, max-video-preview:-1"},{name:"description",content:b},{property:"og:site_name",content:null==f?void 0:f.companyName},{property:"og:title",content:(null==d?void 0:d.opengraphTitle)||x},{property:"og:description",content:null==d?void 0:d.opengraphDescription},{property:"og:locale",content:"en_GB"},{property:"og:type",content:"website"},{name:"twitter:card",content:null==h?void 0:h.twitter.cardType},{name:"twitter:creator",content:null==h?void 0:h.twitter.username},{name:"twitter:title",content:(null==d?void 0:d.twitterTitle)||x},{name:"twitter:description",content:(null==d?void 0:d.twitterDescription)||b}].filter((function(e){return!!e.content})).concat(s,w),encodeSpecialCharacters:!1},m&&n.createElement("script",{type:"application/ld+json"},JSON.stringify(o({},m),null,2)))};exports.SEOContext=r,exports.Seo=a,exports.default=a;
//# sourceMappingURL=gatsby-plugin-wpgraphql-seo.cjs.production.min.js.map

@@ -125,3 +125,3 @@ import React, { createContext, useContext } from 'react';

encodeSpecialCharacters: false
}, postSchema && React.createElement("script", {
}, fullSchema && React.createElement("script", {
type: "application/ld+json"

@@ -128,0 +128,0 @@ }, JSON.stringify(_extends({}, fullSchema), null, 2)));

{
"version": "1.0.2",
"version": "1.0.3",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/index.js",

# Gatsby SEO For WpGraphQL and Yoast
![npm](https://img.shields.io/npm/v/gatsby-plugin-wpgraphql-seo)
Takes data from [WpGraphQL](https://www.wpgraphql.com/) and [WPGraphQl Yoast SEO](https://github.com/ashhitch/wp-graphql-yoast-seo) and provided you with Meta Tags and JSON+LD Schema in Gatsby.

@@ -11,7 +13,10 @@

> yarn add gatsby-plugin-wpgraphql-seo
```
yarn add gatsby-plugin-wpgraphql-seo
```
or
> npm install gatsby-plugin-wpgraphql-seo
```
npm install gatsby-plugin-wpgraphql-seo
```

@@ -18,0 +23,0 @@ ### Setup Gatsby

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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