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 0.1.0 to 0.1.2

dist/Seo.d.ts

4

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

@@ -81,2 +81,4 @@ 'use strict';

}
return null;
}).filter(function (acc) {

@@ -190,3 +192,5 @@ return !!acc;

exports.SEOContext = SEOContext;
exports.Seo = SEO;
exports.default = SEO;
//# sourceMappingURL=gatsby-plugin-wpgraphql-seo.cjs.development.js.map

2

dist/gatsby-plugin-wpgraphql-seo.cjs.production.min.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),i=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,n=require("react-helmet"),o=t.createContext({});exports.default=function(e){var l,r,a,s,c,p,u,d,m,g,v,y,h,f=e.post,w=void 0===f?{}:f,b=e.meta,x=void 0===b?[]:b,O=e.title,P=e.uri,T=w.seo,U=t.useContext(o).global,V=null==U||null==(l=U.schema)?void 0:l.inLanguage,S=null==U?void 0:U.schema,j=null==U?void 0:U.webmaster,_=null==U?void 0:U.social,z=[];(null==j?void 0:j.baiduVerify)&&z.push({name:"baidu-site-verification",content:j.baiduVerify}),(null==j?void 0:j.googleVerify)&&z.push({name:"google-site-verification",content:j.googleVerify}),(null==j?void 0:j.msVerify)&&z.push({name:"msvalidate.01",content:j.msVerify}),(null==j?void 0:j.yandexVerify)&&z.push({name:"yandex-verification",content:j.yandexVerify}),(null==_?void 0:_.pinterest)&&_.pinterest.metaTag&&z.push({name:"p:domain_verify",content:_.pinterest.metaTag});var A=O||T.title,D=(null==T?void 0:T.metaDesc)?T.metaDesc:"",I=(null==T?void 0:T.canonical)||""+(null==S?void 0:S.siteUrl)+((null==w?void 0:w.uri)||P),L=_?Object.entries(_).map((function(e){var t=e[1],i=t.url,n=t.username;if(n||i)return n&&"twitter"===e[0]?"https://www.twitter.com/"+n:i})).filter((function(e){return!!e})):[],C=(null==S?void 0:S.logo)?{"@type":"ImageObject","@id":S.siteUrl+"/#"+("person"===S.companyOrPerson?"personlogo":"logo"),inLanguage:V,url:""+S.siteUrl+(null==(r=S.logo)||null==(a=r.localFile)||null==(s=a.childImageSharp)?void 0:s.fixed.src),width:null==(c=S.logo)||null==(p=c.localFile)||null==(u=p.childImageSharp)?void 0:u.fixed.width,height:null==(d=S.logo)||null==(m=d.localFile)||null==(g=m.childImageSharp)?void 0:g.fixed.height,caption:S.logo.altText}:null,F=(null==S?void 0:S.logo)?{"@id":S.siteUrl+"/#"+("person"===S.companyOrPerson?"personlogo":"logo")}:null,N=S?((v={"@type":"person"===S.companyOrPerson?["Person","Organization"]:"Organization","@id":S.siteUrl+"/#"+("person"===S.companyOrPerson?"/schema/person":"organization"),name:S.siteName,url:S.siteUrl,sameAs:L})["person"===S.companyOrPerson?"image":"logo"]=C,v["person"===S.companyOrPerson?"logo":"image"]=F,v):null,q=S?{"@type":(null==T||null==(y=T.schema)?void 0:y.articleType)&&T.schema.articleType.length>=1?T.schema.articleType:"WebSite","@id":S.siteUrl+"/#website",url:S.siteUrl,name:A,description:D,publisher:{"@id":S.siteUrl+"/#organization"},inLanguage:V}:{},E=(null==w?void 0:w.seo)&&S?{"@type":(null==T||null==(h=T.schema)?void 0:h.pageType)?T.schema.pageType:["WebPage"],"@id":I+"#webpage",url:""+I,name:T.title,isPartOf:{"@id":(null==S?void 0:S.siteUrl)+"/#website"},description:null==T?void 0:T.description,inLanguage:V,potentialAction:[{"@type":"ReadAction",target:[I]}]}:{};E&&(null==w?void 0:w.date)&&(E.datePublished=w.date),E&&(null==w?void 0:w.modified)&&(E.dateModified=w.modified);var M={"@context":"https://schema.org","@graph":[N,q,E]};return i.createElement(n.Helmet,{htmlAttributes:{lang:V},title:A,meta:[{name:"robots",content:"max-snippet:-1, max-image-preview:large, max-video-preview:-1"},{name:"description",content:D},{property:"og:site_name",content:null==S?void 0:S.companyName},{property:"og:title",content:(null==T?void 0:T.opengraphTitle)||A},{property:"og:description",content:null==T?void 0:T.opengraphDescription},{property:"og:locale",content:"en_GB"},{property:"og:type",content:"website"},{name:"twitter:card",content:null==_?void 0:_.twitter.cardType},{name:"twitter:creator",content:null==_?void 0:_.twitter.username},{name:"twitter:title",content:(null==T?void 0:T.twitterTitle)||A},{name:"twitter:description",content:(null==T?void 0:T.twitterDescription)||D}].filter((function(e){return!!e.content})).concat(x,z),encodeSpecialCharacters:!1},i.createElement("script",{type:"application/ld+json"},JSON.stringify(M,null,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"),o=t.createContext({}),l=function(e){var l,r,a,s,c,p,u,d,m,g,v,y,h,f=e.post,w=void 0===f?{}:f,b=e.meta,x=void 0===b?[]:b,O=e.title,P=e.uri,T=w.seo,U=t.useContext(o).global,S=null==U||null==(l=U.schema)?void 0:l.inLanguage,V=null==U?void 0:U.schema,j=null==U?void 0:U.webmaster,_=null==U?void 0:U.social,z=[];(null==j?void 0:j.baiduVerify)&&z.push({name:"baidu-site-verification",content:j.baiduVerify}),(null==j?void 0:j.googleVerify)&&z.push({name:"google-site-verification",content:j.googleVerify}),(null==j?void 0:j.msVerify)&&z.push({name:"msvalidate.01",content:j.msVerify}),(null==j?void 0:j.yandexVerify)&&z.push({name:"yandex-verification",content:j.yandexVerify}),(null==_?void 0:_.pinterest)&&_.pinterest.metaTag&&z.push({name:"p:domain_verify",content:_.pinterest.metaTag});var A=O||T.title,C=(null==T?void 0:T.metaDesc)?T.metaDesc:"",D=(null==T?void 0:T.canonical)||""+(null==V?void 0:V.siteUrl)+((null==w?void 0:w.uri)||P),I=_?Object.entries(_).map((function(e){var t=e[1],n=t.url,i=t.username;return i||n?i&&"twitter"===e[0]?"https://www.twitter.com/"+i:n:null})).filter((function(e){return!!e})):[],L=(null==V?void 0:V.logo)?{"@type":"ImageObject","@id":V.siteUrl+"/#"+("person"===V.companyOrPerson?"personlogo":"logo"),inLanguage:S,url:""+V.siteUrl+(null==(r=V.logo)||null==(a=r.localFile)||null==(s=a.childImageSharp)?void 0:s.fixed.src),width:null==(c=V.logo)||null==(p=c.localFile)||null==(u=p.childImageSharp)?void 0:u.fixed.width,height:null==(d=V.logo)||null==(m=d.localFile)||null==(g=m.childImageSharp)?void 0:g.fixed.height,caption:V.logo.altText}:null,E=(null==V?void 0:V.logo)?{"@id":V.siteUrl+"/#"+("person"===V.companyOrPerson?"personlogo":"logo")}:null,F=V?((v={"@type":"person"===V.companyOrPerson?["Person","Organization"]:"Organization","@id":V.siteUrl+"/#"+("person"===V.companyOrPerson?"/schema/person":"organization"),name:V.siteName,url:V.siteUrl,sameAs:I})["person"===V.companyOrPerson?"image":"logo"]=L,v["person"===V.companyOrPerson?"logo":"image"]=E,v):null,N=V?{"@type":(null==T||null==(y=T.schema)?void 0:y.articleType)&&T.schema.articleType.length>=1?T.schema.articleType:"WebSite","@id":V.siteUrl+"/#website",url:V.siteUrl,name:A,description:C,publisher:{"@id":V.siteUrl+"/#organization"},inLanguage:S}:{},q=(null==w?void 0:w.seo)&&V?{"@type":(null==T||null==(h=T.schema)?void 0:h.pageType)?T.schema.pageType:["WebPage"],"@id":D+"#webpage",url:""+D,name:T.title,isPartOf:{"@id":(null==V?void 0:V.siteUrl)+"/#website"},description:null==T?void 0:T.description,inLanguage:S,potentialAction:[{"@type":"ReadAction",target:[D]}]}:{};q&&(null==w?void 0:w.date)&&(q.datePublished=w.date),q&&(null==w?void 0:w.modified)&&(q.dateModified=w.modified);var M={"@context":"https://schema.org","@graph":[F,N,q]};return n.createElement(i.Helmet,{htmlAttributes:{lang:S},title:A,meta:[{name:"robots",content:"max-snippet:-1, max-image-preview:large, max-video-preview:-1"},{name:"description",content:C},{property:"og:site_name",content:null==V?void 0:V.companyName},{property:"og:title",content:(null==T?void 0:T.opengraphTitle)||A},{property:"og:description",content:null==T?void 0:T.opengraphDescription},{property:"og:locale",content:"en_GB"},{property:"og:type",content:"website"},{name:"twitter:card",content:null==_?void 0:_.twitter.cardType},{name:"twitter:creator",content:null==_?void 0:_.twitter.username},{name:"twitter:title",content:(null==T?void 0:T.twitterTitle)||A},{name:"twitter:description",content:(null==T?void 0:T.twitterDescription)||C}].filter((function(e){return!!e.content})).concat(x,z),encodeSpecialCharacters:!1},n.createElement("script",{type:"application/ld+json"},JSON.stringify(M,null,2)))};exports.SEOContext=o,exports.Seo=l,exports.default=l;
//# sourceMappingURL=gatsby-plugin-wpgraphql-seo.cjs.production.min.js.map

@@ -74,2 +74,4 @@ import React, { createContext, useContext } from 'react';

}
return null;
}).filter(function (acc) {

@@ -184,2 +186,3 @@ return !!acc;

export default SEO;
export { SEOContext, SEO as Seo };
//# sourceMappingURL=gatsby-plugin-wpgraphql-seo.esm.js.map

@@ -1,9 +0,4 @@

import { FC } from 'react';
interface SeoProps {
title?: String;
meta?: [];
post?: any;
uri?: null;
}
declare const SEO: FC<SeoProps>;
export default SEO;
import Seo from './Seo';
import SEOContext from './SeoContext';
export { SEOContext, Seo };
export default Seo;
{
"version": "0.1.0",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
"lint": "tsdx lint",
"prepare": "tsdx build",
"size": "size-limit",
"analyze": "size-limit --why"
},
"peerDependencies": {
"react": ">=16",
"react-helmet": "^6.1.0"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"prettier": {
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2
},
"name": "gatsby-plugin-wpgraphql-seo",
"author": "Ash Hitchcock",
"module": "dist/gatsby-plugin-wpgraphql-seo.esm.js",
"size-limit": [
{
"path": "dist/gatsby-plugin-wpgraphql-seo.cjs.production.min.js",
"limit": "10 KB"
"version": "0.1.2",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": ">=10"
},
{
"path": "dist/gatsby-plugin-wpgraphql-seo.esm.js",
"limit": "10 KB"
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
"lint": "tsdx lint",
"prepare": "tsdx build",
"size": "size-limit",
"analyze": "size-limit --why"
},
"peerDependencies": {
"react": ">=16",
"react-helmet": "^6.1.0"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"name": "gatsby-plugin-wpgraphql-seo",
"author": "Ash Hitchcock",
"description": "A SEO component that brings data from Yoast in your Gatsby App vi WpGraphQl.",
"module": "dist/gatsby-plugin-wpgraphql-seo.esm.js",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"repository": {
"type": "git",
"url": "https://github.com/ashhitch/gatsby-plugin-wpgraphql-seo"
},
"size-limit": [
{
"path": "dist/gatsby-plugin-wpgraphql-seo.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/gatsby-plugin-wpgraphql-seo.esm.js",
"limit": "10 KB"
}
],
"devDependencies": {
"@size-limit/preset-small-lib": "^4.6.0",
"@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.2",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-typescript": "^6.3.1",
"eslint-config-ashhitch": "0.0.1",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react-hooks": "^2.3.0",
"husky": "^4.3.0",
"prettier": "^1.19.1",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-helmet": "^6.1.0",
"size-limit": "^4.6.0",
"tsdx": "^0.14.1",
"tslib": "^2.0.3",
"typescript": "3.7.3"
},
"dependencies": {
"@types/react-helmet": "^6.1.0"
}
],
"devDependencies": {
"@size-limit/preset-small-lib": "^4.6.0",
"@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8",
"husky": "^4.3.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-helmet": "^6.1.0",
"size-limit": "^4.6.0",
"tsdx": "^0.14.1",
"tslib": "^2.0.3",
"typescript": "^4.0.3"
},
"dependencies": {
"@types/react-helmet": "^6.1.0"
}
}

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