gatsby-plugin-wpgraphql-seo
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -165,3 +165,3 @@ 'use strict'; | ||
type: "application/ld+json" | ||
}, JSON.stringify(_extends({}, fullSchema), null, 2))); | ||
}, JSON.stringify(_extends({}, fullSchema), null, null))); | ||
}; | ||
@@ -168,0 +168,0 @@ |
@@ -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,o=require("react-helmet");function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var i=t.createContext({}),a=function(e){var a,r,u,c,m,d,p,s,v,g,f,y,w=e.post,h=e.meta,x=void 0===h?[]:h,b=e.title,T=e.postSchema,V=(void 0===w?{}:w).seo;T?y=T:V&&(null==V||null==(a=V.schema)?void 0:a.raw)&&(y=JSON.parse(V.schema.raw));var I=t.useContext(i).global,O=null==I||null==(r=I.schema)?void 0:r.inLanguage,S=null==I?void 0:I.schema,j=null==I?void 0:I.webmaster,N=null==I?void 0:I.social,_=[];(null==j?void 0:j.baiduVerify)&&_.push({name:"baidu-site-verification",content:j.baiduVerify}),(null==j?void 0:j.googleVerify)&&_.push({name:"google-site-verification",content:j.googleVerify}),(null==j?void 0:j.msVerify)&&_.push({name:"msvalidate.01",content:j.msVerify}),(null==j?void 0:j.yandexVerify)&&_.push({name:"yandex-verification",content:j.yandexVerify}),(null==N?void 0:N.pinterest)&&N.pinterest.metaTag&&_.push({name:"p:domain_verify",content:N.pinterest.metaTag});var C,D=b||V.title,E=(null==V?void 0:V.metaDesc)?V.metaDesc:"";return n.createElement(o.Helmet,{htmlAttributes:{lang:O},title:D,meta:[{name:"robots",content:"max-snippet:-1, max-image-preview:large, max-video-preview:-1, "+("noindex"===(null==V?void 0:V.metaRobotsNoindex)?"noindex":"index")+", "+("nofollow"===(null==V?void 0:V.metaRobotsNofollow)?"nofollow":"follow")},{name:"description",content:E},{property:"og:site_name",content:null==S?void 0:S.companyName},{property:"og:title",content:(null==V?void 0:V.opengraphTitle)||D},{property:"og:description",content:null==V?void 0:V.opengraphDescription},{property:"og:locale",content:(null==V||null==(u=V.schema)?void 0:u.inLanguage)?V.schema.inLanguage.replace("-","_"):null},{property:"og:type",content:"website"},{property:"og:image",content:(null==V||null==(c=V.opengraphImage)?void 0:c.sourceUrl)||(null==N||null==(m=N.facebook)||null==(d=m.defaultImage)?void 0:d.mediaItemUrl)},{property:"og:image:alt",content:(null==V||null==(p=V.opengraphImage)?void 0:p.altText)||(null==N||null==(s=N.facebook)||null==(v=s.defaultImage)?void 0:v.altText)},{name:"twitter:card",content:null==N?void 0:N.twitter.cardType},{name:"twitter:creator",content:null==N?void 0:N.twitter.username},{name:"twitter:title",content:(null==V?void 0:V.twitterTitle)||D},{name:"twitter:description",content:(null==V?void 0:V.twitterDescription)||E},{name:"twitter:image",content:null==V||null==(g=V.twitterImage)?void 0:g.sourceUrl},{name:"twitter:image:alt",content:null==V||null==(f=V.twitterImage)?void 0:f.altText},{name:"twitter:label1",content:(null==V?void 0:V.readingTime)?"Estimated reading time":null},{name:"twitter:data1",content:(null==V?void 0:V.readingTime)?(C=+V.readingTime,1===C?"1 minute":C+" minutes"):""}].filter((function(e){return!!e.content})).concat(x,_),encodeSpecialCharacters:!1},y&&n.createElement("script",{type:"application/ld+json"},JSON.stringify(l({},y),null,2)))};exports.SEOContext=i,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,o=require("react-helmet");function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var i=t.createContext({}),a=function(e){var a,r,u,c,m,d,p,s,v,g,f,y,w=e.post,h=e.meta,x=void 0===h?[]:h,b=e.title,T=e.postSchema,V=(void 0===w?{}:w).seo;T?y=T:V&&(null==V||null==(a=V.schema)?void 0:a.raw)&&(y=JSON.parse(V.schema.raw));var I=t.useContext(i).global,O=null==I||null==(r=I.schema)?void 0:r.inLanguage,S=null==I?void 0:I.schema,j=null==I?void 0:I.webmaster,N=null==I?void 0:I.social,_=[];(null==j?void 0:j.baiduVerify)&&_.push({name:"baidu-site-verification",content:j.baiduVerify}),(null==j?void 0:j.googleVerify)&&_.push({name:"google-site-verification",content:j.googleVerify}),(null==j?void 0:j.msVerify)&&_.push({name:"msvalidate.01",content:j.msVerify}),(null==j?void 0:j.yandexVerify)&&_.push({name:"yandex-verification",content:j.yandexVerify}),(null==N?void 0:N.pinterest)&&N.pinterest.metaTag&&_.push({name:"p:domain_verify",content:N.pinterest.metaTag});var C,D=b||V.title,E=(null==V?void 0:V.metaDesc)?V.metaDesc:"";return n.createElement(o.Helmet,{htmlAttributes:{lang:O},title:D,meta:[{name:"robots",content:"max-snippet:-1, max-image-preview:large, max-video-preview:-1, "+("noindex"===(null==V?void 0:V.metaRobotsNoindex)?"noindex":"index")+", "+("nofollow"===(null==V?void 0:V.metaRobotsNofollow)?"nofollow":"follow")},{name:"description",content:E},{property:"og:site_name",content:null==S?void 0:S.companyName},{property:"og:title",content:(null==V?void 0:V.opengraphTitle)||D},{property:"og:description",content:null==V?void 0:V.opengraphDescription},{property:"og:locale",content:(null==V||null==(u=V.schema)?void 0:u.inLanguage)?V.schema.inLanguage.replace("-","_"):null},{property:"og:type",content:"website"},{property:"og:image",content:(null==V||null==(c=V.opengraphImage)?void 0:c.sourceUrl)||(null==N||null==(m=N.facebook)||null==(d=m.defaultImage)?void 0:d.mediaItemUrl)},{property:"og:image:alt",content:(null==V||null==(p=V.opengraphImage)?void 0:p.altText)||(null==N||null==(s=N.facebook)||null==(v=s.defaultImage)?void 0:v.altText)},{name:"twitter:card",content:null==N?void 0:N.twitter.cardType},{name:"twitter:creator",content:null==N?void 0:N.twitter.username},{name:"twitter:title",content:(null==V?void 0:V.twitterTitle)||D},{name:"twitter:description",content:(null==V?void 0:V.twitterDescription)||E},{name:"twitter:image",content:null==V||null==(g=V.twitterImage)?void 0:g.sourceUrl},{name:"twitter:image:alt",content:null==V||null==(f=V.twitterImage)?void 0:f.altText},{name:"twitter:label1",content:(null==V?void 0:V.readingTime)?"Estimated reading time":null},{name:"twitter:data1",content:(null==V?void 0:V.readingTime)?(C=+V.readingTime,1===C?"1 minute":C+" minutes"):""}].filter((function(e){return!!e.content})).concat(x,_),encodeSpecialCharacters:!1},y&&n.createElement("script",{type:"application/ld+json"},JSON.stringify(l({},y),null,null)))};exports.SEOContext=i,exports.Seo=a,exports.default=a; | ||
//# sourceMappingURL=gatsby-plugin-wpgraphql-seo.cjs.production.min.js.map |
@@ -158,3 +158,3 @@ import React, { createContext, useContext } from 'react'; | ||
type: "application/ld+json" | ||
}, JSON.stringify(_extends({}, fullSchema), null, 2))); | ||
}, JSON.stringify(_extends({}, fullSchema), null, null))); | ||
}; | ||
@@ -161,0 +161,0 @@ |
{ | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/index.js", |
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
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
64560