@quintype/seo 1.40.3-update-image-schema.0 → 1.40.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.40.3](https://github.com/quintype/quintype-node-seo/compare/v1.40.2...v1.40.3) (2022-02-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Update image schema ([#522](https://github.com/quintype/quintype-node-seo/issues/522)) ([5e42cdc](https://github.com/quintype/quintype-node-seo/commit/5e42cdcbb14d587251b7a3f932a4f98dd358f188))
11
+
5
12
  ### [1.40.2](https://github.com/quintype/quintype-node-seo/compare/v1.40.2-ogImgFix.0...v1.40.2) (2022-02-11)
6
13
 
7
14
  ### [1.40.1](https://github.com/quintype/quintype-node-seo/compare/v1.40.0...v1.40.1) (2022-01-06)
package/dist/index.cjs.js CHANGED
@@ -627,8 +627,8 @@ function generateCommonData(structuredData = {}, story = {}, publisherConfig = {
627
627
  const storyUrl = story.url || `${publisherConfig["sketches-host"]}/${story.slug}`;
628
628
  const orgUrl = get__default["default"](structuredData, ["organization", "url"], "");
629
629
  const mainEntityUrl = Object.keys(story).length > 0 && structuredData.storyUrlAsMainEntityUrl ? storyUrl : get__default["default"](structuredData, ["organization", "url"], "");
630
- const imageWidth = 1200; // This value is updated based on latest google requirement
631
- const imageHeight = 675; // This value is updated based on latest google requirement
630
+ const imageWidth = 1200;
631
+ const imageHeight = 675;
632
632
  return Object.assign({}, {
633
633
  headline: story.headline,
634
634
  image: [imageUrl(publisherConfig, story["hero-image-s3-key"], imageWidth, imageHeight)],
@@ -679,8 +679,8 @@ function generateArticleData(structuredData = {}, story = {}, publisherConfig =
679
679
  const metaKeywords = story.seo && story.seo["meta-keywords"] || [];
680
680
  const authors = story.authors && story.authors.length !== 0 ? story.authors : [{ name: story["author-name"] || "" }];
681
681
  const storyKeysPresence = Object.keys(story).length > 0;
682
- const imageWidth = 1200; // This value is updated based on latest google requirement
683
- const imageHeight = 675; // This value is updated based on latest google requirement
682
+ const imageWidth = 1200;
683
+ const imageHeight = 675;
684
684
  const storyAccessType = storyAccess(story["access"]);
685
685
  const authorSchema = structuredData.authorSchema && structuredData.authorSchema(story) || [];
686
686
 
@@ -699,8 +699,8 @@ function generateArticleData(structuredData = {}, story = {}, publisherConfig =
699
699
  }
700
700
 
701
701
  function generateArticleImageData(image, publisherConfig = {}) {
702
- const imageWidth = 1200; // This value is updated based on latest google requirement
703
- const imageHeight = 675; // This value is updated based on latest google requirement
702
+ const imageWidth = 1200;
703
+ const imageHeight = 675;
704
704
  const articleImage = imageUrl(publisherConfig, image, imageWidth, imageHeight);
705
705
 
706
706
  return Object.assign({}, {
@@ -777,8 +777,8 @@ function findStoryElementField(card, type, field, defaultValue) {
777
777
  }
778
778
 
779
779
  function generateLiveBlogPostingData(structuredData = {}, story = {}, publisherConfig = {}, timezone) {
780
- const imageWidth = 1200; // This value is updated based on latest google requirement
781
- const imageHeight = 675; // This value is updated based on latest google requirement
780
+ const imageWidth = 1200;
781
+ const imageHeight = 675;
782
782
  const authorSchema = structuredData.authorSchema && structuredData.authorSchema(story) || [];
783
783
  return {
784
784
  headline: story.headline,
@@ -798,8 +798,8 @@ function generateVideoArticleData(structuredData = {}, story = {}, publisherConf
798
798
  const metaDescription = get__default["default"](story, ["seo", "meta-description"], "");
799
799
  const subHeadline = get__default["default"](story, ["subheadline"], "");
800
800
  const headline = get__default["default"](story, ["headline"], "");
801
- const imageWidth = 1200; // This value is updated based on latest google requirement
802
- const imageHeight = 675; // This value is updated based on latest google requirement
801
+ const imageWidth = 1200;
802
+ const imageHeight = 675;
803
803
  const authorSchema = structuredData.authorSchema && structuredData.authorSchema(story) || [];
804
804
  return Object.assign({}, generateCommonData(structuredData, story, publisherConfig, timezone), {
805
805
  author: authorData(story.authors, authorSchema, publisherConfig),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/seo",
3
- "version": "1.40.3-update-image-schema.0",
3
+ "version": "1.40.3",
4
4
  "description": "SEO Modules for Quintype",
5
5
  "main": "dist/index.cjs.js",
6
6
  "repository": "https://github.com/quintype/quintype-node-seo",
@@ -44,8 +44,8 @@ function generateCommonData(structuredData = {}, story = {}, publisherConfig = {
44
44
  Object.keys(story).length > 0 && structuredData.storyUrlAsMainEntityUrl
45
45
  ? storyUrl
46
46
  : get(structuredData, ["organization", "url"], "");
47
- const imageWidth = 1200; // This value is updated based on latest google requirement
48
- const imageHeight = 675; // This value is updated based on latest google requirement
47
+ const imageWidth = 1200;
48
+ const imageHeight = 675;
49
49
  return Object.assign(
50
50
  {},
51
51
  {
@@ -101,8 +101,8 @@ function generateArticleData(structuredData = {}, story = {}, publisherConfig =
101
101
  const metaKeywords = (story.seo && story.seo["meta-keywords"]) || [];
102
102
  const authors = story.authors && story.authors.length !== 0 ? story.authors : [{ name: story["author-name"] || "" }];
103
103
  const storyKeysPresence = Object.keys(story).length > 0;
104
- const imageWidth = 1200; // This value is updated based on latest google requirement
105
- const imageHeight = 675; // This value is updated based on latest google requirement
104
+ const imageWidth = 1200;
105
+ const imageHeight = 675;
106
106
  const storyAccessType = storyAccess(story["access"]);
107
107
  const authorSchema = (structuredData.authorSchema && structuredData.authorSchema(story)) || [];
108
108
 
@@ -126,8 +126,8 @@ function generateArticleData(structuredData = {}, story = {}, publisherConfig =
126
126
  }
127
127
 
128
128
  function generateArticleImageData(image, publisherConfig = {}) {
129
- const imageWidth = 1200; // This value is updated based on latest google requirement
130
- const imageHeight = 675; // This value is updated based on latest google requirement
129
+ const imageWidth = 1200;
130
+ const imageHeight = 675;
131
131
  const articleImage = imageUrl(publisherConfig, image, imageWidth, imageHeight);
132
132
 
133
133
  return Object.assign(
@@ -225,8 +225,8 @@ function findStoryElementField(card, type, field, defaultValue) {
225
225
  }
226
226
 
227
227
  function generateLiveBlogPostingData(structuredData = {}, story = {}, publisherConfig = {}, timezone) {
228
- const imageWidth = 1200; // This value is updated based on latest google requirement
229
- const imageHeight = 675; // This value is updated based on latest google requirement
228
+ const imageWidth = 1200;
229
+ const imageHeight = 675;
230
230
  const authorSchema = (structuredData.authorSchema && structuredData.authorSchema(story)) || [];
231
231
  return {
232
232
  headline: story.headline,
@@ -261,8 +261,8 @@ function generateVideoArticleData(structuredData = {}, story = {}, publisherConf
261
261
  const metaDescription = get(story, ["seo", "meta-description"], "");
262
262
  const subHeadline = get(story, ["subheadline"], "");
263
263
  const headline = get(story, ["headline"], "");
264
- const imageWidth = 1200; // This value is updated based on latest google requirement
265
- const imageHeight = 675; // This value is updated based on latest google requirement
264
+ const imageWidth = 1200;
265
+ const imageHeight = 675;
266
266
  const authorSchema = (structuredData.authorSchema && structuredData.authorSchema(story)) || [];
267
267
  return Object.assign({}, generateCommonData(structuredData, story, publisherConfig, timezone), {
268
268
  author: authorData(story.authors, authorSchema, publisherConfig),